From cce14bb4d5ed0268cea6d3fdf91a5b76ee17531c Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 23 May 2024 14:28:44 -0400 Subject: [PATCH] chore: update googleapis commit at Wed May 22 13:17:54 UTC 2024 (#10870) * chore: update googleapis commit at Wed May 22 13:17:54 UTC 2024 * chore: generate libraries at Wed May 22 13:21:04 UTC 2024 * chore: update googleapis commit at Thu May 23 02:16:27 UTC 2024 * chore: generate libraries at Thu May 23 02:19:16 UTC 2024 * add servicemesh * change OwlBot-hermetic.yaml * remove proto path * restore proto path * chore: generate libraries at Thu May 23 12:51:06 UTC 2024 * change destination * remove proto path * restore proto path * chore: generate libraries at Thu May 23 13:02:31 UTC 2024 * remove dir --------- Co-authored-by: Joe Wang --- generation_config.yaml | 3 +- .../reflect-config.json | 135 + .../v1/BackupForGKEClientHttpJsonTest.java | 28 + .../gkebackup/v1/BackupForGKEClientTest.java | 20 + .../com/google/cloud/gkebackup/v1/Backup.java | 117 + .../cloud/gkebackup/v1/BackupOrBuilder.java | 19 + .../google/cloud/gkebackup/v1/BackupPlan.java | 126 + .../cloud/gkebackup/v1/BackupPlanProto.java | 57 +- .../cloud/gkebackup/v1/BackupProto.java | 46 +- .../cloud/gkebackup/v1/CommonProto.java | 24 +- .../cloud/gkebackup/v1/ExclusionWindow.java | 72 +- .../v1/ExclusionWindowOrBuilder.java | 18 +- .../cloud/gkebackup/v1/ResourceSelector.java | 1557 ++++ .../v1/ResourceSelectorOrBuilder.java | 209 + .../google/cloud/gkebackup/v1/Restore.java | 7703 +++++++++++----- .../cloud/gkebackup/v1/RestoreConfig.java | 8131 +++++++++++++---- .../gkebackup/v1/RestoreConfigOrBuilder.java | 118 + .../cloud/gkebackup/v1/RestoreOrBuilder.java | 132 + .../cloud/gkebackup/v1/RestoreProto.java | 295 +- .../v1/VolumeDataRestorePolicyOverride.java | 1005 ++ ...umeDataRestorePolicyOverrideOrBuilder.java | 94 + .../cloud/gkebackup/v1/VolumeTypeEnum.java | 566 ++ .../gkebackup/v1/VolumeTypeEnumOrBuilder.java | 25 + .../google/cloud/gkebackup/v1/backup.proto | 9 + .../cloud/gkebackup/v1/backup_plan.proto | 13 +- .../google/cloud/gkebackup/v1/common.proto | 12 + .../google/cloud/gkebackup/v1/restore.proto | 163 + java-gkehub/.OwlBot-hermetic.yaml | 2 + .../reflect-config.json | 162 + .../servicemesh/v1beta/MembershipSpec.java | 1146 +++ .../v1beta/MembershipSpecOrBuilder.java | 89 + .../servicemesh/v1beta/MembershipState.java | 6950 ++++++++++++++ .../v1beta/MembershipStateOrBuilder.java | 177 + .../servicemesh/v1beta/ServiceMeshProto.java | 215 + .../servicemesh/v1beta/StatusDetails.java | 808 ++ .../v1beta/StatusDetailsOrBuilder.java | 76 + .../google/cloud/gkehub/v1beta/Feature.java | 178 +- .../cloud/gkehub/v1beta/FeatureOrBuilder.java | 67 +- .../cloud/gkehub/v1beta/FeatureProto.java | 136 +- .../gkehub/v1beta/MembershipFeatureSpec.java | 300 + .../MembershipFeatureSpecOrBuilder.java | 35 + .../gkehub/v1beta/MembershipFeatureState.java | 346 +- .../MembershipFeatureStateOrBuilder.java | 41 +- .../servicemesh/v1beta/servicemesh.proto | 276 + .../google/cloud/gkehub/v1beta/feature.proto | 52 +- .../reflect-config.json | 180 + .../places/v1/PlacesClientHttpJsonTest.java | 9 +- .../maps/places/v1/PlacesClientTest.java | 9 +- .../places/v1/AutocompletePlacesRequest.java | 130 +- .../AutocompletePlacesRequestOrBuilder.java | 40 +- .../google/maps/places/v1/ContentBlock.java | 1210 +++ .../maps/places/v1/ContentBlockOrBuilder.java | 133 + .../maps/places/v1/ContentBlockProto.java | 77 + .../maps/places/v1/ContextualContent.java | 7427 +++++++++++++++ .../places/v1/ContextualContentOrBuilder.java | 211 + .../places/v1/ContextualContentProto.java | 167 + .../java/com/google/maps/places/v1/Place.java | 3027 +++++- .../google/maps/places/v1/PlaceOrBuilder.java | 94 + .../com/google/maps/places/v1/PlaceProto.java | 340 +- .../maps/places/v1/PlacesServiceProto.java | 97 +- .../google/maps/places/v1/ReferenceProto.java | 81 + .../com/google/maps/places/v1/References.java | 1225 +++ .../maps/places/v1/ReferencesOrBuilder.java | 132 + .../maps/places/v1/SearchTextResponse.java | 731 ++ .../v1/SearchTextResponseOrBuilder.java | 102 + .../google/maps/places/v1/content_block.proto | 45 + .../maps/places/v1/contextual_content.proto | 120 + .../proto/google/maps/places/v1/place.proto | 43 + .../maps/places/v1/places_service.proto | 24 +- .../google/maps/places/v1/reference.proto | 45 + .../v1/SecurityCenterManagementClient.java | 977 +- .../v1/SecurityCenterManagementSettings.java | 46 + .../v1/gapic_metadata.json | 9 + .../GrpcSecurityCenterManagementStub.java | 133 + .../HttpJsonSecurityCenterManagementStub.java | 235 + .../v1/stub/SecurityCenterManagementStub.java | 29 + .../SecurityCenterManagementStubSettings.java | 178 + .../reflect-config.json | 117 + .../v1/MockSecurityCenterManagementImpl.java | 66 + ...ityCenterManagementClientHttpJsonTest.java | 382 + .../SecurityCenterManagementClientTest.java | 328 + .../v1/SecurityCenterManagementGrpc.java | 417 + ...entThreatDetectionCustomModuleRequest.java | 42 +- ...DetectionCustomModuleRequestOrBuilder.java | 12 +- ...ityHealthAnalyticsCustomModuleRequest.java | 77 +- ...AnalyticsCustomModuleRequestOrBuilder.java | 22 +- ...entThreatDetectionCustomModuleRequest.java | 42 +- ...DetectionCustomModuleRequestOrBuilder.java | 12 +- ...ityHealthAnalyticsCustomModuleRequest.java | 42 +- ...AnalyticsCustomModuleRequestOrBuilder.java | 12 +- ...ctiveEventThreatDetectionCustomModule.java | 42 +- ...tThreatDetectionCustomModuleOrBuilder.java | 12 +- ...veSecurityHealthAnalyticsCustomModule.java | 91 +- ...yHealthAnalyticsCustomModuleOrBuilder.java | 26 +- .../v1/EventThreatDetectionCustomModule.java | 42 +- ...tThreatDetectionCustomModuleOrBuilder.java | 12 +- ...entThreatDetectionCustomModuleRequest.java | 42 +- ...DetectionCustomModuleRequestOrBuilder.java | 12 +- ...ityHealthAnalyticsCustomModuleRequest.java | 77 +- ...AnalyticsCustomModuleRequestOrBuilder.java | 22 +- ...entThreatDetectionCustomModuleRequest.java | 42 +- ...DetectionCustomModuleRequestOrBuilder.java | 12 +- .../v1/GetSecurityCenterServiceRequest.java | 762 ++ ...SecurityCenterServiceRequestOrBuilder.java | 83 + ...ntThreatDetectionCustomModulesRequest.java | 42 +- ...etectionCustomModulesRequestOrBuilder.java | 12 +- ...tyHealthAnalyticsCustomModulesRequest.java | 77 +- ...nalyticsCustomModulesRequestOrBuilder.java | 22 +- ...ntThreatDetectionCustomModulesRequest.java | 42 +- ...etectionCustomModulesRequestOrBuilder.java | 12 +- ...tyHealthAnalyticsCustomModulesRequest.java | 63 +- ...nalyticsCustomModulesRequestOrBuilder.java | 18 +- ...ntThreatDetectionCustomModulesRequest.java | 42 +- ...etectionCustomModulesRequestOrBuilder.java | 12 +- .../v1/ListSecurityCenterServicesRequest.java | 989 ++ ...ecurityCenterServicesRequestOrBuilder.java | 106 + .../ListSecurityCenterServicesResponse.java | 1233 +++ ...curityCenterServicesResponseOrBuilder.java | 117 + ...tyHealthAnalyticsCustomModulesRequest.java | 77 +- ...nalyticsCustomModulesRequestOrBuilder.java | 22 +- .../v1/SecurityCenterManagementProto.java | 1337 +-- .../v1/SecurityCenterService.java | 3432 +++++++ .../v1/SecurityCenterServiceName.java | 441 + .../v1/SecurityCenterServiceOrBuilder.java | 323 + .../SecurityHealthAnalyticsCustomModule.java | 105 +- ...yHealthAnalyticsCustomModuleOrBuilder.java | 30 +- .../v1/SimulatedFinding.java | 56 +- .../v1/SimulatedFindingOrBuilder.java | 16 +- .../UpdateSecurityCenterServiceRequest.java | 1223 +++ ...SecurityCenterServiceRequestOrBuilder.java | 134 + ...entThreatDetectionCustomModuleRequest.java | 14 +- ...DetectionCustomModuleRequestOrBuilder.java | 4 +- .../v1/security_center_management.proto | 380 +- .../AsyncGetSecurityCenterService.java | 54 + .../SyncGetSecurityCenterService.java | 51 + ...enterServiceSecuritycenterservicename.java | 46 + .../SyncGetSecurityCenterServiceString.java | 47 + .../AsyncListSecurityCenterServices.java | 57 + .../AsyncListSecurityCenterServicesPaged.java | 63 + .../SyncListSecurityCenterServices.java | 52 + ...urityCenterServicesFolderlocationname.java | 46 + ...istSecurityCenterServicesLocationname.java | 46 + ...enterServicesOrganizationlocationname.java | 46 + .../SyncListSecurityCenterServicesString.java | 46 + .../AsyncUpdateSecurityCenterService.java | 53 + .../SyncUpdateSecurityCenterService.java | 50 + ...ServiceSecuritycenterserviceFieldmask.java | 47 + .../v1beta/MerchantCenterDestination.java | 4 +- .../v1beta/conversionsources.proto | 2 +- .../inventories/v1beta/LocalInventory.java | 118 +- .../v1beta/LocalInventoryOrBuilder.java | 32 +- .../inventories/v1beta/RegionalInventory.java | 68 +- .../v1beta/RegionalInventoryOrBuilder.java | 16 +- .../inventories/v1beta/localinventory.proto | 12 +- .../v1beta/regionalinventory.proto | 6 +- .../merchant/lfp/v1beta/LfpInventory.java | 50 +- .../lfp/v1beta/LfpInventoryOrBuilder.java | 16 +- .../merchant/lfp/v1beta/LfpStore.java | 38 +- .../lfp/v1beta/LfpStoreOrBuilder.java | 8 +- .../merchant/lfp/v1beta/lfpinventory.proto | 6 +- .../merchant/lfp/v1beta/lfpstore.proto | 10 +- .../reflect-config.json | 27 + .../v1beta/BestSellersProductClusterView.java | 90 +- ...estSellersProductClusterViewOrBuilder.java | 30 +- .../v1beta/NonProductPerformanceView.java | 1446 +++ .../NonProductPerformanceViewOrBuilder.java | 188 + .../v1beta/PriceInsightsProductView.java | 367 + .../PriceInsightsProductViewOrBuilder.java | 30 + .../merchant/reports/v1beta/ProductView.java | 20 +- .../reports/v1beta/ProductViewOrBuilder.java | 6 +- .../merchant/reports/v1beta/ReportRow.java | 520 +- .../reports/v1beta/ReportRowOrBuilder.java | 43 + .../merchant/reports/v1beta/ReportsProto.java | 644 +- .../merchant/reports/v1beta/reports.proto | 77 +- .../v1/VideoStitcherServiceClient.java | 1154 ++- .../v1/VideoStitcherServiceSettings.java | 118 + .../video/stitcher/v1/gapic_metadata.json | 18 + .../v1/stub/GrpcVideoStitcherServiceStub.java | 257 + .../v1/stub/VideoStitcherServiceStub.java | 58 + .../VideoStitcherServiceStubSettings.java | 401 +- .../reflect-config.json | 207 + .../v1/MockVideoStitcherServiceImpl.java | 126 + .../v1/VideoStitcherServiceClientTest.java | 490 + .../stitcher/v1/VideoStitcherServiceGrpc.java | 726 ++ .../cloud/video/stitcher/v1/CdnKeysProto.java | 30 +- .../stitcher/v1/CreateVodConfigRequest.java | 1399 +++ .../v1/CreateVodConfigRequestOrBuilder.java | 172 + .../stitcher/v1/DeleteVodConfigRequest.java | 647 ++ .../v1/DeleteVodConfigRequestOrBuilder.java | 57 + .../cloud/video/stitcher/v1/FetchOptions.java | 810 ++ .../stitcher/v1/FetchOptionsOrBuilder.java | 99 + .../video/stitcher/v1/FetchOptionsProto.java | 82 + .../cloud/video/stitcher/v1/GamVodConfig.java | 625 ++ .../stitcher/v1/GamVodConfigOrBuilder.java | 51 + .../stitcher/v1/GetVodConfigRequest.java | 647 ++ .../v1/GetVodConfigRequestOrBuilder.java | 57 + .../stitcher/v1/ListVodConfigsRequest.java | 1314 +++ .../v1/ListVodConfigsRequestOrBuilder.java | 153 + .../stitcher/v1/ListVodConfigsResponse.java | 1398 +++ .../v1/ListVodConfigsResponseOrBuilder.java | 154 + .../video/stitcher/v1/LiveAdTagDetail.java | 8 +- .../cloud/video/stitcher/v1/LiveConfig.java | 303 +- .../stitcher/v1/LiveConfigOrBuilder.java | 43 +- .../video/stitcher/v1/LiveConfigsProto.java | 69 +- .../cloud/video/stitcher/v1/LiveSession.java | 757 +- .../stitcher/v1/LiveSessionOrBuilder.java | 77 +- .../cloud/video/stitcher/v1/MediaCdnKey.java | 1035 ++- .../stitcher/v1/MediaCdnKeyOrBuilder.java | 44 + .../video/stitcher/v1/SessionsProto.java | 150 +- .../stitcher/v1/UpdateLiveConfigRequest.java | 1059 +++ .../v1/UpdateLiveConfigRequestOrBuilder.java | 114 + .../stitcher/v1/UpdateVodConfigRequest.java | 1059 +++ .../v1/UpdateVodConfigRequestOrBuilder.java | 114 + .../v1/VideoStitcherServiceProto.java | 627 +- .../cloud/video/stitcher/v1/VodConfig.java | 1923 ++++ .../video/stitcher/v1/VodConfigName.java | 223 + .../video/stitcher/v1/VodConfigOrBuilder.java | 208 + .../video/stitcher/v1/VodConfigsProto.java | 107 + .../cloud/video/stitcher/v1/VodSession.java | 416 +- .../stitcher/v1/VodSessionOrBuilder.java | 116 +- .../video/stitcher/v1/VodStitchDetail.java | 12 +- .../video/stitcher/v1/ad_tag_details.proto | 4 +- .../cloud/video/stitcher/v1/cdn_keys.proto | 17 + .../video/stitcher/v1/fetch_options.proto | 31 + .../video/stitcher/v1/live_configs.proto | 8 +- .../cloud/video/stitcher/v1/sessions.proto | 61 +- .../video/stitcher/v1/stitch_details.proto | 6 +- .../stitcher/v1/video_stitcher_service.proto | 200 + .../cloud/video/stitcher/v1/vod_configs.proto | 74 + .../createvodconfig/AsyncCreateVodConfig.java | 55 + .../AsyncCreateVodConfigLRO.java | 55 + .../createvodconfig/SyncCreateVodConfig.java | 50 + ...eVodConfigLocationnameVodconfigString.java | 46 + ...cCreateVodConfigStringVodconfigString.java | 46 + .../deletevodconfig/AsyncDeleteVodConfig.java | 51 + .../AsyncDeleteVodConfigLRO.java | 52 + .../deletevodconfig/SyncDeleteVodConfig.java | 47 + .../SyncDeleteVodConfigString.java | 43 + .../SyncDeleteVodConfigVodconfigname.java | 43 + .../getvodconfig/AsyncGetVodConfig.java | 51 + .../getvodconfig/SyncGetVodConfig.java | 47 + .../getvodconfig/SyncGetVodConfigString.java | 43 + .../SyncGetVodConfigVodconfigname.java | 43 + .../listvodconfigs/AsyncListVodConfigs.java | 57 + .../AsyncListVodConfigsPaged.java | 65 + .../listvodconfigs/SyncListVodConfigs.java | 53 + .../SyncListVodConfigsLocationname.java | 45 + .../SyncListVodConfigsString.java | 45 + .../AsyncUpdateLiveConfig.java | 53 + .../AsyncUpdateLiveConfigLRO.java | 53 + .../SyncUpdateLiveConfig.java | 48 + ...ncUpdateLiveConfigLiveconfigFieldmask.java | 45 + .../updatevodconfig/AsyncUpdateVodConfig.java | 53 + .../AsyncUpdateVodConfigLRO.java | 53 + .../updatevodconfig/SyncUpdateVodConfig.java | 48 + ...SyncUpdateVodConfigVodconfigFieldmask.java | 45 + 256 files changed, 80478 insertions(+), 7838 deletions(-) create mode 100644 java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ResourceSelector.java create mode 100644 java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ResourceSelectorOrBuilder.java create mode 100644 java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeDataRestorePolicyOverride.java create mode 100644 java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeDataRestorePolicyOverrideOrBuilder.java create mode 100644 java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeTypeEnum.java create mode 100644 java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeTypeEnumOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/MembershipSpec.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/MembershipSpecOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/MembershipState.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/MembershipStateOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/ServiceMeshProto.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/StatusDetails.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/StatusDetailsOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlock.java create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlockOrBuilder.java create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlockProto.java create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContextualContent.java create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContextualContentOrBuilder.java create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContextualContentProto.java create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReferenceProto.java create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/References.java create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReferencesOrBuilder.java create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/content_block.proto create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/contextual_content.proto create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/reference.proto create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityCenterServiceRequest.java create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityCenterServiceRequestOrBuilder.java create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesRequest.java create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesRequestOrBuilder.java create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesResponse.java create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesResponseOrBuilder.java create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterService.java create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterServiceName.java create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterServiceOrBuilder.java create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityCenterServiceRequest.java create mode 100644 java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityCenterServiceRequestOrBuilder.java create mode 100644 java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/AsyncGetSecurityCenterService.java create mode 100644 java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/SyncGetSecurityCenterService.java create mode 100644 java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/SyncGetSecurityCenterServiceSecuritycenterservicename.java create mode 100644 java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/SyncGetSecurityCenterServiceString.java create mode 100644 java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/AsyncListSecurityCenterServices.java create mode 100644 java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/AsyncListSecurityCenterServicesPaged.java create mode 100644 java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServices.java create mode 100644 java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServicesFolderlocationname.java create mode 100644 java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServicesLocationname.java create mode 100644 java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServicesOrganizationlocationname.java create mode 100644 java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServicesString.java create mode 100644 java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecuritycenterservice/AsyncUpdateSecurityCenterService.java create mode 100644 java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecuritycenterservice/SyncUpdateSecurityCenterService.java create mode 100644 java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecuritycenterservice/SyncUpdateSecurityCenterServiceSecuritycenterserviceFieldmask.java create mode 100644 java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/NonProductPerformanceView.java create mode 100644 java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/NonProductPerformanceViewOrBuilder.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CreateVodConfigRequest.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CreateVodConfigRequestOrBuilder.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/DeleteVodConfigRequest.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/DeleteVodConfigRequestOrBuilder.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/FetchOptions.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/FetchOptionsOrBuilder.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/FetchOptionsProto.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/GamVodConfig.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/GamVodConfigOrBuilder.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/GetVodConfigRequest.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/GetVodConfigRequestOrBuilder.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/ListVodConfigsRequest.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/ListVodConfigsRequestOrBuilder.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/ListVodConfigsResponse.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/ListVodConfigsResponseOrBuilder.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/UpdateLiveConfigRequest.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/UpdateLiveConfigRequestOrBuilder.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/UpdateVodConfigRequest.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/UpdateVodConfigRequestOrBuilder.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodConfig.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodConfigName.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodConfigOrBuilder.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodConfigsProto.java create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/fetch_options.proto create mode 100644 java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/vod_configs.proto create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/createvodconfig/AsyncCreateVodConfig.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/createvodconfig/AsyncCreateVodConfigLRO.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/createvodconfig/SyncCreateVodConfig.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/createvodconfig/SyncCreateVodConfigLocationnameVodconfigString.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/createvodconfig/SyncCreateVodConfigStringVodconfigString.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/deletevodconfig/AsyncDeleteVodConfig.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/deletevodconfig/AsyncDeleteVodConfigLRO.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/deletevodconfig/SyncDeleteVodConfig.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/deletevodconfig/SyncDeleteVodConfigString.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/deletevodconfig/SyncDeleteVodConfigVodconfigname.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/getvodconfig/AsyncGetVodConfig.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/getvodconfig/SyncGetVodConfig.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/getvodconfig/SyncGetVodConfigString.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/getvodconfig/SyncGetVodConfigVodconfigname.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/listvodconfigs/AsyncListVodConfigs.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/listvodconfigs/AsyncListVodConfigsPaged.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/listvodconfigs/SyncListVodConfigs.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/listvodconfigs/SyncListVodConfigsLocationname.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/listvodconfigs/SyncListVodConfigsString.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updateliveconfig/AsyncUpdateLiveConfig.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updateliveconfig/AsyncUpdateLiveConfigLRO.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updateliveconfig/SyncUpdateLiveConfig.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updateliveconfig/SyncUpdateLiveConfigLiveconfigFieldmask.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updatevodconfig/AsyncUpdateVodConfig.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updatevodconfig/AsyncUpdateVodConfigLRO.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updatevodconfig/SyncUpdateVodConfig.java create mode 100644 java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updatevodconfig/SyncUpdateVodConfigVodconfigFieldmask.java diff --git a/generation_config.yaml b/generation_config.yaml index ddec69e977e5..622ad4b01485 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.40.1 protoc_version: '25.3' -googleapis_commitish: a07bf82eb48d79bc113620b3fb517a3ebe92989c +googleapis_commitish: 30717c0b0c9966906880703208a4c820411565c4 libraries_bom_version: 26.39.0 template_excludes: - .github/* @@ -988,6 +988,7 @@ libraries: - proto_path: google/cloud/gkehub/v1alpha - proto_path: google/cloud/gkehub/v1beta - proto_path: google/cloud/gkehub/v1beta1 + - proto_path: google/cloud/gkehub/servicemesh/v1beta - api_shortname: containeranalysis name_pretty: Grafeas diff --git a/java-gke-backup/google-cloud-gke-backup/src/main/resources/META-INF/native-image/com.google.cloud.gkebackup.v1/reflect-config.json b/java-gke-backup/google-cloud-gke-backup/src/main/resources/META-INF/native-image/com.google.cloud.gkebackup.v1/reflect-config.json index f87533bd289f..08c497e8ac66 100644 --- a/java-gke-backup/google-cloud-gke-backup/src/main/resources/META-INF/native-image/com.google.cloud.gkebackup.v1/reflect-config.json +++ b/java-gke-backup/google-cloud-gke-backup/src/main/resources/META-INF/native-image/com.google.cloud.gkebackup.v1/reflect-config.json @@ -1133,6 +1133,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkebackup.v1.ResourceSelector", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkebackup.v1.ResourceSelector$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkebackup.v1.Restore", "queryAllDeclaredConstructors": true, @@ -1151,6 +1169,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkebackup.v1.Restore$Filter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkebackup.v1.Restore$Filter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkebackup.v1.Restore$State", "queryAllDeclaredConstructors": true, @@ -1250,6 +1286,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkebackup.v1.RestoreConfig$RestoreOrder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkebackup.v1.RestoreConfig$RestoreOrder$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkebackup.v1.RestoreConfig$RestoreOrder$GroupKindDependency", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkebackup.v1.RestoreConfig$RestoreOrder$GroupKindDependency$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkebackup.v1.RestoreConfig$SubstitutionRule", "queryAllDeclaredConstructors": true, @@ -1322,6 +1394,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkebackup.v1.RestoreConfig$VolumeDataRestorePolicyBinding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkebackup.v1.RestoreConfig$VolumeDataRestorePolicyBinding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkebackup.v1.RestorePlan", "queryAllDeclaredConstructors": true, @@ -1475,6 +1565,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkebackup.v1.VolumeRestore", "queryAllDeclaredConstructors": true, @@ -1511,6 +1619,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkebackup.v1.VolumeTypeEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkebackup.v1.VolumeTypeEnum$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkebackup.v1.VolumeTypeEnum$VolumeType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-gke-backup/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientHttpJsonTest.java b/java-gke-backup/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientHttpJsonTest.java index 0c14ec382bea..f2e4340265d0 100644 --- a/java-gke-backup/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientHttpJsonTest.java +++ b/java-gke-backup/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientHttpJsonTest.java @@ -678,6 +678,7 @@ public void createBackupTest() throws Exception { .setDescription("description-1724546052") .setPodCount(977657493) .setConfigBackupSizeBytes(-606785139) + .setPermissiveMode(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -754,6 +755,7 @@ public void createBackupTest2() throws Exception { .setDescription("description-1724546052") .setPodCount(977657493) .setConfigBackupSizeBytes(-606785139) + .setPermissiveMode(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -930,6 +932,7 @@ public void getBackupTest() throws Exception { .setDescription("description-1724546052") .setPodCount(977657493) .setConfigBackupSizeBytes(-606785139) + .setPermissiveMode(true) .build(); mockService.addResponse(expectedResponse); @@ -997,6 +1000,7 @@ public void getBackupTest2() throws Exception { .setDescription("description-1724546052") .setPodCount(977657493) .setConfigBackupSizeBytes(-606785139) + .setPermissiveMode(true) .build(); mockService.addResponse(expectedResponse); @@ -1066,6 +1070,7 @@ public void updateBackupTest() throws Exception { .setDescription("description-1724546052") .setPodCount(977657493) .setConfigBackupSizeBytes(-606785139) + .setPermissiveMode(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1101,6 +1106,7 @@ public void updateBackupTest() throws Exception { .setDescription("description-1724546052") .setPodCount(977657493) .setConfigBackupSizeBytes(-606785139) + .setPermissiveMode(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1156,6 +1162,7 @@ public void updateBackupExceptionTest() throws Exception { .setDescription("description-1724546052") .setPodCount(977657493) .setConfigBackupSizeBytes(-606785139) + .setPermissiveMode(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateBackupAsync(backup, updateMask).get(); @@ -2014,6 +2021,9 @@ public void createRestoreTest() throws Exception { .setResourcesFailedCount(217904743) .setVolumesRestoredCount(1005533068) .setEtag("etag3123477") + .setFilter(Restore.Filter.newBuilder().build()) + .addAllVolumeDataRestorePolicyOverrides( + new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2084,6 +2094,9 @@ public void createRestoreTest2() throws Exception { .setResourcesFailedCount(217904743) .setVolumesRestoredCount(1005533068) .setEtag("etag3123477") + .setFilter(Restore.Filter.newBuilder().build()) + .addAllVolumeDataRestorePolicyOverrides( + new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2254,6 +2267,9 @@ public void getRestoreTest() throws Exception { .setResourcesFailedCount(217904743) .setVolumesRestoredCount(1005533068) .setEtag("etag3123477") + .setFilter(Restore.Filter.newBuilder().build()) + .addAllVolumeDataRestorePolicyOverrides( + new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -2315,6 +2331,9 @@ public void getRestoreTest2() throws Exception { .setResourcesFailedCount(217904743) .setVolumesRestoredCount(1005533068) .setEtag("etag3123477") + .setFilter(Restore.Filter.newBuilder().build()) + .addAllVolumeDataRestorePolicyOverrides( + new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -2378,6 +2397,9 @@ public void updateRestoreTest() throws Exception { .setResourcesFailedCount(217904743) .setVolumesRestoredCount(1005533068) .setEtag("etag3123477") + .setFilter(Restore.Filter.newBuilder().build()) + .addAllVolumeDataRestorePolicyOverrides( + new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2407,6 +2429,9 @@ public void updateRestoreTest() throws Exception { .setResourcesFailedCount(217904743) .setVolumesRestoredCount(1005533068) .setEtag("etag3123477") + .setFilter(Restore.Filter.newBuilder().build()) + .addAllVolumeDataRestorePolicyOverrides( + new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -2457,6 +2482,9 @@ public void updateRestoreExceptionTest() throws Exception { .setResourcesFailedCount(217904743) .setVolumesRestoredCount(1005533068) .setEtag("etag3123477") + .setFilter(Restore.Filter.newBuilder().build()) + .addAllVolumeDataRestorePolicyOverrides( + new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateRestoreAsync(restore, updateMask).get(); diff --git a/java-gke-backup/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientTest.java b/java-gke-backup/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientTest.java index 5fbe145f584a..3ada20984f52 100644 --- a/java-gke-backup/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientTest.java +++ b/java-gke-backup/google-cloud-gke-backup/src/test/java/com/google/cloud/gkebackup/v1/BackupForGKEClientTest.java @@ -617,6 +617,7 @@ public void createBackupTest() throws Exception { .setDescription("description-1724546052") .setPodCount(977657493) .setConfigBackupSizeBytes(-606785139) + .setPermissiveMode(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -692,6 +693,7 @@ public void createBackupTest2() throws Exception { .setDescription("description-1724546052") .setPodCount(977657493) .setConfigBackupSizeBytes(-606785139) + .setPermissiveMode(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -855,6 +857,7 @@ public void getBackupTest() throws Exception { .setDescription("description-1724546052") .setPodCount(977657493) .setConfigBackupSizeBytes(-606785139) + .setPermissiveMode(true) .build(); mockBackupForGKE.addResponse(expectedResponse); @@ -916,6 +919,7 @@ public void getBackupTest2() throws Exception { .setDescription("description-1724546052") .setPodCount(977657493) .setConfigBackupSizeBytes(-606785139) + .setPermissiveMode(true) .build(); mockBackupForGKE.addResponse(expectedResponse); @@ -977,6 +981,7 @@ public void updateBackupTest() throws Exception { .setDescription("description-1724546052") .setPodCount(977657493) .setConfigBackupSizeBytes(-606785139) + .setPermissiveMode(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1774,6 +1779,9 @@ public void createRestoreTest() throws Exception { .setResourcesFailedCount(217904743) .setVolumesRestoredCount(1005533068) .setEtag("etag3123477") + .setFilter(Restore.Filter.newBuilder().build()) + .addAllVolumeDataRestorePolicyOverrides( + new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1843,6 +1851,9 @@ public void createRestoreTest2() throws Exception { .setResourcesFailedCount(217904743) .setVolumesRestoredCount(1005533068) .setEtag("etag3123477") + .setFilter(Restore.Filter.newBuilder().build()) + .addAllVolumeDataRestorePolicyOverrides( + new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2000,6 +2011,9 @@ public void getRestoreTest() throws Exception { .setResourcesFailedCount(217904743) .setVolumesRestoredCount(1005533068) .setEtag("etag3123477") + .setFilter(Restore.Filter.newBuilder().build()) + .addAllVolumeDataRestorePolicyOverrides( + new ArrayList()) .build(); mockBackupForGKE.addResponse(expectedResponse); @@ -2055,6 +2069,9 @@ public void getRestoreTest2() throws Exception { .setResourcesFailedCount(217904743) .setVolumesRestoredCount(1005533068) .setEtag("etag3123477") + .setFilter(Restore.Filter.newBuilder().build()) + .addAllVolumeDataRestorePolicyOverrides( + new ArrayList()) .build(); mockBackupForGKE.addResponse(expectedResponse); @@ -2110,6 +2127,9 @@ public void updateRestoreTest() throws Exception { .setResourcesFailedCount(217904743) .setVolumesRestoredCount(1005533068) .setEtag("etag3123477") + .setFilter(Restore.Filter.newBuilder().build()) + .addAllVolumeDataRestorePolicyOverrides( + new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Backup.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Backup.java index 0d6c47f414f0..b4dd87b3ff32 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Backup.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Backup.java @@ -3544,6 +3544,30 @@ public long getConfigBackupSizeBytes() { return configBackupSizeBytes_; } + public static final int PERMISSIVE_MODE_FIELD_NUMBER = 28; + private boolean permissiveMode_ = false; + /** + * + * + *
+   * Output only. If false, Backup will fail when Backup for GKE detects
+   * Kubernetes configuration that is non-standard or
+   * requires additional setup to restore.
+   *
+   * Inherited from the parent BackupPlan's
+   * [permissive_mode][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.permissive_mode]
+   * value.
+   * 
+ * + * bool permissive_mode = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The permissiveMode. + */ + @java.lang.Override + public boolean getPermissiveMode() { + return permissiveMode_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3638,6 +3662,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (configBackupSizeBytes_ != 0L) { output.writeInt64(27, configBackupSizeBytes_); } + if (permissiveMode_ != false) { + output.writeBool(28, permissiveMode_); + } getUnknownFields().writeTo(output); } @@ -3742,6 +3769,9 @@ public int getSerializedSize() { if (configBackupSizeBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(27, configBackupSizeBytes_); } + if (permissiveMode_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(28, permissiveMode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3802,6 +3832,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDescription().equals(other.getDescription())) return false; if (getPodCount() != other.getPodCount()) return false; if (getConfigBackupSizeBytes() != other.getConfigBackupSizeBytes()) return false; + if (getPermissiveMode() != other.getPermissiveMode()) return false; if (!getBackupScopeCase().equals(other.getBackupScopeCase())) return false; switch (backupScopeCase_) { case 12: @@ -3891,6 +3922,8 @@ public int hashCode() { hash = (53 * hash) + getPodCount(); hash = (37 * hash) + CONFIG_BACKUP_SIZE_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getConfigBackupSizeBytes()); + hash = (37 * hash) + PERMISSIVE_MODE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPermissiveMode()); switch (backupScopeCase_) { case 12: hash = (37 * hash) + ALL_NAMESPACES_FIELD_NUMBER; @@ -4143,6 +4176,7 @@ public Builder clear() { description_ = ""; podCount_ = 0; configBackupSizeBytes_ = 0L; + permissiveMode_ = false; backupScopeCase_ = 0; backupScope_ = null; return this; @@ -4269,6 +4303,9 @@ private void buildPartial0(com.google.cloud.gkebackup.v1.Backup result) { if (((from_bitField0_ & 0x04000000) != 0)) { result.configBackupSizeBytes_ = configBackupSizeBytes_; } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.permissiveMode_ = permissiveMode_; + } result.bitField0_ |= to_bitField0_; } @@ -4409,6 +4446,9 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.Backup other) { if (other.getConfigBackupSizeBytes() != 0L) { setConfigBackupSizeBytes(other.getConfigBackupSizeBytes()); } + if (other.getPermissiveMode() != false) { + setPermissiveMode(other.getPermissiveMode()); + } switch (other.getBackupScopeCase()) { case ALL_NAMESPACES: { @@ -4628,6 +4668,12 @@ public Builder mergeFrom( bitField0_ |= 0x04000000; break; } // case 216 + case 224: + { + permissiveMode_ = input.readBool(); + bitField0_ |= 0x08000000; + break; + } // case 224 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -8172,6 +8218,77 @@ public Builder clearConfigBackupSizeBytes() { return this; } + private boolean permissiveMode_; + /** + * + * + *
+     * Output only. If false, Backup will fail when Backup for GKE detects
+     * Kubernetes configuration that is non-standard or
+     * requires additional setup to restore.
+     *
+     * Inherited from the parent BackupPlan's
+     * [permissive_mode][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.permissive_mode]
+     * value.
+     * 
+ * + * bool permissive_mode = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The permissiveMode. + */ + @java.lang.Override + public boolean getPermissiveMode() { + return permissiveMode_; + } + /** + * + * + *
+     * Output only. If false, Backup will fail when Backup for GKE detects
+     * Kubernetes configuration that is non-standard or
+     * requires additional setup to restore.
+     *
+     * Inherited from the parent BackupPlan's
+     * [permissive_mode][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.permissive_mode]
+     * value.
+     * 
+ * + * bool permissive_mode = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The permissiveMode to set. + * @return This builder for chaining. + */ + public Builder setPermissiveMode(boolean value) { + + permissiveMode_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If false, Backup will fail when Backup for GKE detects
+     * Kubernetes configuration that is non-standard or
+     * requires additional setup to restore.
+     *
+     * Inherited from the parent BackupPlan's
+     * [permissive_mode][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.permissive_mode]
+     * value.
+     * 
+ * + * bool permissive_mode = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPermissiveMode() { + bitField0_ = (bitField0_ & ~0x08000000); + permissiveMode_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupOrBuilder.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupOrBuilder.java index a59dccc6890b..717f315e3d7a 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupOrBuilder.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupOrBuilder.java @@ -835,5 +835,24 @@ java.lang.String getLabelsOrDefault( */ long getConfigBackupSizeBytes(); + /** + * + * + *
+   * Output only. If false, Backup will fail when Backup for GKE detects
+   * Kubernetes configuration that is non-standard or
+   * requires additional setup to restore.
+   *
+   * Inherited from the parent BackupPlan's
+   * [permissive_mode][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.permissive_mode]
+   * value.
+   * 
+ * + * bool permissive_mode = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The permissiveMode. + */ + boolean getPermissiveMode(); + com.google.cloud.gkebackup.v1.Backup.BackupScopeCase getBackupScopeCase(); } diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlan.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlan.java index 31a0dae9b223..e244e29c6ba6 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlan.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlan.java @@ -3081,6 +3081,23 @@ public interface BackupConfigOrBuilder */ com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBuilder(); + /** + * + * + *
+     * Optional. If false, Backups will fail when Backup for GKE detects
+     * Kubernetes configuration that is non-standard or
+     * requires additional setup to restore.
+     *
+     * Default: False
+     * 
+ * + * bool permissive_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The permissiveMode. + */ + boolean getPermissiveMode(); + com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig.BackupScopeCase getBackupScopeCase(); } /** @@ -3430,6 +3447,28 @@ public com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBu : encryptionKey_; } + public static final int PERMISSIVE_MODE_FIELD_NUMBER = 7; + private boolean permissiveMode_ = false; + /** + * + * + *
+     * Optional. If false, Backups will fail when Backup for GKE detects
+     * Kubernetes configuration that is non-standard or
+     * requires additional setup to restore.
+     *
+     * Default: False
+     * 
+ * + * bool permissive_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The permissiveMode. + */ + @java.lang.Override + public boolean getPermissiveMode() { + return permissiveMode_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3462,6 +3501,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getEncryptionKey()); } + if (permissiveMode_ != false) { + output.writeBool(7, permissiveMode_); + } getUnknownFields().writeTo(output); } @@ -3495,6 +3537,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEncryptionKey()); } + if (permissiveMode_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, permissiveMode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3517,6 +3562,7 @@ public boolean equals(final java.lang.Object obj) { if (hasEncryptionKey()) { if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; } + if (getPermissiveMode() != other.getPermissiveMode()) return false; if (!getBackupScopeCase().equals(other.getBackupScopeCase())) return false; switch (backupScopeCase_) { case 1: @@ -3550,6 +3596,8 @@ public int hashCode() { hash = (37 * hash) + ENCRYPTION_KEY_FIELD_NUMBER; hash = (53 * hash) + getEncryptionKey().hashCode(); } + hash = (37 * hash) + PERMISSIVE_MODE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPermissiveMode()); switch (backupScopeCase_) { case 1: hash = (37 * hash) + ALL_NAMESPACES_FIELD_NUMBER; @@ -3731,6 +3779,7 @@ public Builder clear() { encryptionKeyBuilder_.dispose(); encryptionKeyBuilder_ = null; } + permissiveMode_ = false; backupScopeCase_ = 0; backupScope_ = null; return this; @@ -3782,6 +3831,9 @@ private void buildPartial0(com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig encryptionKeyBuilder_ == null ? encryptionKey_ : encryptionKeyBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.permissiveMode_ = permissiveMode_; + } result.bitField0_ |= to_bitField0_; } @@ -3854,6 +3906,9 @@ public Builder mergeFrom(com.google.cloud.gkebackup.v1.BackupPlan.BackupConfig o if (other.hasEncryptionKey()) { mergeEncryptionKey(other.getEncryptionKey()); } + if (other.getPermissiveMode() != false) { + setPermissiveMode(other.getPermissiveMode()); + } switch (other.getBackupScopeCase()) { case ALL_NAMESPACES: { @@ -3939,6 +3994,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 + case 56: + { + permissiveMode_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4838,6 +4899,71 @@ public com.google.cloud.gkebackup.v1.EncryptionKeyOrBuilder getEncryptionKeyOrBu return encryptionKeyBuilder_; } + private boolean permissiveMode_; + /** + * + * + *
+       * Optional. If false, Backups will fail when Backup for GKE detects
+       * Kubernetes configuration that is non-standard or
+       * requires additional setup to restore.
+       *
+       * Default: False
+       * 
+ * + * bool permissive_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The permissiveMode. + */ + @java.lang.Override + public boolean getPermissiveMode() { + return permissiveMode_; + } + /** + * + * + *
+       * Optional. If false, Backups will fail when Backup for GKE detects
+       * Kubernetes configuration that is non-standard or
+       * requires additional setup to restore.
+       *
+       * Default: False
+       * 
+ * + * bool permissive_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The permissiveMode to set. + * @return This builder for chaining. + */ + public Builder setPermissiveMode(boolean value) { + + permissiveMode_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. If false, Backups will fail when Backup for GKE detects
+       * Kubernetes configuration that is non-standard or
+       * requires additional setup to restore.
+       *
+       * Default: False
+       * 
+ * + * bool permissive_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPermissiveMode() { + bitField0_ = (bitField0_ & ~0x00000040); + permissiveMode_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanProto.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanProto.java index 2bb55e847ba2..28cf7f1f9d4a 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanProto.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupPlanProto.java @@ -77,7 +77,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "roto\032\037google/protobuf/timestamp.proto\032\026g" + "oogle/type/date.proto\032\033google/type/dayof" + "week.proto\032\033google/type/timeofday.proto\"" - + "\266\r\n\nBackupPlan\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid" + + "\324\r\n\nBackupPlan\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid" + "\030\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.googl" + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" + "\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" @@ -104,7 +104,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010B\003\340A\001\022=\n\nrpo_config\030\003 \001(\0132$.google.clou" + "d.gkebackup.v1.RpoConfigB\003\340A\001\022C\n\032next_sc" + "heduled_backup_time\030\004 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\032\322\002\n\014BackupConfig\022\030\n\016a" + + "buf.TimestampB\003\340A\003\032\360\002\n\014BackupConfig\022\030\n\016a" + "ll_namespaces\030\001 \001(\010H\000\022D\n\023selected_namesp" + "aces\030\002 \001(\0132%.google.cloud.gkebackup.v1.N" + "amespacesH\000\022K\n\025selected_applications\030\003 \001" @@ -112,32 +112,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "dNamesH\000\022 \n\023include_volume_data\030\004 \001(\010B\003\340" + "A\001\022\034\n\017include_secrets\030\005 \001(\010B\003\340A\001\022E\n\016encr" + "yption_key\030\006 \001(\0132(.google.cloud.gkebacku" - + "p.v1.EncryptionKeyB\003\340A\001B\016\n\014backup_scope\032" - + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\"{\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\023" - + "\n\017CLUSTER_PENDING\020\001\022\020\n\014PROVISIONING\020\002\022\t\n" - + "\005READY\020\003\022\n\n\006FAILED\020\004\022\017\n\013DEACTIVATED\020\005\022\014\n" - + "\010DELETING\020\006:k\352Ah\n#gkebackup.googleapis.c" - + "om/BackupPlan\022Aprojects/{project}/locati" - + "ons/{location}/backupPlans/{backup_plan}" - + "\"x\n\tRpoConfig\022\037\n\022target_rpo_minutes\030\001 \001(" - + "\005B\003\340A\002\022J\n\021exclusion_windows\030\002 \003(\0132*.goog" - + "le.cloud.gkebackup.v1.ExclusionWindowB\003\340" - + "A\001\"\336\002\n\017ExclusionWindow\022/\n\nstart_time\030\001 \001" - + "(\0132\026.google.type.TimeOfDayB\003\340A\002\0220\n\010durat" - + "ion\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A" - + "\002\0223\n\026single_occurrence_date\030\003 \001(\0132\021.goog" - + "le.type.DateH\000\022\017\n\005daily\030\004 \001(\010H\000\022P\n\014days_" - + "of_week\030\005 \001(\01328.google.cloud.gkebackup.v" - + "1.ExclusionWindow.DayOfWeekListH\000\032B\n\rDay" - + "OfWeekList\0221\n\014days_of_week\030\001 \003(\0162\026.googl" - + "e.type.DayOfWeekB\003\340A\001B\014\n\nrecurrenceB\306\001\n\035" - + "com.google.cloud.gkebackup.v1B\017BackupPla" - + "nProtoP\001Z;cloud.google.com/go/gkebackup/" - + "apiv1/gkebackuppb;gkebackuppb\252\002\031Google.C" - + "loud.GkeBackup.V1\312\002\031Google\\Cloud\\GkeBack" - + "up\\V1\352\002\034Google::Cloud::GkeBackup::V1b\006pr" - + "oto3" + + "p.v1.EncryptionKeyB\003\340A\001\022\034\n\017permissive_mo" + + "de\030\007 \001(\010B\003\340A\001B\016\n\014backup_scope\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"{\n\005" + + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\023\n\017CLUSTER_" + + "PENDING\020\001\022\020\n\014PROVISIONING\020\002\022\t\n\005READY\020\003\022\n" + + "\n\006FAILED\020\004\022\017\n\013DEACTIVATED\020\005\022\014\n\010DELETING\020" + + "\006:k\352Ah\n#gkebackup.googleapis.com/BackupP" + + "lan\022Aprojects/{project}/locations/{locat" + + "ion}/backupPlans/{backup_plan}\"x\n\tRpoCon" + + "fig\022\037\n\022target_rpo_minutes\030\001 \001(\005B\003\340A\002\022J\n\021" + + "exclusion_windows\030\002 \003(\0132*.google.cloud.g" + + "kebackup.v1.ExclusionWindowB\003\340A\001\"\336\002\n\017Exc" + + "lusionWindow\022/\n\nstart_time\030\001 \001(\0132\026.googl" + + "e.type.TimeOfDayB\003\340A\002\0220\n\010duration\030\002 \001(\0132" + + "\031.google.protobuf.DurationB\003\340A\002\0223\n\026singl" + + "e_occurrence_date\030\003 \001(\0132\021.google.type.Da" + + "teH\000\022\017\n\005daily\030\004 \001(\010H\000\022P\n\014days_of_week\030\005 " + + "\001(\01328.google.cloud.gkebackup.v1.Exclusio" + + "nWindow.DayOfWeekListH\000\032B\n\rDayOfWeekList" + + "\0221\n\014days_of_week\030\001 \003(\0162\026.google.type.Day" + + "OfWeekB\003\340A\001B\014\n\nrecurrenceB\306\001\n\035com.google" + + ".cloud.gkebackup.v1B\017BackupPlanProtoP\001Z;" + + "cloud.google.com/go/gkebackup/apiv1/gkeb" + + "ackuppb;gkebackuppb\252\002\031Google.Cloud.GkeBa" + + "ckup.V1\312\002\031Google\\Cloud\\GkeBackup\\V1\352\002\034Go" + + "ogle::Cloud::GkeBackup::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -204,6 +204,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IncludeVolumeData", "IncludeSecrets", "EncryptionKey", + "PermissiveMode", "BackupScope", }); internal_static_google_cloud_gkebackup_v1_BackupPlan_LabelsEntry_descriptor = diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupProto.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupProto.java index 2cd6377c7504..300bdd16ca02 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupProto.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/BackupProto.java @@ -58,7 +58,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "field_behavior.proto\032\031google/api/resourc" + "e.proto\032&google/cloud/gkebackup/v1/commo" + "n.proto\032\037google/protobuf/timestamp.proto" - + "\"\350\r\n\006Backup\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 " + + "\"\206\016\n\006Backup\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 " + "\001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.google.p" + "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\004 " + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006" @@ -87,27 +87,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "size_bytes\030\027 \001(\003B\003\340A\003\022\021\n\004etag\030\030 \001(\tB\003\340A\003" + "\022\030\n\013description\030\031 \001(\tB\003\340A\001\022\026\n\tpod_count\030" + "\032 \001(\005B\003\340A\003\022%\n\030config_backup_size_bytes\030\033" - + " \001(\003B\003\340A\003\032\266\002\n\017ClusterMetadata\022\024\n\007cluster" - + "\030\001 \001(\tB\003\340A\003\022\030\n\013k8s_version\030\002 \001(\tB\003\340A\003\022j\n" - + "\023backup_crd_versions\030\003 \003(\0132H.google.clou" - + "d.gkebackup.v1.Backup.ClusterMetadata.Ba" - + "ckupCrdVersionsEntryB\003\340A\003\022\032\n\013gke_version" - + "\030\004 \001(\tB\003\340A\003H\000\022\035\n\016anthos_version\030\005 \001(\tB\003\340" - + "A\003H\000\0328\n\026BackupCrdVersionsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\022\n\020platform_versi" - + "on\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\"f\n\005State\022\025\n\021STATE_UNSPECIFIED\020" - + "\000\022\014\n\010CREATING\020\001\022\017\n\013IN_PROGRESS\020\002\022\r\n\tSUCC" - + "EEDED\020\003\022\n\n\006FAILED\020\004\022\014\n\010DELETING\020\005:x\352Au\n\037" - + "gkebackup.googleapis.com/Backup\022Rproject" - + "s/{project}/locations/{location}/backupP" - + "lans/{backup_plan}/backups/{backup}B\016\n\014b" - + "ackup_scopeB\302\001\n\035com.google.cloud.gkeback" - + "up.v1B\013BackupProtoP\001Z;cloud.google.com/g" - + "o/gkebackup/apiv1/gkebackuppb;gkebackupp" - + "b\252\002\031Google.Cloud.GkeBackup.V1\312\002\031Google\\C" - + "loud\\GkeBackup\\V1\352\002\034Google::Cloud::GkeBa" - + "ckup::V1b\006proto3" + + " \001(\003B\003\340A\003\022\034\n\017permissive_mode\030\034 \001(\010B\003\340A\003\032" + + "\266\002\n\017ClusterMetadata\022\024\n\007cluster\030\001 \001(\tB\003\340A" + + "\003\022\030\n\013k8s_version\030\002 \001(\tB\003\340A\003\022j\n\023backup_cr" + + "d_versions\030\003 \003(\0132H.google.cloud.gkebacku" + + "p.v1.Backup.ClusterMetadata.BackupCrdVer" + + "sionsEntryB\003\340A\003\022\032\n\013gke_version\030\004 \001(\tB\003\340A" + + "\003H\000\022\035\n\016anthos_version\030\005 \001(\tB\003\340A\003H\000\0328\n\026Ba" + + "ckupCrdVersionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001B\022\n\020platform_version\032-\n\013Labe" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "f\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREAT" + + "ING\020\001\022\017\n\013IN_PROGRESS\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n" + + "\006FAILED\020\004\022\014\n\010DELETING\020\005:x\352Au\n\037gkebackup." + + "googleapis.com/Backup\022Rprojects/{project" + + "}/locations/{location}/backupPlans/{back" + + "up_plan}/backups/{backup}B\016\n\014backup_scop" + + "eB\302\001\n\035com.google.cloud.gkebackup.v1B\013Bac" + + "kupProtoP\001Z;cloud.google.com/go/gkebacku" + + "p/apiv1/gkebackuppb;gkebackuppb\252\002\031Google" + + ".Cloud.GkeBackup.V1\312\002\031Google\\Cloud\\GkeBa" + + "ckup\\V1\352\002\034Google::Cloud::GkeBackup::V1b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -151,6 +152,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Description", "PodCount", "ConfigBackupSizeBytes", + "PermissiveMode", "BackupScope", }); internal_static_google_cloud_gkebackup_v1_Backup_ClusterMetadata_descriptor = diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CommonProto.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CommonProto.java index 8cb76ab50ada..65d4d7b79431 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CommonProto.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/CommonProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gkebackup_v1_EncryptionKey_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gkebackup_v1_EncryptionKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_VolumeTypeEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_VolumeTypeEnum_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -63,12 +67,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e.cloud.gkebackup.v1.NamespacedNameB\003\340A\001" + "\"Z\n\rEncryptionKey\022I\n\026gcp_kms_encryption_" + "key\030\001 \001(\tB)\340A\001\372A#\n!cloudkms.googleapis.c" - + "om/CryptoKeyB\302\001\n\035com.google.cloud.gkebac" - + "kup.v1B\013CommonProtoP\001Z;cloud.google.com/" - + "go/gkebackup/apiv1/gkebackuppb;gkebackup" - + "pb\252\002\031Google.Cloud.GkeBackup.V1\312\002\031Google\\" - + "Cloud\\GkeBackup\\V1\352\002\034Google::Cloud::GkeB" - + "ackup::V1b\006proto3" + + "om/CryptoKey\"T\n\016VolumeTypeEnum\"B\n\nVolume" + + "Type\022\033\n\027VOLUME_TYPE_UNSPECIFIED\020\000\022\027\n\023GCE" + + "_PERSISTENT_DISK\020\001B\302\001\n\035com.google.cloud." + + "gkebackup.v1B\013CommonProtoP\001Z;cloud.googl" + + "e.com/go/gkebackup/apiv1/gkebackuppb;gke" + + "backuppb\252\002\031Google.Cloud.GkeBackup.V1\312\002\031G" + + "oogle\\Cloud\\GkeBackup\\V1\352\002\034Google::Cloud" + + "::GkeBackup::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -109,6 +115,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "GcpKmsEncryptionKey", }); + internal_static_google_cloud_gkebackup_v1_VolumeTypeEnum_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkebackup_v1_VolumeTypeEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_VolumeTypeEnum_descriptor, + new java.lang.String[] {}); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ExclusionWindow.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ExclusionWindow.java index a28f416697ee..a0895b664d47 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ExclusionWindow.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ExclusionWindow.java @@ -1100,8 +1100,10 @@ public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { * * *
-   * Required. Specifies duration of the window. Restrictions for duration based
-   * on the recurrence type to allow some time for backup to happen:
+   * Required. Specifies duration of the window.
+   * Duration must be >= 5 minutes and < (target RPO - 20 minutes).
+   * Additional restrictions based on the recurrence type to allow some time for
+   * backup to happen:
    * - single_occurrence_date:  no restriction, but UI may warn about this when
    * duration >= target RPO
    * - daily window: duration < 24 hours
@@ -1122,8 +1124,10 @@ public boolean hasDuration() {
    *
    *
    * 
-   * Required. Specifies duration of the window. Restrictions for duration based
-   * on the recurrence type to allow some time for backup to happen:
+   * Required. Specifies duration of the window.
+   * Duration must be >= 5 minutes and < (target RPO - 20 minutes).
+   * Additional restrictions based on the recurrence type to allow some time for
+   * backup to happen:
    * - single_occurrence_date:  no restriction, but UI may warn about this when
    * duration >= target RPO
    * - daily window: duration < 24 hours
@@ -1144,8 +1148,10 @@ public com.google.protobuf.Duration getDuration() {
    *
    *
    * 
-   * Required. Specifies duration of the window. Restrictions for duration based
-   * on the recurrence type to allow some time for backup to happen:
+   * Required. Specifies duration of the window.
+   * Duration must be >= 5 minutes and < (target RPO - 20 minutes).
+   * Additional restrictions based on the recurrence type to allow some time for
+   * backup to happen:
    * - single_occurrence_date:  no restriction, but UI may warn about this when
    * duration >= target RPO
    * - daily window: duration < 24 hours
@@ -2027,8 +2033,10 @@ public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() {
      *
      *
      * 
-     * Required. Specifies duration of the window. Restrictions for duration based
-     * on the recurrence type to allow some time for backup to happen:
+     * Required. Specifies duration of the window.
+     * Duration must be >= 5 minutes and < (target RPO - 20 minutes).
+     * Additional restrictions based on the recurrence type to allow some time for
+     * backup to happen:
      * - single_occurrence_date:  no restriction, but UI may warn about this when
      * duration >= target RPO
      * - daily window: duration < 24 hours
@@ -2049,8 +2057,10 @@ public boolean hasDuration() {
      *
      *
      * 
-     * Required. Specifies duration of the window. Restrictions for duration based
-     * on the recurrence type to allow some time for backup to happen:
+     * Required. Specifies duration of the window.
+     * Duration must be >= 5 minutes and < (target RPO - 20 minutes).
+     * Additional restrictions based on the recurrence type to allow some time for
+     * backup to happen:
      * - single_occurrence_date:  no restriction, but UI may warn about this when
      * duration >= target RPO
      * - daily window: duration < 24 hours
@@ -2075,8 +2085,10 @@ public com.google.protobuf.Duration getDuration() {
      *
      *
      * 
-     * Required. Specifies duration of the window. Restrictions for duration based
-     * on the recurrence type to allow some time for backup to happen:
+     * Required. Specifies duration of the window.
+     * Duration must be >= 5 minutes and < (target RPO - 20 minutes).
+     * Additional restrictions based on the recurrence type to allow some time for
+     * backup to happen:
      * - single_occurrence_date:  no restriction, but UI may warn about this when
      * duration >= target RPO
      * - daily window: duration < 24 hours
@@ -2105,8 +2117,10 @@ public Builder setDuration(com.google.protobuf.Duration value) {
      *
      *
      * 
-     * Required. Specifies duration of the window. Restrictions for duration based
-     * on the recurrence type to allow some time for backup to happen:
+     * Required. Specifies duration of the window.
+     * Duration must be >= 5 minutes and < (target RPO - 20 minutes).
+     * Additional restrictions based on the recurrence type to allow some time for
+     * backup to happen:
      * - single_occurrence_date:  no restriction, but UI may warn about this when
      * duration >= target RPO
      * - daily window: duration < 24 hours
@@ -2132,8 +2146,10 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
      *
      *
      * 
-     * Required. Specifies duration of the window. Restrictions for duration based
-     * on the recurrence type to allow some time for backup to happen:
+     * Required. Specifies duration of the window.
+     * Duration must be >= 5 minutes and < (target RPO - 20 minutes).
+     * Additional restrictions based on the recurrence type to allow some time for
+     * backup to happen:
      * - single_occurrence_date:  no restriction, but UI may warn about this when
      * duration >= target RPO
      * - daily window: duration < 24 hours
@@ -2167,8 +2183,10 @@ public Builder mergeDuration(com.google.protobuf.Duration value) {
      *
      *
      * 
-     * Required. Specifies duration of the window. Restrictions for duration based
-     * on the recurrence type to allow some time for backup to happen:
+     * Required. Specifies duration of the window.
+     * Duration must be >= 5 minutes and < (target RPO - 20 minutes).
+     * Additional restrictions based on the recurrence type to allow some time for
+     * backup to happen:
      * - single_occurrence_date:  no restriction, but UI may warn about this when
      * duration >= target RPO
      * - daily window: duration < 24 hours
@@ -2194,8 +2212,10 @@ public Builder clearDuration() {
      *
      *
      * 
-     * Required. Specifies duration of the window. Restrictions for duration based
-     * on the recurrence type to allow some time for backup to happen:
+     * Required. Specifies duration of the window.
+     * Duration must be >= 5 minutes and < (target RPO - 20 minutes).
+     * Additional restrictions based on the recurrence type to allow some time for
+     * backup to happen:
      * - single_occurrence_date:  no restriction, but UI may warn about this when
      * duration >= target RPO
      * - daily window: duration < 24 hours
@@ -2216,8 +2236,10 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() {
      *
      *
      * 
-     * Required. Specifies duration of the window. Restrictions for duration based
-     * on the recurrence type to allow some time for backup to happen:
+     * Required. Specifies duration of the window.
+     * Duration must be >= 5 minutes and < (target RPO - 20 minutes).
+     * Additional restrictions based on the recurrence type to allow some time for
+     * backup to happen:
      * - single_occurrence_date:  no restriction, but UI may warn about this when
      * duration >= target RPO
      * - daily window: duration < 24 hours
@@ -2240,8 +2262,10 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
      *
      *
      * 
-     * Required. Specifies duration of the window. Restrictions for duration based
-     * on the recurrence type to allow some time for backup to happen:
+     * Required. Specifies duration of the window.
+     * Duration must be >= 5 minutes and < (target RPO - 20 minutes).
+     * Additional restrictions based on the recurrence type to allow some time for
+     * backup to happen:
      * - single_occurrence_date:  no restriction, but UI may warn about this when
      * duration >= target RPO
      * - daily window: duration < 24 hours
diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ExclusionWindowOrBuilder.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ExclusionWindowOrBuilder.java
index db4acdc7f7dd..99241d414258 100644
--- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ExclusionWindowOrBuilder.java
+++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ExclusionWindowOrBuilder.java
@@ -66,8 +66,10 @@ public interface ExclusionWindowOrBuilder
    *
    *
    * 
-   * Required. Specifies duration of the window. Restrictions for duration based
-   * on the recurrence type to allow some time for backup to happen:
+   * Required. Specifies duration of the window.
+   * Duration must be >= 5 minutes and < (target RPO - 20 minutes).
+   * Additional restrictions based on the recurrence type to allow some time for
+   * backup to happen:
    * - single_occurrence_date:  no restriction, but UI may warn about this when
    * duration >= target RPO
    * - daily window: duration < 24 hours
@@ -85,8 +87,10 @@ public interface ExclusionWindowOrBuilder
    *
    *
    * 
-   * Required. Specifies duration of the window. Restrictions for duration based
-   * on the recurrence type to allow some time for backup to happen:
+   * Required. Specifies duration of the window.
+   * Duration must be >= 5 minutes and < (target RPO - 20 minutes).
+   * Additional restrictions based on the recurrence type to allow some time for
+   * backup to happen:
    * - single_occurrence_date:  no restriction, but UI may warn about this when
    * duration >= target RPO
    * - daily window: duration < 24 hours
@@ -104,8 +108,10 @@ public interface ExclusionWindowOrBuilder
    *
    *
    * 
-   * Required. Specifies duration of the window. Restrictions for duration based
-   * on the recurrence type to allow some time for backup to happen:
+   * Required. Specifies duration of the window.
+   * Duration must be >= 5 minutes and < (target RPO - 20 minutes).
+   * Additional restrictions based on the recurrence type to allow some time for
+   * backup to happen:
    * - single_occurrence_date:  no restriction, but UI may warn about this when
    * duration >= target RPO
    * - daily window: duration < 24 hours
diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ResourceSelector.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ResourceSelector.java
new file mode 100644
index 000000000000..8ff5b9516bdb
--- /dev/null
+++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ResourceSelector.java
@@ -0,0 +1,1557 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/gkebackup/v1/restore.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.gkebackup.v1;
+
+/**
+ *
+ *
+ * 
+ * Defines a selector to identify a single or a group of resources.
+ * Conditions in the selector are optional, but at least one field
+ * should be set to a non-empty value. If a condition is not specified,
+ * no restrictions will be applied on that dimension.
+ * If more than one condition is specified, a resource will be selected
+ * if and only if all conditions are met.
+ * 
+ * + * Protobuf type {@code google.cloud.gkebackup.v1.ResourceSelector} + */ +public final class ResourceSelector extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.ResourceSelector) + ResourceSelectorOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceSelector.newBuilder() to construct. + private ResourceSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResourceSelector() { + name_ = ""; + namespace_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResourceSelector(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_ResourceSelector_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_ResourceSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkebackup.v1.ResourceSelector.class, + com.google.cloud.gkebackup.v1.ResourceSelector.Builder.class); + } + + private int bitField0_; + public static final int GROUP_KIND_FIELD_NUMBER = 1; + private com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind groupKind_; + /** + * + * + *
+   * Optional. Selects resources using their Kubernetes GroupKinds. If
+   * specified, only resources of provided GroupKind will be selected.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the groupKind field is set. + */ + @java.lang.Override + public boolean hasGroupKind() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Selects resources using their Kubernetes GroupKinds. If
+   * specified, only resources of provided GroupKind will be selected.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The groupKind. + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getGroupKind() { + return groupKind_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance() + : groupKind_; + } + /** + * + * + *
+   * Optional. Selects resources using their Kubernetes GroupKinds. If
+   * specified, only resources of provided GroupKind will be selected.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getGroupKindOrBuilder() { + return groupKind_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance() + : groupKind_; + } + + public static final int NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Optional. Selects resources using their resource names. If specified,
+   * only resources with the provided name will be selected.
+   * 
+ * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Selects resources using their resource names. If specified,
+   * only resources with the provided name will be selected.
+   * 
+ * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAMESPACE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object namespace_ = ""; + /** + * + * + *
+   * Optional. Selects resources using their namespaces. This only applies to
+   * namespace scoped resources and cannot be used for selecting
+   * cluster scoped resources. If specified, only resources in the provided
+   * namespace will be selected. If not specified, the filter will apply to
+   * both cluster scoped and namespace scoped resources (e.g. name or label).
+   * The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource
+   * itself will be restored if and only if any resources within the namespace
+   * are restored.
+   * 
+ * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The namespace. + */ + @java.lang.Override + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Selects resources using their namespaces. This only applies to
+   * namespace scoped resources and cannot be used for selecting
+   * cluster scoped resources. If specified, only resources in the provided
+   * namespace will be selected. If not specified, the filter will apply to
+   * both cluster scoped and namespace scoped resources (e.g. name or label).
+   * The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource
+   * itself will be restored if and only if any resources within the namespace
+   * are restored.
+   * 
+ * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for namespace. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_ResourceSelector_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * Optional. Selects resources using Kubernetes
+   * [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
+   * If specified, a resource will be selected if and only if the resource
+   * has all of the provided labels and all the label values match.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * Optional. Selects resources using Kubernetes
+   * [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
+   * If specified, a resource will be selected if and only if the resource
+   * has all of the provided labels and all the label values match.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. Selects resources using Kubernetes
+   * [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
+   * If specified, a resource will be selected if and only if the resource
+   * has all of the provided labels and all the label values match.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. Selects resources using Kubernetes
+   * [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
+   * If specified, a resource will be selected if and only if the resource
+   * has all of the provided labels and all the label values match.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGroupKind()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, namespace_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGroupKind()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, namespace_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkebackup.v1.ResourceSelector)) { + return super.equals(obj); + } + com.google.cloud.gkebackup.v1.ResourceSelector other = + (com.google.cloud.gkebackup.v1.ResourceSelector) obj; + + if (hasGroupKind() != other.hasGroupKind()) return false; + if (hasGroupKind()) { + if (!getGroupKind().equals(other.getGroupKind())) return false; + } + if (!getName().equals(other.getName())) return false; + if (!getNamespace().equals(other.getNamespace())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGroupKind()) { + hash = (37 * hash) + GROUP_KIND_FIELD_NUMBER; + hash = (53 * hash) + getGroupKind().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getNamespace().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkebackup.v1.ResourceSelector parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.ResourceSelector 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.gkebackup.v1.ResourceSelector parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.ResourceSelector parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkebackup.v1.ResourceSelector parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.ResourceSelector parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkebackup.v1.ResourceSelector parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.ResourceSelector 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.gkebackup.v1.ResourceSelector parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.ResourceSelector 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.gkebackup.v1.ResourceSelector parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.ResourceSelector 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkebackup.v1.ResourceSelector prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Defines a selector to identify a single or a group of resources.
+   * Conditions in the selector are optional, but at least one field
+   * should be set to a non-empty value. If a condition is not specified,
+   * no restrictions will be applied on that dimension.
+   * If more than one condition is specified, a resource will be selected
+   * if and only if all conditions are met.
+   * 
+ * + * Protobuf type {@code google.cloud.gkebackup.v1.ResourceSelector} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.ResourceSelector) + com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_ResourceSelector_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_ResourceSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkebackup.v1.ResourceSelector.class, + com.google.cloud.gkebackup.v1.ResourceSelector.Builder.class); + } + + // Construct using com.google.cloud.gkebackup.v1.ResourceSelector.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getGroupKindFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + groupKind_ = null; + if (groupKindBuilder_ != null) { + groupKindBuilder_.dispose(); + groupKindBuilder_ = null; + } + name_ = ""; + namespace_ = ""; + internalGetMutableLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_ResourceSelector_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.ResourceSelector getDefaultInstanceForType() { + return com.google.cloud.gkebackup.v1.ResourceSelector.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.ResourceSelector build() { + com.google.cloud.gkebackup.v1.ResourceSelector result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.ResourceSelector buildPartial() { + com.google.cloud.gkebackup.v1.ResourceSelector result = + new com.google.cloud.gkebackup.v1.ResourceSelector(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkebackup.v1.ResourceSelector result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.groupKind_ = groupKindBuilder_ == null ? groupKind_ : groupKindBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.namespace_ = namespace_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkebackup.v1.ResourceSelector) { + return mergeFrom((com.google.cloud.gkebackup.v1.ResourceSelector) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkebackup.v1.ResourceSelector other) { + if (other == com.google.cloud.gkebackup.v1.ResourceSelector.getDefaultInstance()) return this; + if (other.hasGroupKind()) { + mergeGroupKind(other.getGroupKind()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getNamespace().isEmpty()) { + namespace_ = other.namespace_; + bitField0_ |= 0x00000004; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getGroupKindFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + namespace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind groupKind_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> + groupKindBuilder_; + /** + * + * + *
+     * Optional. Selects resources using their Kubernetes GroupKinds. If
+     * specified, only resources of provided GroupKind will be selected.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the groupKind field is set. + */ + public boolean hasGroupKind() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Optional. Selects resources using their Kubernetes GroupKinds. If
+     * specified, only resources of provided GroupKind will be selected.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The groupKind. + */ + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getGroupKind() { + if (groupKindBuilder_ == null) { + return groupKind_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance() + : groupKind_; + } else { + return groupKindBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Selects resources using their Kubernetes GroupKinds. If
+     * specified, only resources of provided GroupKind will be selected.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGroupKind(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { + if (groupKindBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + groupKind_ = value; + } else { + groupKindBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Selects resources using their Kubernetes GroupKinds. If
+     * specified, only resources of provided GroupKind will be selected.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGroupKind( + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { + if (groupKindBuilder_ == null) { + groupKind_ = builderForValue.build(); + } else { + groupKindBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Selects resources using their Kubernetes GroupKinds. If
+     * specified, only resources of provided GroupKind will be selected.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGroupKind(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { + if (groupKindBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && groupKind_ != null + && groupKind_ + != com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()) { + getGroupKindBuilder().mergeFrom(value); + } else { + groupKind_ = value; + } + } else { + groupKindBuilder_.mergeFrom(value); + } + if (groupKind_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Selects resources using their Kubernetes GroupKinds. If
+     * specified, only resources of provided GroupKind will be selected.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGroupKind() { + bitField0_ = (bitField0_ & ~0x00000001); + groupKind_ = null; + if (groupKindBuilder_ != null) { + groupKindBuilder_.dispose(); + groupKindBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Selects resources using their Kubernetes GroupKinds. If
+     * specified, only resources of provided GroupKind will be selected.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder getGroupKindBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGroupKindFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Selects resources using their Kubernetes GroupKinds. If
+     * specified, only resources of provided GroupKind will be selected.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getGroupKindOrBuilder() { + if (groupKindBuilder_ != null) { + return groupKindBuilder_.getMessageOrBuilder(); + } else { + return groupKind_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance() + : groupKind_; + } + } + /** + * + * + *
+     * Optional. Selects resources using their Kubernetes GroupKinds. If
+     * specified, only resources of provided GroupKind will be selected.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> + getGroupKindFieldBuilder() { + if (groupKindBuilder_ == null) { + groupKindBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder>( + getGroupKind(), getParentForChildren(), isClean()); + groupKind_ = null; + } + return groupKindBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Optional. Selects resources using their resource names. If specified,
+     * only resources with the provided name will be selected.
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Selects resources using their resource names. If specified,
+     * only resources with the provided name will be selected.
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Selects resources using their resource names. If specified,
+     * only resources with the provided name will be selected.
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Selects resources using their resource names. If specified,
+     * only resources with the provided name will be selected.
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Selects resources using their resource names. If specified,
+     * only resources with the provided name will be selected.
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object namespace_ = ""; + /** + * + * + *
+     * Optional. Selects resources using their namespaces. This only applies to
+     * namespace scoped resources and cannot be used for selecting
+     * cluster scoped resources. If specified, only resources in the provided
+     * namespace will be selected. If not specified, the filter will apply to
+     * both cluster scoped and namespace scoped resources (e.g. name or label).
+     * The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource
+     * itself will be restored if and only if any resources within the namespace
+     * are restored.
+     * 
+ * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The namespace. + */ + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Selects resources using their namespaces. This only applies to
+     * namespace scoped resources and cannot be used for selecting
+     * cluster scoped resources. If specified, only resources in the provided
+     * namespace will be selected. If not specified, the filter will apply to
+     * both cluster scoped and namespace scoped resources (e.g. name or label).
+     * The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource
+     * itself will be restored if and only if any resources within the namespace
+     * are restored.
+     * 
+ * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for namespace. + */ + public com.google.protobuf.ByteString getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Selects resources using their namespaces. This only applies to
+     * namespace scoped resources and cannot be used for selecting
+     * cluster scoped resources. If specified, only resources in the provided
+     * namespace will be selected. If not specified, the filter will apply to
+     * both cluster scoped and namespace scoped resources (e.g. name or label).
+     * The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource
+     * itself will be restored if and only if any resources within the namespace
+     * are restored.
+     * 
+ * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The namespace to set. + * @return This builder for chaining. + */ + public Builder setNamespace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + namespace_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Selects resources using their namespaces. This only applies to
+     * namespace scoped resources and cannot be used for selecting
+     * cluster scoped resources. If specified, only resources in the provided
+     * namespace will be selected. If not specified, the filter will apply to
+     * both cluster scoped and namespace scoped resources (e.g. name or label).
+     * The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource
+     * itself will be restored if and only if any resources within the namespace
+     * are restored.
+     * 
+ * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNamespace() { + namespace_ = getDefaultInstance().getNamespace(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Selects resources using their namespaces. This only applies to
+     * namespace scoped resources and cannot be used for selecting
+     * cluster scoped resources. If specified, only resources in the provided
+     * namespace will be selected. If not specified, the filter will apply to
+     * both cluster scoped and namespace scoped resources (e.g. name or label).
+     * The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource
+     * itself will be restored if and only if any resources within the namespace
+     * are restored.
+     * 
+ * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for namespace to set. + * @return This builder for chaining. + */ + public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namespace_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * Optional. Selects resources using Kubernetes
+     * [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
+     * If specified, a resource will be selected if and only if the resource
+     * has all of the provided labels and all the label values match.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+     * Optional. Selects resources using Kubernetes
+     * [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
+     * If specified, a resource will be selected if and only if the resource
+     * has all of the provided labels and all the label values match.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Optional. Selects resources using Kubernetes
+     * [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
+     * If specified, a resource will be selected if and only if the resource
+     * has all of the provided labels and all the label values match.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional. Selects resources using Kubernetes
+     * [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
+     * If specified, a resource will be selected if and only if the resource
+     * has all of the provided labels and all the label values match.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Selects resources using Kubernetes
+     * [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
+     * If specified, a resource will be selected if and only if the resource
+     * has all of the provided labels and all the label values match.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * Optional. Selects resources using Kubernetes
+     * [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
+     * If specified, a resource will be selected if and only if the resource
+     * has all of the provided labels and all the label values match.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + /** + * + * + *
+     * Optional. Selects resources using Kubernetes
+     * [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
+     * If specified, a resource will be selected if and only if the resource
+     * has all of the provided labels and all the label values match.
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.ResourceSelector) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.ResourceSelector) + private static final com.google.cloud.gkebackup.v1.ResourceSelector DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.ResourceSelector(); + } + + public static com.google.cloud.gkebackup.v1.ResourceSelector getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceSelector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.ResourceSelector getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ResourceSelectorOrBuilder.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ResourceSelectorOrBuilder.java new file mode 100644 index 000000000000..dca1067f37e1 --- /dev/null +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/ResourceSelectorOrBuilder.java @@ -0,0 +1,209 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/restore.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gkebackup.v1; + +public interface ResourceSelectorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.ResourceSelector) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Selects resources using their Kubernetes GroupKinds. If
+   * specified, only resources of provided GroupKind will be selected.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the groupKind field is set. + */ + boolean hasGroupKind(); + /** + * + * + *
+   * Optional. Selects resources using their Kubernetes GroupKinds. If
+   * specified, only resources of provided GroupKind will be selected.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The groupKind. + */ + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getGroupKind(); + /** + * + * + *
+   * Optional. Selects resources using their Kubernetes GroupKinds. If
+   * specified, only resources of provided GroupKind will be selected.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getGroupKindOrBuilder(); + + /** + * + * + *
+   * Optional. Selects resources using their resource names. If specified,
+   * only resources with the provided name will be selected.
+   * 
+ * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Optional. Selects resources using their resource names. If specified,
+   * only resources with the provided name will be selected.
+   * 
+ * + * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Selects resources using their namespaces. This only applies to
+   * namespace scoped resources and cannot be used for selecting
+   * cluster scoped resources. If specified, only resources in the provided
+   * namespace will be selected. If not specified, the filter will apply to
+   * both cluster scoped and namespace scoped resources (e.g. name or label).
+   * The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource
+   * itself will be restored if and only if any resources within the namespace
+   * are restored.
+   * 
+ * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The namespace. + */ + java.lang.String getNamespace(); + /** + * + * + *
+   * Optional. Selects resources using their namespaces. This only applies to
+   * namespace scoped resources and cannot be used for selecting
+   * cluster scoped resources. If specified, only resources in the provided
+   * namespace will be selected. If not specified, the filter will apply to
+   * both cluster scoped and namespace scoped resources (e.g. name or label).
+   * The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource
+   * itself will be restored if and only if any resources within the namespace
+   * are restored.
+   * 
+ * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for namespace. + */ + com.google.protobuf.ByteString getNamespaceBytes(); + + /** + * + * + *
+   * Optional. Selects resources using Kubernetes
+   * [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
+   * If specified, a resource will be selected if and only if the resource
+   * has all of the provided labels and all the label values match.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
+   * Optional. Selects resources using Kubernetes
+   * [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
+   * If specified, a resource will be selected if and only if the resource
+   * has all of the provided labels and all the label values match.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Optional. Selects resources using Kubernetes
+   * [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
+   * If specified, a resource will be selected if and only if the resource
+   * has all of the provided labels and all the label values match.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Optional. Selects resources using Kubernetes
+   * [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
+   * If specified, a resource will be selected if and only if the resource
+   * has all of the provided labels and all the label values match.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Selects resources using Kubernetes
+   * [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
+   * If specified, a resource will be selected if and only if the resource
+   * has all of the provided labels and all the label values match.
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); +} diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Restore.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Restore.java index 8de898d81c4b..5bf429351638 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Restore.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/Restore.java @@ -48,6 +48,7 @@ private Restore() { state_ = 0; stateReason_ = ""; etag_ = ""; + volumeDataRestorePolicyOverrides_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -312,1515 +313,3583 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.gkebackup.v1.Restore.State) } - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; + public interface FilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.Restore.Filter) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Output only. The full name of the Restore resource.
-   * Format: `projects/*/locations/*/restorePlans/*/restores/*`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } + /** + * + * + *
+     * Optional. Selects resources for restoration. If specified, only resources
+     * which match `inclusion_filters` will be selected for restoration. A
+     * resource will be selected if it matches any `ResourceSelector` of the
+     * `inclusion_filters`.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getInclusionFiltersList(); + /** + * + * + *
+     * Optional. Selects resources for restoration. If specified, only resources
+     * which match `inclusion_filters` will be selected for restoration. A
+     * resource will be selected if it matches any `ResourceSelector` of the
+     * `inclusion_filters`.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkebackup.v1.ResourceSelector getInclusionFilters(int index); + /** + * + * + *
+     * Optional. Selects resources for restoration. If specified, only resources
+     * which match `inclusion_filters` will be selected for restoration. A
+     * resource will be selected if it matches any `ResourceSelector` of the
+     * `inclusion_filters`.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getInclusionFiltersCount(); + /** + * + * + *
+     * Optional. Selects resources for restoration. If specified, only resources
+     * which match `inclusion_filters` will be selected for restoration. A
+     * resource will be selected if it matches any `ResourceSelector` of the
+     * `inclusion_filters`.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getInclusionFiltersOrBuilderList(); + /** + * + * + *
+     * Optional. Selects resources for restoration. If specified, only resources
+     * which match `inclusion_filters` will be selected for restoration. A
+     * resource will be selected if it matches any `ResourceSelector` of the
+     * `inclusion_filters`.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder getInclusionFiltersOrBuilder(int index); + + /** + * + * + *
+     * Optional. Excludes resources from restoration. If specified,
+     * a resource will not be restored if it matches
+     * any `ResourceSelector` of the `exclusion_filters`.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getExclusionFiltersList(); + /** + * + * + *
+     * Optional. Excludes resources from restoration. If specified,
+     * a resource will not be restored if it matches
+     * any `ResourceSelector` of the `exclusion_filters`.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkebackup.v1.ResourceSelector getExclusionFilters(int index); + /** + * + * + *
+     * Optional. Excludes resources from restoration. If specified,
+     * a resource will not be restored if it matches
+     * any `ResourceSelector` of the `exclusion_filters`.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getExclusionFiltersCount(); + /** + * + * + *
+     * Optional. Excludes resources from restoration. If specified,
+     * a resource will not be restored if it matches
+     * any `ResourceSelector` of the `exclusion_filters`.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getExclusionFiltersOrBuilderList(); + /** + * + * + *
+     * Optional. Excludes resources from restoration. If specified,
+     * a resource will not be restored if it matches
+     * any `ResourceSelector` of the `exclusion_filters`.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder getExclusionFiltersOrBuilder(int index); } /** * * *
-   * Output only. The full name of the Restore resource.
-   * Format: `projects/*/locations/*/restorePlans/*/restores/*`
+   * Defines the filter for `Restore`. This filter can be used to further
+   * refine the resource selection of the `Restore` beyond the coarse-grained
+   * scope defined in the `RestorePlan`. `exclusion_filters` take precedence
+   * over `inclusion_filters`. If a resource matches both `inclusion_filters`
+   * and `exclusion_filters`, it will not be restored.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. + * Protobuf type {@code google.cloud.gkebackup.v1.Restore.Filter} */ - @java.lang.Override - 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); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public static final class Filter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.Restore.Filter) + FilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Filter.newBuilder() to construct. + private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - } - public static final int UID_FIELD_NUMBER = 2; + private Filter() { + inclusionFilters_ = java.util.Collections.emptyList(); + exclusionFilters_ = java.util.Collections.emptyList(); + } - @SuppressWarnings("serial") - private volatile java.lang.Object uid_ = ""; - /** - * - * - *
-   * Output only. Server generated global unique identifier of
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
-   * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The uid. - */ - @java.lang.Override - public java.lang.String getUid() { - java.lang.Object ref = uid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uid_ = s; - return s; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Filter(); } - } - /** - * - * - *
-   * Output only. Server generated global unique identifier of
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
-   * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for uid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { - java.lang.Object ref = uid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_Restore_Filter_descriptor; } - } - public static final int CREATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. The timestamp when this Restore resource was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Output only. The timestamp when this Restore resource was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. The timestamp when this Restore resource was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_Restore_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkebackup.v1.Restore.Filter.class, + com.google.cloud.gkebackup.v1.Restore.Filter.Builder.class); + } - public static final int UPDATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Output only. The timestamp when this Restore resource was last
-   * updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Output only. The timestamp when this Restore resource was last
-   * updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - * - * - *
-   * Output only. The timestamp when this Restore resource was last
-   * updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - - public static final int DESCRIPTION_FIELD_NUMBER = 5; + public static final int INCLUSION_FILTERS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - * - * - *
-   * User specified descriptive string for this Restore.
-   * 
- * - * string description = 5; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; + @SuppressWarnings("serial") + private java.util.List inclusionFilters_; + /** + * + * + *
+     * Optional. Selects resources for restoration. If specified, only resources
+     * which match `inclusion_filters` will be selected for restoration. A
+     * resource will be selected if it matches any `ResourceSelector` of the
+     * `inclusion_filters`.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getInclusionFiltersList() { + return inclusionFilters_; } - } - /** - * - * - *
-   * User specified descriptive string for this Restore.
-   * 
- * - * string description = 5; - * - * @return The bytes for description. - */ - @java.lang.Override - 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); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * + * + *
+     * Optional. Selects resources for restoration. If specified, only resources
+     * which match `inclusion_filters` will be selected for restoration. A
+     * resource will be selected if it matches any `ResourceSelector` of the
+     * `inclusion_filters`.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getInclusionFiltersOrBuilderList() { + return inclusionFilters_; + } + /** + * + * + *
+     * Optional. Selects resources for restoration. If specified, only resources
+     * which match `inclusion_filters` will be selected for restoration. A
+     * resource will be selected if it matches any `ResourceSelector` of the
+     * `inclusion_filters`.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getInclusionFiltersCount() { + return inclusionFilters_.size(); + } + /** + * + * + *
+     * Optional. Selects resources for restoration. If specified, only resources
+     * which match `inclusion_filters` will be selected for restoration. A
+     * resource will be selected if it matches any `ResourceSelector` of the
+     * `inclusion_filters`.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.ResourceSelector getInclusionFilters(int index) { + return inclusionFilters_.get(index); + } + /** + * + * + *
+     * Optional. Selects resources for restoration. If specified, only resources
+     * which match `inclusion_filters` will be selected for restoration. A
+     * resource will be selected if it matches any `ResourceSelector` of the
+     * `inclusion_filters`.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder getInclusionFiltersOrBuilder( + int index) { + return inclusionFilters_.get(index); } - } - public static final int BACKUP_FIELD_NUMBER = 6; + public static final int EXCLUSION_FILTERS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object backup_ = ""; - /** - * - * - *
-   * Required. Immutable. A reference to the
-   * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
-   * this Restore will restore. Note that this Backup must be a sub-resource of
-   * the RestorePlan's
-   * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
-   * `projects/*/locations/*/backupPlans/*/backups/*`.
-   * 
- * - * - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The backup. - */ - @java.lang.Override - public java.lang.String getBackup() { - java.lang.Object ref = backup_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - backup_ = s; - return s; + @SuppressWarnings("serial") + private java.util.List exclusionFilters_; + /** + * + * + *
+     * Optional. Excludes resources from restoration. If specified,
+     * a resource will not be restored if it matches
+     * any `ResourceSelector` of the `exclusion_filters`.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getExclusionFiltersList() { + return exclusionFilters_; } - } - /** - * - * - *
-   * Required. Immutable. A reference to the
-   * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
-   * this Restore will restore. Note that this Backup must be a sub-resource of
-   * the RestorePlan's
-   * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
-   * `projects/*/locations/*/backupPlans/*/backups/*`.
-   * 
- * - * - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for backup. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBackupBytes() { - java.lang.Object ref = backup_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - backup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * + * + *
+     * Optional. Excludes resources from restoration. If specified,
+     * a resource will not be restored if it matches
+     * any `ResourceSelector` of the `exclusion_filters`.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getExclusionFiltersOrBuilderList() { + return exclusionFilters_; + } + /** + * + * + *
+     * Optional. Excludes resources from restoration. If specified,
+     * a resource will not be restored if it matches
+     * any `ResourceSelector` of the `exclusion_filters`.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getExclusionFiltersCount() { + return exclusionFilters_.size(); + } + /** + * + * + *
+     * Optional. Excludes resources from restoration. If specified,
+     * a resource will not be restored if it matches
+     * any `ResourceSelector` of the `exclusion_filters`.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.ResourceSelector getExclusionFilters(int index) { + return exclusionFilters_.get(index); + } + /** + * + * + *
+     * Optional. Excludes resources from restoration. If specified,
+     * a resource will not be restored if it matches
+     * any `ResourceSelector` of the `exclusion_filters`.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder getExclusionFiltersOrBuilder( + int index) { + return exclusionFilters_.get(index); } - } - public static final int CLUSTER_FIELD_NUMBER = 7; + private byte memoizedIsInitialized = -1; - @SuppressWarnings("serial") - private volatile java.lang.Object cluster_ = ""; - /** - * - * - *
-   * Output only. The target cluster into which this Restore will restore data.
-   * Valid formats:
-   *
-   *   - `projects/*/locations/*/clusters/*`
-   *   - `projects/*/zones/*/clusters/*`
-   *
-   * Inherited from parent RestorePlan's
-   * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
-   * 
- * - * - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The cluster. - */ - @java.lang.Override - public java.lang.String getCluster() { - java.lang.Object ref = cluster_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cluster_ = s; - return s; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - } - /** - * - * - *
-   * Output only. The target cluster into which this Restore will restore data.
-   * Valid formats:
-   *
-   *   - `projects/*/locations/*/clusters/*`
-   *   - `projects/*/zones/*/clusters/*`
-   *
-   * Inherited from parent RestorePlan's
-   * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
-   * 
- * - * - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for cluster. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterBytes() { - java.lang.Object ref = cluster_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - cluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < inclusionFilters_.size(); i++) { + output.writeMessage(1, inclusionFilters_.get(i)); + } + for (int i = 0; i < exclusionFilters_.size(); i++) { + output.writeMessage(2, exclusionFilters_.get(i)); + } + getUnknownFields().writeTo(output); } - } - public static final int RESTORE_CONFIG_FIELD_NUMBER = 8; - private com.google.cloud.gkebackup.v1.RestoreConfig restoreConfig_; - /** - * - * - *
-   * Output only. Configuration of the Restore.  Inherited from parent
-   * RestorePlan's
-   * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
-   * 
- * - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the restoreConfig field is set. - */ - @java.lang.Override - public boolean hasRestoreConfig() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * Output only. Configuration of the Restore.  Inherited from parent
-   * RestorePlan's
-   * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
-   * 
- * - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The restoreConfig. - */ - @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig getRestoreConfig() { - return restoreConfig_ == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() - : restoreConfig_; - } - /** - * - * - *
-   * Output only. Configuration of the Restore.  Inherited from parent
-   * RestorePlan's
-   * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
-   * 
- * - * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBuilder() { - return restoreConfig_ == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() - : restoreConfig_; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < inclusionFilters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, inclusionFilters_.get(i)); + } + for (int i = 0; i < exclusionFilters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, exclusionFilters_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int LABELS_FIELD_NUMBER = 9; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkebackup.v1.Restore.Filter)) { + return super.equals(obj); + } + com.google.cloud.gkebackup.v1.Restore.Filter other = + (com.google.cloud.gkebackup.v1.Restore.Filter) obj; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.gkebackup.v1.RestoreProto - .internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } + if (!getInclusionFiltersList().equals(other.getInclusionFiltersList())) return false; + if (!getExclusionFiltersList().equals(other.getExclusionFiltersList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getInclusionFiltersCount() > 0) { + hash = (37 * hash) + INCLUSION_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getInclusionFiltersList().hashCode(); + } + if (getExclusionFiltersCount() > 0) { + hash = (37 * hash) + EXCLUSION_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getExclusionFiltersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + public static com.google.cloud.gkebackup.v1.Restore.Filter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - return labels_; - } - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-   * A set of custom labels supplied by user.
-   * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public static com.google.cloud.gkebackup.v1.Restore.Filter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * A set of custom labels supplied by user.
-   * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * A set of custom labels supplied by user.
-   * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + + public static com.google.cloud.gkebackup.v1.Restore.Filter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * A set of custom labels supplied by user.
-   * 
- * - * map<string, string> labels = 9; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + + public static com.google.cloud.gkebackup.v1.Restore.Filter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + + public static com.google.cloud.gkebackup.v1.Restore.Filter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - return map.get(key); - } - public static final int STATE_FIELD_NUMBER = 10; - private int state_ = 0; - /** - * - * - *
-   * Output only. The current state of the Restore.
-   * 
- * - * - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. The current state of the Restore.
-   * 
- * - * - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.gkebackup.v1.Restore.State getState() { - com.google.cloud.gkebackup.v1.Restore.State result = - com.google.cloud.gkebackup.v1.Restore.State.forNumber(state_); - return result == null ? com.google.cloud.gkebackup.v1.Restore.State.UNRECOGNIZED : result; - } + public static com.google.cloud.gkebackup.v1.Restore.Filter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int STATE_REASON_FIELD_NUMBER = 11; + public static com.google.cloud.gkebackup.v1.Restore.Filter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @SuppressWarnings("serial") - private volatile java.lang.Object stateReason_ = ""; - /** - * - * - *
-   * Output only. Human-readable description of why the Restore is in its
-   * current state.
-   * 
- * - * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The stateReason. - */ - @java.lang.Override - public java.lang.String getStateReason() { - java.lang.Object ref = stateReason_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stateReason_ = s; - return s; + public static com.google.cloud.gkebackup.v1.Restore.Filter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - } - /** - * - * - *
-   * Output only. Human-readable description of why the Restore is in its
-   * current state.
-   * 
- * - * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for stateReason. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStateReasonBytes() { - java.lang.Object ref = stateReason_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - stateReason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + public static com.google.cloud.gkebackup.v1.Restore.Filter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - } - public static final int COMPLETE_TIME_FIELD_NUMBER = 12; - private com.google.protobuf.Timestamp completeTime_; - /** - * - * - *
-   * Output only. Timestamp of when the restore operation completed.
-   * 
- * - * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the completeTime field is set. - */ - @java.lang.Override - public boolean hasCompleteTime() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * Output only. Timestamp of when the restore operation completed.
-   * 
- * - * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The completeTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCompleteTime() { - return completeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : completeTime_; - } - /** - * - * - *
-   * Output only. Timestamp of when the restore operation completed.
-   * 
- * - * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { - return completeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : completeTime_; - } + public static com.google.cloud.gkebackup.v1.Restore.Filter 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 final int RESOURCES_RESTORED_COUNT_FIELD_NUMBER = 13; - private int resourcesRestoredCount_ = 0; - /** - * - * - *
-   * Output only. Number of resources restored during the restore execution.
-   * 
- * - * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The resourcesRestoredCount. - */ - @java.lang.Override - public int getResourcesRestoredCount() { - return resourcesRestoredCount_; - } + public static com.google.cloud.gkebackup.v1.Restore.Filter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int RESOURCES_EXCLUDED_COUNT_FIELD_NUMBER = 14; - private int resourcesExcludedCount_ = 0; - /** - * - * - *
-   * Output only. Number of resources excluded during the restore execution.
-   * 
- * - * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The resourcesExcludedCount. - */ - @java.lang.Override - public int getResourcesExcludedCount() { - return resourcesExcludedCount_; - } + public static com.google.cloud.gkebackup.v1.Restore.Filter 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 final int RESOURCES_FAILED_COUNT_FIELD_NUMBER = 15; - private int resourcesFailedCount_ = 0; - /** - * - * - *
-   * Output only. Number of resources that failed to be restored during the
-   * restore execution.
-   * 
- * - * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The resourcesFailedCount. - */ - @java.lang.Override - public int getResourcesFailedCount() { - return resourcesFailedCount_; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int VOLUMES_RESTORED_COUNT_FIELD_NUMBER = 16; - private int volumesRestoredCount_ = 0; - /** - * - * - *
-   * Output only. Number of volumes restored during the restore execution.
-   * 
- * - * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The volumesRestoredCount. - */ - @java.lang.Override - public int getVolumesRestoredCount() { - return volumesRestoredCount_; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int ETAG_FIELD_NUMBER = 17; + public static Builder newBuilder(com.google.cloud.gkebackup.v1.Restore.Filter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @SuppressWarnings("serial") - private volatile java.lang.Object etag_ = ""; - /** - * - * - *
-   * Output only. `etag` is used for optimistic concurrency control as a way to
-   * help prevent simultaneous updates of a restore from overwriting each other.
-   * It is strongly suggested that systems make use of the `etag` in the
-   * read-modify-write cycle to perform restore updates in order to avoid
-   * race conditions: An `etag` is returned in the response to `GetRestore`,
-   * and systems are expected to put that etag in the request to
-   * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
-   * applied to the same version of the resource.
-   * 
- * - * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The etag. - */ - @java.lang.Override - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - } - /** - * - * - *
-   * Output only. `etag` is used for optimistic concurrency control as a way to
-   * help prevent simultaneous updates of a restore from overwriting each other.
-   * It is strongly suggested that systems make use of the `etag` in the
-   * read-modify-write cycle to perform restore updates in order to avoid
-   * race conditions: An `etag` is returned in the response to `GetRestore`,
-   * and systems are expected to put that etag in the request to
-   * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
-   * applied to the same version of the resource.
-   * 
- * - * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - } + /** + * + * + *
+     * Defines the filter for `Restore`. This filter can be used to further
+     * refine the resource selection of the `Restore` beyond the coarse-grained
+     * scope defined in the `RestorePlan`. `exclusion_filters` take precedence
+     * over `inclusion_filters`. If a resource matches both `inclusion_filters`
+     * and `exclusion_filters`, it will not be restored.
+     * 
+ * + * Protobuf type {@code google.cloud.gkebackup.v1.Restore.Filter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.Restore.Filter) + com.google.cloud.gkebackup.v1.Restore.FilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_Restore_Filter_descriptor; + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_Restore_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkebackup.v1.Restore.Filter.class, + com.google.cloud.gkebackup.v1.Restore.Filter.Builder.class); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Construct using com.google.cloud.gkebackup.v1.Restore.Filter.newBuilder() + private Builder() {} - memoizedIsInitialized = 1; - return true; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - @java.lang.Override - 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(uid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getCreateTime()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(4, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backup_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, backup_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, cluster_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(8, getRestoreConfig()); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); - if (state_ != com.google.cloud.gkebackup.v1.Restore.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(10, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateReason_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, stateReason_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(12, getCompleteTime()); - } - if (resourcesRestoredCount_ != 0) { - output.writeInt32(13, resourcesRestoredCount_); - } - if (resourcesExcludedCount_ != 0) { - output.writeInt32(14, resourcesExcludedCount_); - } - if (resourcesFailedCount_ != 0) { - output.writeInt32(15, resourcesFailedCount_); - } - if (volumesRestoredCount_ != 0) { - output.writeInt32(16, volumesRestoredCount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 17, etag_); - } - getUnknownFields().writeTo(output); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (inclusionFiltersBuilder_ == null) { + inclusionFilters_ = java.util.Collections.emptyList(); + } else { + inclusionFilters_ = null; + inclusionFiltersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (exclusionFiltersBuilder_ == null) { + exclusionFilters_ = java.util.Collections.emptyList(); + } else { + exclusionFilters_ = null; + exclusionFiltersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_Restore_Filter_descriptor; + } - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backup_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, backup_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, cluster_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRestoreConfig()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__); - } - if (state_ != com.google.cloud.gkebackup.v1.Restore.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateReason_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, stateReason_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getCompleteTime()); - } - if (resourcesRestoredCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, resourcesRestoredCount_); - } - if (resourcesExcludedCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, resourcesExcludedCount_); - } - if (resourcesFailedCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(15, resourcesFailedCount_); - } - if (volumesRestoredCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(16, volumesRestoredCount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, etag_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public com.google.cloud.gkebackup.v1.Restore.Filter getDefaultInstanceForType() { + return com.google.cloud.gkebackup.v1.Restore.Filter.getDefaultInstance(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gkebackup.v1.Restore)) { - return super.equals(obj); - } - com.google.cloud.gkebackup.v1.Restore other = (com.google.cloud.gkebackup.v1.Restore) obj; + @java.lang.Override + public com.google.cloud.gkebackup.v1.Restore.Filter build() { + com.google.cloud.gkebackup.v1.Restore.Filter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - if (!getName().equals(other.getName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!getDescription().equals(other.getDescription())) return false; - if (!getBackup().equals(other.getBackup())) return false; - if (!getCluster().equals(other.getCluster())) return false; - if (hasRestoreConfig() != other.hasRestoreConfig()) return false; - if (hasRestoreConfig()) { - if (!getRestoreConfig().equals(other.getRestoreConfig())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (state_ != other.state_) return false; - if (!getStateReason().equals(other.getStateReason())) return false; - if (hasCompleteTime() != other.hasCompleteTime()) return false; - if (hasCompleteTime()) { - if (!getCompleteTime().equals(other.getCompleteTime())) return false; - } - if (getResourcesRestoredCount() != other.getResourcesRestoredCount()) return false; - if (getResourcesExcludedCount() != other.getResourcesExcludedCount()) return false; - if (getResourcesFailedCount() != other.getResourcesFailedCount()) return false; - if (getVolumesRestoredCount() != other.getVolumesRestoredCount()) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public com.google.cloud.gkebackup.v1.Restore.Filter buildPartial() { + com.google.cloud.gkebackup.v1.Restore.Filter result = + new com.google.cloud.gkebackup.v1.Restore.Filter(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + getUid().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + BACKUP_FIELD_NUMBER; - hash = (53 * hash) + getBackup().hashCode(); - hash = (37 * hash) + CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getCluster().hashCode(); - if (hasRestoreConfig()) { - hash = (37 * hash) + RESTORE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getRestoreConfig().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + STATE_REASON_FIELD_NUMBER; - hash = (53 * hash) + getStateReason().hashCode(); - if (hasCompleteTime()) { - hash = (37 * hash) + COMPLETE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCompleteTime().hashCode(); - } - hash = (37 * hash) + RESOURCES_RESTORED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getResourcesRestoredCount(); - hash = (37 * hash) + RESOURCES_EXCLUDED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getResourcesExcludedCount(); - hash = (37 * hash) + RESOURCES_FAILED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getResourcesFailedCount(); - hash = (37 * hash) + VOLUMES_RESTORED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getVolumesRestoredCount(); - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gkebackup.v1.Restore parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gkebackup.v1.Restore 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.gkebackup.v1.Restore parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gkebackup.v1.Restore parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gkebackup.v1.Restore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gkebackup.v1.Restore parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gkebackup.v1.Restore parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gkebackup.v1.Restore 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.gkebackup.v1.Restore parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + private void buildPartialRepeatedFields(com.google.cloud.gkebackup.v1.Restore.Filter result) { + if (inclusionFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + inclusionFilters_ = java.util.Collections.unmodifiableList(inclusionFilters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.inclusionFilters_ = inclusionFilters_; + } else { + result.inclusionFilters_ = inclusionFiltersBuilder_.build(); + } + if (exclusionFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + exclusionFilters_ = java.util.Collections.unmodifiableList(exclusionFilters_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.exclusionFilters_ = exclusionFilters_; + } else { + result.exclusionFilters_ = exclusionFiltersBuilder_.build(); + } + } - public static com.google.cloud.gkebackup.v1.Restore parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + private void buildPartial0(com.google.cloud.gkebackup.v1.Restore.Filter result) { + int from_bitField0_ = bitField0_; + } - public static com.google.cloud.gkebackup.v1.Restore parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - public static com.google.cloud.gkebackup.v1.Restore 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 setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.Restore prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Represents both a request to Restore some portion of a Backup into
-   * a target GKE cluster and a record of the restore operation itself.
-   * 
- * - * Protobuf type {@code google.cloud.gkebackup.v1.Restore} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.Restore) - com.google.cloud.gkebackup.v1.RestoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.RestoreProto - .internal_static_google_cloud_gkebackup_v1_Restore_descriptor; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkebackup.v1.Restore.Filter) { + return mergeFrom((com.google.cloud.gkebackup.v1.Restore.Filter) other); + } else { + super.mergeFrom(other); + return this; + } + } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 9: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); + public Builder mergeFrom(com.google.cloud.gkebackup.v1.Restore.Filter other) { + if (other == com.google.cloud.gkebackup.v1.Restore.Filter.getDefaultInstance()) return this; + if (inclusionFiltersBuilder_ == null) { + if (!other.inclusionFilters_.isEmpty()) { + if (inclusionFilters_.isEmpty()) { + inclusionFilters_ = other.inclusionFilters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInclusionFiltersIsMutable(); + inclusionFilters_.addAll(other.inclusionFilters_); + } + onChanged(); + } + } else { + if (!other.inclusionFilters_.isEmpty()) { + if (inclusionFiltersBuilder_.isEmpty()) { + inclusionFiltersBuilder_.dispose(); + inclusionFiltersBuilder_ = null; + inclusionFilters_ = other.inclusionFilters_; + bitField0_ = (bitField0_ & ~0x00000001); + inclusionFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInclusionFiltersFieldBuilder() + : null; + } else { + inclusionFiltersBuilder_.addAllMessages(other.inclusionFilters_); + } + } + } + if (exclusionFiltersBuilder_ == null) { + if (!other.exclusionFilters_.isEmpty()) { + if (exclusionFilters_.isEmpty()) { + exclusionFilters_ = other.exclusionFilters_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureExclusionFiltersIsMutable(); + exclusionFilters_.addAll(other.exclusionFilters_); + } + onChanged(); + } + } else { + if (!other.exclusionFilters_.isEmpty()) { + if (exclusionFiltersBuilder_.isEmpty()) { + exclusionFiltersBuilder_.dispose(); + exclusionFiltersBuilder_ = null; + exclusionFilters_ = other.exclusionFilters_; + bitField0_ = (bitField0_ & ~0x00000002); + exclusionFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExclusionFiltersFieldBuilder() + : null; + } else { + exclusionFiltersBuilder_.addAllMessages(other.exclusionFilters_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 9: - return internalGetMutableLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); + @java.lang.Override + public final boolean isInitialized() { + return true; } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.RestoreProto - .internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.Restore.class, - com.google.cloud.gkebackup.v1.Restore.Builder.class); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.gkebackup.v1.ResourceSelector m = + input.readMessage( + com.google.cloud.gkebackup.v1.ResourceSelector.parser(), + extensionRegistry); + if (inclusionFiltersBuilder_ == null) { + ensureInclusionFiltersIsMutable(); + inclusionFilters_.add(m); + } else { + inclusionFiltersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.gkebackup.v1.ResourceSelector m = + input.readMessage( + com.google.cloud.gkebackup.v1.ResourceSelector.parser(), + extensionRegistry); + if (exclusionFiltersBuilder_ == null) { + ensureExclusionFiltersIsMutable(); + exclusionFilters_.add(m); + } else { + exclusionFiltersBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } - // Construct using com.google.cloud.gkebackup.v1.Restore.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private int bitField0_; - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + private java.util.List inclusionFilters_ = + java.util.Collections.emptyList(); - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getCreateTimeFieldBuilder(); - getUpdateTimeFieldBuilder(); - getRestoreConfigFieldBuilder(); - getCompleteTimeFieldBuilder(); + private void ensureInclusionFiltersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + inclusionFilters_ = + new java.util.ArrayList( + inclusionFilters_); + bitField0_ |= 0x00000001; + } } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - uid_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.ResourceSelector, + com.google.cloud.gkebackup.v1.ResourceSelector.Builder, + com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder> + inclusionFiltersBuilder_; + + /** + * + * + *
+       * Optional. Selects resources for restoration. If specified, only resources
+       * which match `inclusion_filters` will be selected for restoration. A
+       * resource will be selected if it matches any `ResourceSelector` of the
+       * `inclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInclusionFiltersList() { + if (inclusionFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(inclusionFilters_); + } else { + return inclusionFiltersBuilder_.getMessageList(); + } } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; + /** + * + * + *
+       * Optional. Selects resources for restoration. If specified, only resources
+       * which match `inclusion_filters` will be selected for restoration. A
+       * resource will be selected if it matches any `ResourceSelector` of the
+       * `inclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getInclusionFiltersCount() { + if (inclusionFiltersBuilder_ == null) { + return inclusionFilters_.size(); + } else { + return inclusionFiltersBuilder_.getCount(); + } } - description_ = ""; - backup_ = ""; - cluster_ = ""; - restoreConfig_ = null; - if (restoreConfigBuilder_ != null) { - restoreConfigBuilder_.dispose(); - restoreConfigBuilder_ = null; + /** + * + * + *
+       * Optional. Selects resources for restoration. If specified, only resources
+       * which match `inclusion_filters` will be selected for restoration. A
+       * resource will be selected if it matches any `ResourceSelector` of the
+       * `inclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkebackup.v1.ResourceSelector getInclusionFilters(int index) { + if (inclusionFiltersBuilder_ == null) { + return inclusionFilters_.get(index); + } else { + return inclusionFiltersBuilder_.getMessage(index); + } } - internalGetMutableLabels().clear(); - state_ = 0; - stateReason_ = ""; - completeTime_ = null; - if (completeTimeBuilder_ != null) { - completeTimeBuilder_.dispose(); - completeTimeBuilder_ = null; + /** + * + * + *
+       * Optional. Selects resources for restoration. If specified, only resources
+       * which match `inclusion_filters` will be selected for restoration. A
+       * resource will be selected if it matches any `ResourceSelector` of the
+       * `inclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInclusionFilters( + int index, com.google.cloud.gkebackup.v1.ResourceSelector value) { + if (inclusionFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInclusionFiltersIsMutable(); + inclusionFilters_.set(index, value); + onChanged(); + } else { + inclusionFiltersBuilder_.setMessage(index, value); + } + return this; } - resourcesRestoredCount_ = 0; - resourcesExcludedCount_ = 0; - resourcesFailedCount_ = 0; - volumesRestoredCount_ = 0; - etag_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.RestoreProto - .internal_static_google_cloud_gkebackup_v1_Restore_descriptor; - } - - @java.lang.Override - public com.google.cloud.gkebackup.v1.Restore getDefaultInstanceForType() { - return com.google.cloud.gkebackup.v1.Restore.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gkebackup.v1.Restore build() { - com.google.cloud.gkebackup.v1.Restore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
+       * Optional. Selects resources for restoration. If specified, only resources
+       * which match `inclusion_filters` will be selected for restoration. A
+       * resource will be selected if it matches any `ResourceSelector` of the
+       * `inclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInclusionFilters( + int index, com.google.cloud.gkebackup.v1.ResourceSelector.Builder builderForValue) { + if (inclusionFiltersBuilder_ == null) { + ensureInclusionFiltersIsMutable(); + inclusionFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + inclusionFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; } - return result; - } - - @java.lang.Override - public com.google.cloud.gkebackup.v1.Restore buildPartial() { - com.google.cloud.gkebackup.v1.Restore result = - new com.google.cloud.gkebackup.v1.Restore(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
+       * Optional. Selects resources for restoration. If specified, only resources
+       * which match `inclusion_filters` will be selected for restoration. A
+       * resource will be selected if it matches any `ResourceSelector` of the
+       * `inclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInclusionFilters(com.google.cloud.gkebackup.v1.ResourceSelector value) { + if (inclusionFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInclusionFiltersIsMutable(); + inclusionFilters_.add(value); + onChanged(); + } else { + inclusionFiltersBuilder_.addMessage(value); + } + return this; } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.gkebackup.v1.Restore result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; + /** + * + * + *
+       * Optional. Selects resources for restoration. If specified, only resources
+       * which match `inclusion_filters` will be selected for restoration. A
+       * resource will be selected if it matches any `ResourceSelector` of the
+       * `inclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInclusionFilters( + int index, com.google.cloud.gkebackup.v1.ResourceSelector value) { + if (inclusionFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInclusionFiltersIsMutable(); + inclusionFilters_.add(index, value); + onChanged(); + } else { + inclusionFiltersBuilder_.addMessage(index, value); + } + return this; } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.uid_ = uid_; + /** + * + * + *
+       * Optional. Selects resources for restoration. If specified, only resources
+       * which match `inclusion_filters` will be selected for restoration. A
+       * resource will be selected if it matches any `ResourceSelector` of the
+       * `inclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInclusionFilters( + com.google.cloud.gkebackup.v1.ResourceSelector.Builder builderForValue) { + if (inclusionFiltersBuilder_ == null) { + ensureInclusionFiltersIsMutable(); + inclusionFilters_.add(builderForValue.build()); + onChanged(); + } else { + inclusionFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; + /** + * + * + *
+       * Optional. Selects resources for restoration. If specified, only resources
+       * which match `inclusion_filters` will be selected for restoration. A
+       * resource will be selected if it matches any `ResourceSelector` of the
+       * `inclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInclusionFilters( + int index, com.google.cloud.gkebackup.v1.ResourceSelector.Builder builderForValue) { + if (inclusionFiltersBuilder_ == null) { + ensureInclusionFiltersIsMutable(); + inclusionFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + inclusionFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; + /** + * + * + *
+       * Optional. Selects resources for restoration. If specified, only resources
+       * which match `inclusion_filters` will be selected for restoration. A
+       * resource will be selected if it matches any `ResourceSelector` of the
+       * `inclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllInclusionFilters( + java.lang.Iterable values) { + if (inclusionFiltersBuilder_ == null) { + ensureInclusionFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inclusionFilters_); + onChanged(); + } else { + inclusionFiltersBuilder_.addAllMessages(values); + } + return this; } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.description_ = description_; + /** + * + * + *
+       * Optional. Selects resources for restoration. If specified, only resources
+       * which match `inclusion_filters` will be selected for restoration. A
+       * resource will be selected if it matches any `ResourceSelector` of the
+       * `inclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInclusionFilters() { + if (inclusionFiltersBuilder_ == null) { + inclusionFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + inclusionFiltersBuilder_.clear(); + } + return this; } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.backup_ = backup_; + /** + * + * + *
+       * Optional. Selects resources for restoration. If specified, only resources
+       * which match `inclusion_filters` will be selected for restoration. A
+       * resource will be selected if it matches any `ResourceSelector` of the
+       * `inclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeInclusionFilters(int index) { + if (inclusionFiltersBuilder_ == null) { + ensureInclusionFiltersIsMutable(); + inclusionFilters_.remove(index); + onChanged(); + } else { + inclusionFiltersBuilder_.remove(index); + } + return this; } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.cluster_ = cluster_; + /** + * + * + *
+       * Optional. Selects resources for restoration. If specified, only resources
+       * which match `inclusion_filters` will be selected for restoration. A
+       * resource will be selected if it matches any `ResourceSelector` of the
+       * `inclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkebackup.v1.ResourceSelector.Builder getInclusionFiltersBuilder( + int index) { + return getInclusionFiltersFieldBuilder().getBuilder(index); } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.restoreConfig_ = - restoreConfigBuilder_ == null ? restoreConfig_ : restoreConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; + /** + * + * + *
+       * Optional. Selects resources for restoration. If specified, only resources
+       * which match `inclusion_filters` will be selected for restoration. A
+       * resource will be selected if it matches any `ResourceSelector` of the
+       * `inclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder getInclusionFiltersOrBuilder( + int index) { + if (inclusionFiltersBuilder_ == null) { + return inclusionFilters_.get(index); + } else { + return inclusionFiltersBuilder_.getMessageOrBuilder(index); + } } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); + /** + * + * + *
+       * Optional. Selects resources for restoration. If specified, only resources
+       * which match `inclusion_filters` will be selected for restoration. A
+       * resource will be selected if it matches any `ResourceSelector` of the
+       * `inclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInclusionFiltersOrBuilderList() { + if (inclusionFiltersBuilder_ != null) { + return inclusionFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inclusionFilters_); + } } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.state_ = state_; + /** + * + * + *
+       * Optional. Selects resources for restoration. If specified, only resources
+       * which match `inclusion_filters` will be selected for restoration. A
+       * resource will be selected if it matches any `ResourceSelector` of the
+       * `inclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkebackup.v1.ResourceSelector.Builder addInclusionFiltersBuilder() { + return getInclusionFiltersFieldBuilder() + .addBuilder(com.google.cloud.gkebackup.v1.ResourceSelector.getDefaultInstance()); } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.stateReason_ = stateReason_; + /** + * + * + *
+       * Optional. Selects resources for restoration. If specified, only resources
+       * which match `inclusion_filters` will be selected for restoration. A
+       * resource will be selected if it matches any `ResourceSelector` of the
+       * `inclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkebackup.v1.ResourceSelector.Builder addInclusionFiltersBuilder( + int index) { + return getInclusionFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.gkebackup.v1.ResourceSelector.getDefaultInstance()); } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.completeTime_ = - completeTimeBuilder_ == null ? completeTime_ : completeTimeBuilder_.build(); - to_bitField0_ |= 0x00000008; + /** + * + * + *
+       * Optional. Selects resources for restoration. If specified, only resources
+       * which match `inclusion_filters` will be selected for restoration. A
+       * resource will be selected if it matches any `ResourceSelector` of the
+       * `inclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInclusionFiltersBuilderList() { + return getInclusionFiltersFieldBuilder().getBuilderList(); } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.resourcesRestoredCount_ = resourcesRestoredCount_; + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.ResourceSelector, + com.google.cloud.gkebackup.v1.ResourceSelector.Builder, + com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder> + getInclusionFiltersFieldBuilder() { + if (inclusionFiltersBuilder_ == null) { + inclusionFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.ResourceSelector, + com.google.cloud.gkebackup.v1.ResourceSelector.Builder, + com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder>( + inclusionFilters_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + inclusionFilters_ = null; + } + return inclusionFiltersBuilder_; } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.resourcesExcludedCount_ = resourcesExcludedCount_; + + private java.util.List exclusionFilters_ = + java.util.Collections.emptyList(); + + private void ensureExclusionFiltersIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + exclusionFilters_ = + new java.util.ArrayList( + exclusionFilters_); + bitField0_ |= 0x00000002; + } } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.resourcesFailedCount_ = resourcesFailedCount_; + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.ResourceSelector, + com.google.cloud.gkebackup.v1.ResourceSelector.Builder, + com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder> + exclusionFiltersBuilder_; + + /** + * + * + *
+       * Optional. Excludes resources from restoration. If specified,
+       * a resource will not be restored if it matches
+       * any `ResourceSelector` of the `exclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getExclusionFiltersList() { + if (exclusionFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(exclusionFilters_); + } else { + return exclusionFiltersBuilder_.getMessageList(); + } } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.volumesRestoredCount_ = volumesRestoredCount_; + /** + * + * + *
+       * Optional. Excludes resources from restoration. If specified,
+       * a resource will not be restored if it matches
+       * any `ResourceSelector` of the `exclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getExclusionFiltersCount() { + if (exclusionFiltersBuilder_ == null) { + return exclusionFilters_.size(); + } else { + return exclusionFiltersBuilder_.getCount(); + } } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.etag_ = etag_; + /** + * + * + *
+       * Optional. Excludes resources from restoration. If specified,
+       * a resource will not be restored if it matches
+       * any `ResourceSelector` of the `exclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkebackup.v1.ResourceSelector getExclusionFilters(int index) { + if (exclusionFiltersBuilder_ == null) { + return exclusionFilters_.get(index); + } else { + return exclusionFiltersBuilder_.getMessage(index); + } } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gkebackup.v1.Restore) { - return mergeFrom((com.google.cloud.gkebackup.v1.Restore) other); - } else { - super.mergeFrom(other); + /** + * + * + *
+       * Optional. Excludes resources from restoration. If specified,
+       * a resource will not be restored if it matches
+       * any `ResourceSelector` of the `exclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExclusionFilters( + int index, com.google.cloud.gkebackup.v1.ResourceSelector value) { + if (exclusionFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExclusionFiltersIsMutable(); + exclusionFilters_.set(index, value); + onChanged(); + } else { + exclusionFiltersBuilder_.setMessage(index, value); + } return this; } - } - - public Builder mergeFrom(com.google.cloud.gkebackup.v1.Restore other) { - if (other == com.google.cloud.gkebackup.v1.Restore.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); + /** + * + * + *
+       * Optional. Excludes resources from restoration. If specified,
+       * a resource will not be restored if it matches
+       * any `ResourceSelector` of the `exclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExclusionFilters( + int index, com.google.cloud.gkebackup.v1.ResourceSelector.Builder builderForValue) { + if (exclusionFiltersBuilder_ == null) { + ensureExclusionFiltersIsMutable(); + exclusionFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + exclusionFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; } - if (!other.getUid().isEmpty()) { - uid_ = other.uid_; - bitField0_ |= 0x00000002; - onChanged(); + /** + * + * + *
+       * Optional. Excludes resources from restoration. If specified,
+       * a resource will not be restored if it matches
+       * any `ResourceSelector` of the `exclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExclusionFilters(com.google.cloud.gkebackup.v1.ResourceSelector value) { + if (exclusionFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExclusionFiltersIsMutable(); + exclusionFilters_.add(value); + onChanged(); + } else { + exclusionFiltersBuilder_.addMessage(value); + } + return this; } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); + /** + * + * + *
+       * Optional. Excludes resources from restoration. If specified,
+       * a resource will not be restored if it matches
+       * any `ResourceSelector` of the `exclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExclusionFilters( + int index, com.google.cloud.gkebackup.v1.ResourceSelector value) { + if (exclusionFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExclusionFiltersIsMutable(); + exclusionFilters_.add(index, value); + onChanged(); + } else { + exclusionFiltersBuilder_.addMessage(index, value); + } + return this; } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); + /** + * + * + *
+       * Optional. Excludes resources from restoration. If specified,
+       * a resource will not be restored if it matches
+       * any `ResourceSelector` of the `exclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExclusionFilters( + com.google.cloud.gkebackup.v1.ResourceSelector.Builder builderForValue) { + if (exclusionFiltersBuilder_ == null) { + ensureExclusionFiltersIsMutable(); + exclusionFilters_.add(builderForValue.build()); + onChanged(); + } else { + exclusionFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000010; - onChanged(); + /** + * + * + *
+       * Optional. Excludes resources from restoration. If specified,
+       * a resource will not be restored if it matches
+       * any `ResourceSelector` of the `exclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExclusionFilters( + int index, com.google.cloud.gkebackup.v1.ResourceSelector.Builder builderForValue) { + if (exclusionFiltersBuilder_ == null) { + ensureExclusionFiltersIsMutable(); + exclusionFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + exclusionFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; } - if (!other.getBackup().isEmpty()) { - backup_ = other.backup_; - bitField0_ |= 0x00000020; - onChanged(); + /** + * + * + *
+       * Optional. Excludes resources from restoration. If specified,
+       * a resource will not be restored if it matches
+       * any `ResourceSelector` of the `exclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllExclusionFilters( + java.lang.Iterable values) { + if (exclusionFiltersBuilder_ == null) { + ensureExclusionFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exclusionFilters_); + onChanged(); + } else { + exclusionFiltersBuilder_.addAllMessages(values); + } + return this; } - if (!other.getCluster().isEmpty()) { - cluster_ = other.cluster_; - bitField0_ |= 0x00000040; - onChanged(); + /** + * + * + *
+       * Optional. Excludes resources from restoration. If specified,
+       * a resource will not be restored if it matches
+       * any `ResourceSelector` of the `exclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExclusionFilters() { + if (exclusionFiltersBuilder_ == null) { + exclusionFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + exclusionFiltersBuilder_.clear(); + } + return this; } - if (other.hasRestoreConfig()) { - mergeRestoreConfig(other.getRestoreConfig()); + /** + * + * + *
+       * Optional. Excludes resources from restoration. If specified,
+       * a resource will not be restored if it matches
+       * any `ResourceSelector` of the `exclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeExclusionFilters(int index) { + if (exclusionFiltersBuilder_ == null) { + ensureExclusionFiltersIsMutable(); + exclusionFilters_.remove(index); + onChanged(); + } else { + exclusionFiltersBuilder_.remove(index); + } + return this; } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000100; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); + /** + * + * + *
+       * Optional. Excludes resources from restoration. If specified,
+       * a resource will not be restored if it matches
+       * any `ResourceSelector` of the `exclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkebackup.v1.ResourceSelector.Builder getExclusionFiltersBuilder( + int index) { + return getExclusionFiltersFieldBuilder().getBuilder(index); } - if (!other.getStateReason().isEmpty()) { - stateReason_ = other.stateReason_; - bitField0_ |= 0x00000400; - onChanged(); + /** + * + * + *
+       * Optional. Excludes resources from restoration. If specified,
+       * a resource will not be restored if it matches
+       * any `ResourceSelector` of the `exclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder getExclusionFiltersOrBuilder( + int index) { + if (exclusionFiltersBuilder_ == null) { + return exclusionFilters_.get(index); + } else { + return exclusionFiltersBuilder_.getMessageOrBuilder(index); + } } - if (other.hasCompleteTime()) { - mergeCompleteTime(other.getCompleteTime()); + /** + * + * + *
+       * Optional. Excludes resources from restoration. If specified,
+       * a resource will not be restored if it matches
+       * any `ResourceSelector` of the `exclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getExclusionFiltersOrBuilderList() { + if (exclusionFiltersBuilder_ != null) { + return exclusionFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(exclusionFilters_); + } } - if (other.getResourcesRestoredCount() != 0) { - setResourcesRestoredCount(other.getResourcesRestoredCount()); + /** + * + * + *
+       * Optional. Excludes resources from restoration. If specified,
+       * a resource will not be restored if it matches
+       * any `ResourceSelector` of the `exclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkebackup.v1.ResourceSelector.Builder addExclusionFiltersBuilder() { + return getExclusionFiltersFieldBuilder() + .addBuilder(com.google.cloud.gkebackup.v1.ResourceSelector.getDefaultInstance()); } - if (other.getResourcesExcludedCount() != 0) { - setResourcesExcludedCount(other.getResourcesExcludedCount()); + /** + * + * + *
+       * Optional. Excludes resources from restoration. If specified,
+       * a resource will not be restored if it matches
+       * any `ResourceSelector` of the `exclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkebackup.v1.ResourceSelector.Builder addExclusionFiltersBuilder( + int index) { + return getExclusionFiltersFieldBuilder() + .addBuilder(index, com.google.cloud.gkebackup.v1.ResourceSelector.getDefaultInstance()); } - if (other.getResourcesFailedCount() != 0) { - setResourcesFailedCount(other.getResourcesFailedCount()); + /** + * + * + *
+       * Optional. Excludes resources from restoration. If specified,
+       * a resource will not be restored if it matches
+       * any `ResourceSelector` of the `exclusion_filters`.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getExclusionFiltersBuilderList() { + return getExclusionFiltersFieldBuilder().getBuilderList(); } - if (other.getVolumesRestoredCount() != 0) { - setVolumesRestoredCount(other.getVolumesRestoredCount()); + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.ResourceSelector, + com.google.cloud.gkebackup.v1.ResourceSelector.Builder, + com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder> + getExclusionFiltersFieldBuilder() { + if (exclusionFiltersBuilder_ == null) { + exclusionFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.ResourceSelector, + com.google.cloud.gkebackup.v1.ResourceSelector.Builder, + com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder>( + exclusionFilters_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + exclusionFilters_ = null; + } + return exclusionFiltersBuilder_; } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - bitField0_ |= 0x00010000; - onChanged(); + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.Restore.Filter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.Restore.Filter) + private static final com.google.cloud.gkebackup.v1.Restore.Filter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.Restore.Filter(); + } + + public static com.google.cloud.gkebackup.v1.Restore.Filter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } @java.lang.Override - public final boolean isInitialized() { - return true; + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { + public com.google.cloud.gkebackup.v1.Restore.Filter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The full name of the Restore resource.
+   * Format: `projects/*/locations/*/restorePlans/*/restores/*`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The full name of the Restore resource.
+   * Format: `projects/*/locations/*/restorePlans/*/restores/*`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + * + * + *
+   * Output only. Server generated global unique identifier of
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
+   * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Server generated global unique identifier of
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
+   * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. The timestamp when this Restore resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. The timestamp when this Restore resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. The timestamp when this Restore resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. The timestamp when this Restore resource was last
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. The timestamp when this Restore resource was last
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. The timestamp when this Restore resource was last
+   * updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
+   * User specified descriptive string for this Restore.
+   * 
+ * + * string description = 5; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * User specified descriptive string for this Restore.
+   * 
+ * + * string description = 5; + * + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKUP_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object backup_ = ""; + /** + * + * + *
+   * Required. Immutable. A reference to the
+   * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
+   * this Restore will restore. Note that this Backup must be a sub-resource of
+   * the RestorePlan's
+   * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
+   * `projects/*/locations/*/backupPlans/*/backups/*`.
+   * 
+ * + * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The backup. + */ + @java.lang.Override + public java.lang.String getBackup() { + java.lang.Object ref = backup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backup_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. A reference to the
+   * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
+   * this Restore will restore. Note that this Backup must be a sub-resource of
+   * the RestorePlan's
+   * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
+   * `projects/*/locations/*/backupPlans/*/backups/*`.
+   * 
+ * + * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for backup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackupBytes() { + java.lang.Object ref = backup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object cluster_ = ""; + /** + * + * + *
+   * Output only. The target cluster into which this Restore will restore data.
+   * Valid formats:
+   *
+   *   - `projects/*/locations/*/clusters/*`
+   *   - `projects/*/zones/*/clusters/*`
+   *
+   * Inherited from parent RestorePlan's
+   * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
+   * 
+ * + * + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + @java.lang.Override + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The target cluster into which this Restore will restore data.
+   * Valid formats:
+   *
+   *   - `projects/*/locations/*/clusters/*`
+   *   - `projects/*/zones/*/clusters/*`
+   *
+   * Inherited from parent RestorePlan's
+   * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
+   * 
+ * + * + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESTORE_CONFIG_FIELD_NUMBER = 8; + private com.google.cloud.gkebackup.v1.RestoreConfig restoreConfig_; + /** + * + * + *
+   * Output only. Configuration of the Restore.  Inherited from parent
+   * RestorePlan's
+   * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the restoreConfig field is set. + */ + @java.lang.Override + public boolean hasRestoreConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Output only. Configuration of the Restore.  Inherited from parent
+   * RestorePlan's
+   * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The restoreConfig. + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig getRestoreConfig() { + return restoreConfig_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() + : restoreConfig_; + } + /** + * + * + *
+   * Output only. Configuration of the Restore.  Inherited from parent
+   * RestorePlan's
+   * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBuilder() { + return restoreConfig_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() + : restoreConfig_; + } + + public static final int LABELS_FIELD_NUMBER = 9; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * A set of custom labels supplied by user.
+   * 
+ * + * map<string, string> labels = 9; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * A set of custom labels supplied by user.
+   * 
+ * + * map<string, string> labels = 9; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * A set of custom labels supplied by user.
+   * 
+ * + * map<string, string> labels = 9; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * A set of custom labels supplied by user.
+   * 
+ * + * map<string, string> labels = 9; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int STATE_FIELD_NUMBER = 10; + private int state_ = 0; + /** + * + * + *
+   * Output only. The current state of the Restore.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. The current state of the Restore.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.Restore.State getState() { + com.google.cloud.gkebackup.v1.Restore.State result = + com.google.cloud.gkebackup.v1.Restore.State.forNumber(state_); + return result == null ? com.google.cloud.gkebackup.v1.Restore.State.UNRECOGNIZED : result; + } + + public static final int STATE_REASON_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object stateReason_ = ""; + /** + * + * + *
+   * Output only. Human-readable description of why the Restore is in its
+   * current state.
+   * 
+ * + * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateReason. + */ + @java.lang.Override + public java.lang.String getStateReason() { + java.lang.Object ref = stateReason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stateReason_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Human-readable description of why the Restore is in its
+   * current state.
+   * 
+ * + * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateReason. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStateReasonBytes() { + java.lang.Object ref = stateReason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stateReason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPLETE_TIME_FIELD_NUMBER = 12; + private com.google.protobuf.Timestamp completeTime_; + /** + * + * + *
+   * Output only. Timestamp of when the restore operation completed.
+   * 
+ * + * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the completeTime field is set. + */ + @java.lang.Override + public boolean hasCompleteTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * Output only. Timestamp of when the restore operation completed.
+   * 
+ * + * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The completeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCompleteTime() { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + /** + * + * + *
+   * Output only. Timestamp of when the restore operation completed.
+   * 
+ * + * + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } + + public static final int RESOURCES_RESTORED_COUNT_FIELD_NUMBER = 13; + private int resourcesRestoredCount_ = 0; + /** + * + * + *
+   * Output only. Number of resources restored during the restore execution.
+   * 
+ * + * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourcesRestoredCount. + */ + @java.lang.Override + public int getResourcesRestoredCount() { + return resourcesRestoredCount_; + } + + public static final int RESOURCES_EXCLUDED_COUNT_FIELD_NUMBER = 14; + private int resourcesExcludedCount_ = 0; + /** + * + * + *
+   * Output only. Number of resources excluded during the restore execution.
+   * 
+ * + * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourcesExcludedCount. + */ + @java.lang.Override + public int getResourcesExcludedCount() { + return resourcesExcludedCount_; + } + + public static final int RESOURCES_FAILED_COUNT_FIELD_NUMBER = 15; + private int resourcesFailedCount_ = 0; + /** + * + * + *
+   * Output only. Number of resources that failed to be restored during the
+   * restore execution.
+   * 
+ * + * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourcesFailedCount. + */ + @java.lang.Override + public int getResourcesFailedCount() { + return resourcesFailedCount_; + } + + public static final int VOLUMES_RESTORED_COUNT_FIELD_NUMBER = 16; + private int volumesRestoredCount_ = 0; + /** + * + * + *
+   * Output only. Number of volumes restored during the restore execution.
+   * 
+ * + * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The volumesRestoredCount. + */ + @java.lang.Override + public int getVolumesRestoredCount() { + return volumesRestoredCount_; + } + + public static final int ETAG_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + * + * + *
+   * Output only. `etag` is used for optimistic concurrency control as a way to
+   * help prevent simultaneous updates of a restore from overwriting each other.
+   * It is strongly suggested that systems make use of the `etag` in the
+   * read-modify-write cycle to perform restore updates in order to avoid
+   * race conditions: An `etag` is returned in the response to `GetRestore`,
+   * and systems are expected to put that etag in the request to
+   * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
+   * applied to the same version of the resource.
+   * 
+ * + * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. `etag` is used for optimistic concurrency control as a way to
+   * help prevent simultaneous updates of a restore from overwriting each other.
+   * It is strongly suggested that systems make use of the `etag` in the
+   * read-modify-write cycle to perform restore updates in order to avoid
+   * race conditions: An `etag` is returned in the response to `GetRestore`,
+   * and systems are expected to put that etag in the request to
+   * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
+   * applied to the same version of the resource.
+   * 
+ * + * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 18; + private com.google.cloud.gkebackup.v1.Restore.Filter filter_; + /** + * + * + *
+   * Optional. Immutable. Filters resources for `Restore`. If not specified, the
+   * scope of the restore will remain the same as defined in the `RestorePlan`.
+   * If this is specified, and no resources are matched by the
+   * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
+   * nothing will be restored. This filter can only be specified if the value of
+   * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
+   * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
+   * `MERGE_REPLACE_ON_CONFLICT`.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+   * Optional. Immutable. Filters resources for `Restore`. If not specified, the
+   * scope of the restore will remain the same as defined in the `RestorePlan`.
+   * If this is specified, and no resources are matched by the
+   * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
+   * nothing will be restored. This filter can only be specified if the value of
+   * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
+   * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
+   * `MERGE_REPLACE_ON_CONFLICT`.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The filter. + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.Restore.Filter getFilter() { + return filter_ == null + ? com.google.cloud.gkebackup.v1.Restore.Filter.getDefaultInstance() + : filter_; + } + /** + * + * + *
+   * Optional. Immutable. Filters resources for `Restore`. If not specified, the
+   * scope of the restore will remain the same as defined in the `RestorePlan`.
+   * If this is specified, and no resources are matched by the
+   * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
+   * nothing will be restored. This filter can only be specified if the value of
+   * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
+   * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
+   * `MERGE_REPLACE_ON_CONFLICT`.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.Restore.FilterOrBuilder getFilterOrBuilder() { + return filter_ == null + ? com.google.cloud.gkebackup.v1.Restore.Filter.getDefaultInstance() + : filter_; + } + + public static final int VOLUME_DATA_RESTORE_POLICY_OVERRIDES_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private java.util.List + volumeDataRestorePolicyOverrides_; + /** + * + * + *
+   * Optional. Immutable. Overrides the volume data restore policies selected in
+   * the Restore Config for override-scoped resources.
+   * 
+ * + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getVolumeDataRestorePolicyOverridesList() { + return volumeDataRestorePolicyOverrides_; + } + /** + * + * + *
+   * Optional. Immutable. Overrides the volume data restore policies selected in
+   * the Restore Config for override-scoped resources.
+   * 
+ * + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverrideOrBuilder> + getVolumeDataRestorePolicyOverridesOrBuilderList() { + return volumeDataRestorePolicyOverrides_; + } + /** + * + * + *
+   * Optional. Immutable. Overrides the volume data restore policies selected in
+   * the Restore Config for override-scoped resources.
+   * 
+ * + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getVolumeDataRestorePolicyOverridesCount() { + return volumeDataRestorePolicyOverrides_.size(); + } + /** + * + * + *
+   * Optional. Immutable. Overrides the volume data restore policies selected in
+   * the Restore Config for override-scoped resources.
+   * 
+ * + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride + getVolumeDataRestorePolicyOverrides(int index) { + return volumeDataRestorePolicyOverrides_.get(index); + } + /** + * + * + *
+   * Optional. Immutable. Overrides the volume data restore policies selected in
+   * the Restore Config for override-scoped resources.
+   * 
+ * + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverrideOrBuilder + getVolumeDataRestorePolicyOverridesOrBuilder(int index) { + return volumeDataRestorePolicyOverrides_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, backup_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, cluster_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getRestoreConfig()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); + if (state_ != com.google.cloud.gkebackup.v1.Restore.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(10, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateReason_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, stateReason_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(12, getCompleteTime()); + } + if (resourcesRestoredCount_ != 0) { + output.writeInt32(13, resourcesRestoredCount_); + } + if (resourcesExcludedCount_ != 0) { + output.writeInt32(14, resourcesExcludedCount_); + } + if (resourcesFailedCount_ != 0) { + output.writeInt32(15, resourcesFailedCount_); + } + if (volumesRestoredCount_ != 0) { + output.writeInt32(16, volumesRestoredCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, etag_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(18, getFilter()); + } + for (int i = 0; i < volumeDataRestorePolicyOverrides_.size(); i++) { + output.writeMessage(19, volumeDataRestorePolicyOverrides_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, backup_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, cluster_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRestoreConfig()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__); + } + if (state_ != com.google.cloud.gkebackup.v1.Restore.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateReason_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, stateReason_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getCompleteTime()); + } + if (resourcesRestoredCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, resourcesRestoredCount_); + } + if (resourcesExcludedCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, resourcesExcludedCount_); + } + if (resourcesFailedCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(15, resourcesFailedCount_); + } + if (volumesRestoredCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(16, volumesRestoredCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, etag_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getFilter()); + } + for (int i = 0; i < volumeDataRestorePolicyOverrides_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 19, volumeDataRestorePolicyOverrides_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkebackup.v1.Restore)) { + return super.equals(obj); + } + com.google.cloud.gkebackup.v1.Restore other = (com.google.cloud.gkebackup.v1.Restore) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getDescription().equals(other.getDescription())) return false; + if (!getBackup().equals(other.getBackup())) return false; + if (!getCluster().equals(other.getCluster())) return false; + if (hasRestoreConfig() != other.hasRestoreConfig()) return false; + if (hasRestoreConfig()) { + if (!getRestoreConfig().equals(other.getRestoreConfig())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (state_ != other.state_) return false; + if (!getStateReason().equals(other.getStateReason())) return false; + if (hasCompleteTime() != other.hasCompleteTime()) return false; + if (hasCompleteTime()) { + if (!getCompleteTime().equals(other.getCompleteTime())) return false; + } + if (getResourcesRestoredCount() != other.getResourcesRestoredCount()) return false; + if (getResourcesExcludedCount() != other.getResourcesExcludedCount()) return false; + if (getResourcesFailedCount() != other.getResourcesFailedCount()) return false; + if (getVolumesRestoredCount() != other.getVolumesRestoredCount()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter().equals(other.getFilter())) return false; + } + if (!getVolumeDataRestorePolicyOverridesList() + .equals(other.getVolumeDataRestorePolicyOverridesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + BACKUP_FIELD_NUMBER; + hash = (53 * hash) + getBackup().hashCode(); + hash = (37 * hash) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + if (hasRestoreConfig()) { + hash = (37 * hash) + RESTORE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRestoreConfig().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + STATE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getStateReason().hashCode(); + if (hasCompleteTime()) { + hash = (37 * hash) + COMPLETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCompleteTime().hashCode(); + } + hash = (37 * hash) + RESOURCES_RESTORED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getResourcesRestoredCount(); + hash = (37 * hash) + RESOURCES_EXCLUDED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getResourcesExcludedCount(); + hash = (37 * hash) + RESOURCES_FAILED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getResourcesFailedCount(); + hash = (37 * hash) + VOLUMES_RESTORED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getVolumesRestoredCount(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + if (getVolumeDataRestorePolicyOverridesCount() > 0) { + hash = (37 * hash) + VOLUME_DATA_RESTORE_POLICY_OVERRIDES_FIELD_NUMBER; + hash = (53 * hash) + getVolumeDataRestorePolicyOverridesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkebackup.v1.Restore parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.Restore 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.gkebackup.v1.Restore parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.Restore parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkebackup.v1.Restore parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.Restore parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkebackup.v1.Restore parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.Restore 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.gkebackup.v1.Restore parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.Restore 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.gkebackup.v1.Restore parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.Restore 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkebackup.v1.Restore prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents both a request to Restore some portion of a Backup into
+   * a target GKE cluster and a record of the restore operation itself.
+   * 
+ * + * Protobuf type {@code google.cloud.gkebackup.v1.Restore} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.Restore) + com.google.cloud.gkebackup.v1.RestoreOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_Restore_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkebackup.v1.Restore.class, + com.google.cloud.gkebackup.v1.Restore.Builder.class); + } + + // Construct using com.google.cloud.gkebackup.v1.Restore.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getRestoreConfigFieldBuilder(); + getCompleteTimeFieldBuilder(); + getFilterFieldBuilder(); + getVolumeDataRestorePolicyOverridesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + uid_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + description_ = ""; + backup_ = ""; + cluster_ = ""; + restoreConfig_ = null; + if (restoreConfigBuilder_ != null) { + restoreConfigBuilder_.dispose(); + restoreConfigBuilder_ = null; + } + internalGetMutableLabels().clear(); + state_ = 0; + stateReason_ = ""; + completeTime_ = null; + if (completeTimeBuilder_ != null) { + completeTimeBuilder_.dispose(); + completeTimeBuilder_ = null; + } + resourcesRestoredCount_ = 0; + resourcesExcludedCount_ = 0; + resourcesFailedCount_ = 0; + volumesRestoredCount_ = 0; + etag_ = ""; + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + if (volumeDataRestorePolicyOverridesBuilder_ == null) { + volumeDataRestorePolicyOverrides_ = java.util.Collections.emptyList(); + } else { + volumeDataRestorePolicyOverrides_ = null; + volumeDataRestorePolicyOverridesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00040000); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_Restore_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.Restore getDefaultInstanceForType() { + return com.google.cloud.gkebackup.v1.Restore.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.Restore build() { + com.google.cloud.gkebackup.v1.Restore result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.Restore buildPartial() { + com.google.cloud.gkebackup.v1.Restore result = + new com.google.cloud.gkebackup.v1.Restore(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.gkebackup.v1.Restore result) { + if (volumeDataRestorePolicyOverridesBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0)) { + volumeDataRestorePolicyOverrides_ = + java.util.Collections.unmodifiableList(volumeDataRestorePolicyOverrides_); + bitField0_ = (bitField0_ & ~0x00040000); + } + result.volumeDataRestorePolicyOverrides_ = volumeDataRestorePolicyOverrides_; + } else { + result.volumeDataRestorePolicyOverrides_ = volumeDataRestorePolicyOverridesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gkebackup.v1.Restore result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uid_ = uid_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.backup_ = backup_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.cluster_ = cluster_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.restoreConfig_ = + restoreConfigBuilder_ == null ? restoreConfig_ : restoreConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.stateReason_ = stateReason_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.completeTime_ = + completeTimeBuilder_ == null ? completeTime_ : completeTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.resourcesRestoredCount_ = resourcesRestoredCount_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.resourcesExcludedCount_ = resourcesExcludedCount_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.resourcesFailedCount_ = resourcesFailedCount_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.volumesRestoredCount_ = volumesRestoredCount_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.filter_ = filterBuilder_ == null ? filter_ : filterBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkebackup.v1.Restore) { + return mergeFrom((com.google.cloud.gkebackup.v1.Restore) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkebackup.v1.Restore other) { + if (other == com.google.cloud.gkebackup.v1.Restore.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getBackup().isEmpty()) { + backup_ = other.backup_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getCluster().isEmpty()) { + cluster_ = other.cluster_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasRestoreConfig()) { + mergeRestoreConfig(other.getRestoreConfig()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000100; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getStateReason().isEmpty()) { + stateReason_ = other.stateReason_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasCompleteTime()) { + mergeCompleteTime(other.getCompleteTime()); + } + if (other.getResourcesRestoredCount() != 0) { + setResourcesRestoredCount(other.getResourcesRestoredCount()); + } + if (other.getResourcesExcludedCount() != 0) { + setResourcesExcludedCount(other.getResourcesExcludedCount()); + } + if (other.getResourcesFailedCount() != 0) { + setResourcesFailedCount(other.getResourcesFailedCount()); + } + if (other.getVolumesRestoredCount() != 0) { + setVolumesRestoredCount(other.getVolumesRestoredCount()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + if (volumeDataRestorePolicyOverridesBuilder_ == null) { + if (!other.volumeDataRestorePolicyOverrides_.isEmpty()) { + if (volumeDataRestorePolicyOverrides_.isEmpty()) { + volumeDataRestorePolicyOverrides_ = other.volumeDataRestorePolicyOverrides_; + bitField0_ = (bitField0_ & ~0x00040000); + } else { + ensureVolumeDataRestorePolicyOverridesIsMutable(); + volumeDataRestorePolicyOverrides_.addAll(other.volumeDataRestorePolicyOverrides_); + } + onChanged(); + } + } else { + if (!other.volumeDataRestorePolicyOverrides_.isEmpty()) { + if (volumeDataRestorePolicyOverridesBuilder_.isEmpty()) { + volumeDataRestorePolicyOverridesBuilder_.dispose(); + volumeDataRestorePolicyOverridesBuilder_ = null; + volumeDataRestorePolicyOverrides_ = other.volumeDataRestorePolicyOverrides_; + bitField0_ = (bitField0_ & ~0x00040000); + volumeDataRestorePolicyOverridesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVolumeDataRestorePolicyOverridesFieldBuilder() + : null; + } else { + volumeDataRestorePolicyOverridesBuilder_.addAllMessages( + other.volumeDataRestorePolicyOverrides_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { case 0: done = true; break; @@ -1932,6 +4001,26 @@ public Builder mergeFrom( bitField0_ |= 0x00010000; break; } // case 138 + case 146: + { + input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 146 + case 154: + { + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride m = + input.readMessage( + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.parser(), + extensionRegistry); + if (volumeDataRestorePolicyOverridesBuilder_ == null) { + ensureVolumeDataRestorePolicyOverridesIsMutable(); + volumeDataRestorePolicyOverrides_.add(m); + } else { + volumeDataRestorePolicyOverridesBuilder_.addMessage(m); + } + break; + } // case 154 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1945,31 +4034,667 @@ public Builder mergeFrom( throw e.unwrapIOException(); } finally { onChanged(); - } // finally + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The full name of the Restore resource.
+     * Format: `projects/*/locations/*/restorePlans/*/restores/*`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The full name of the Restore resource.
+     * Format: `projects/*/locations/*/restorePlans/*/restores/*`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The full name of the Restore resource.
+     * Format: `projects/*/locations/*/restorePlans/*/restores/*`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The full name of the Restore resource.
+     * Format: `projects/*/locations/*/restorePlans/*/restores/*`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The full name of the Restore resource.
+     * Format: `projects/*/locations/*/restorePlans/*/restores/*`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
+     * Output only. Server generated global unique identifier of
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
+     * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Server generated global unique identifier of
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
+     * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Server generated global unique identifier of
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
+     * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Server generated global unique identifier of
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
+     * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Server generated global unique identifier of
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
+     * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + 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_; + /** + * + * + *
+     * Output only. The timestamp when this Restore resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. The timestamp when this Restore resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The timestamp when this Restore resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this Restore resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this Restore resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this Restore resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this Restore resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp when this Restore resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + } + } + /** + * + * + *
+     * Output only. The timestamp when this Restore resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + createTime_ = null; + } + return createTimeBuilder_; + } + + 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_; + /** + * + * + *
+     * Output only. The timestamp when this Restore resource was last
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. The timestamp when this Restore resource was last
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The timestamp when this Restore resource was last
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this Restore resource was last
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this Restore resource was last
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } + /** + * + * + *
+     * Output only. The timestamp when this Restore resource was last
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The timestamp when this Restore resource was last
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timestamp when this Restore resource was last
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_; + } + } + /** + * + * + *
+     * Output only. The timestamp when this Restore resource was last
+     * updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + updateTime_ = null; + } + return updateTimeBuilder_; + } - private int bitField0_; - - private java.lang.Object name_ = ""; + private java.lang.Object description_ = ""; /** * * *
-     * Output only. The full name of the Restore resource.
-     * Format: `projects/*/locations/*/restorePlans/*/restores/*`
+     * User specified descriptive string for this Restore.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string description = 5; * - * @return The name. + * @return The description. */ - public java.lang.String getName() { - java.lang.Object ref = name_; + 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; java.lang.String s = bs.toStringUtf8(); - name_ = s; + description_ = s; return s; } else { return (java.lang.String) ref; @@ -1979,20 +4704,19 @@ public java.lang.String getName() { * * *
-     * Output only. The full name of the Restore resource.
-     * Format: `projects/*/locations/*/restorePlans/*/restores/*`
+     * User specified descriptive string for this Restore.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string description = 5; * - * @return The bytes for name. + * @return The bytes for description. */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; + 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); - name_ = b; + description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2002,21 +4726,20 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The full name of the Restore resource.
-     * Format: `projects/*/locations/*/restorePlans/*/restores/*`
+     * User specified descriptive string for this Restore.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string description = 5; * - * @param value The name to set. + * @param value The description to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; + description_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2024,17 +4747,16 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The full name of the Restore resource.
-     * Format: `projects/*/locations/*/restorePlans/*/restores/*`
+     * User specified descriptive string for this Restore.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string description = 5; * * @return This builder for chaining. */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2042,45 +4764,50 @@ public Builder clearName() { * * *
-     * Output only. The full name of the Restore resource.
-     * Format: `projects/*/locations/*/restorePlans/*/restores/*`
+     * User specified descriptive string for this Restore.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string description = 5; * - * @param value The bytes for name to set. + * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; + description_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } - private java.lang.Object uid_ = ""; + private java.lang.Object backup_ = ""; /** * * *
-     * Output only. Server generated global unique identifier of
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
+     * Required. Immutable. A reference to the
+     * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
+     * this Restore will restore. Note that this Backup must be a sub-resource of
+     * the RestorePlan's
+     * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
+     * `projects/*/locations/*/backupPlans/*/backups/*`.
      * 
* - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The uid. + * @return The backup. */ - public java.lang.String getUid() { - java.lang.Object ref = uid_; + public java.lang.String getBackup() { + java.lang.Object ref = backup_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - uid_ = s; + backup_ = s; return s; } else { return (java.lang.String) ref; @@ -2090,20 +4817,26 @@ public java.lang.String getUid() { * * *
-     * Output only. Server generated global unique identifier of
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
+     * Required. Immutable. A reference to the
+     * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
+     * this Restore will restore. Note that this Backup must be a sub-resource of
+     * the RestorePlan's
+     * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
+     * `projects/*/locations/*/backupPlans/*/backups/*`.
      * 
* - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The bytes for uid. + * @return The bytes for backup. */ - public com.google.protobuf.ByteString getUidBytes() { - java.lang.Object ref = uid_; + public com.google.protobuf.ByteString getBackupBytes() { + java.lang.Object ref = backup_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uid_ = b; + backup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2113,21 +4846,27 @@ public com.google.protobuf.ByteString getUidBytes() { * * *
-     * Output only. Server generated global unique identifier of
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
+     * Required. Immutable. A reference to the
+     * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
+     * this Restore will restore. Note that this Backup must be a sub-resource of
+     * the RestorePlan's
+     * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
+     * `projects/*/locations/*/backupPlans/*/backups/*`.
      * 
* - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @param value The uid to set. + * @param value The backup to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { + public Builder setBackup(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - uid_ = value; - bitField0_ |= 0x00000002; + backup_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2135,17 +4874,23 @@ public Builder setUid(java.lang.String value) { * * *
-     * Output only. Server generated global unique identifier of
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
+     * Required. Immutable. A reference to the
+     * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
+     * this Restore will restore. Note that this Backup must be a sub-resource of
+     * the RestorePlan's
+     * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
+     * `projects/*/locations/*/backupPlans/*/backups/*`.
      * 
* - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ - public Builder clearUid() { - uid_ = getDefaultInstance().getUid(); - bitField0_ = (bitField0_ & ~0x00000002); + public Builder clearBackup() { + backup_ = getDefaultInstance().getBackup(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2153,162 +4898,122 @@ public Builder clearUid() { * * *
-     * Output only. Server generated global unique identifier of
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
+     * Required. Immutable. A reference to the
+     * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
+     * this Restore will restore. Note that this Backup must be a sub-resource of
+     * the RestorePlan's
+     * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
+     * `projects/*/locations/*/backupPlans/*/backups/*`.
      * 
* - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @param value The bytes for uid to set. + * @param value The bytes for backup to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { + public Builder setBackupBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - uid_ = value; - bitField0_ |= 0x00000002; + backup_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } - 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_; + private java.lang.Object cluster_ = ""; /** * * *
-     * Output only. The timestamp when this Restore resource was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000004) != 0); - } - /** + * Output only. The target cluster into which this Restore will restore data. + * Valid formats: * + * - `projects/*/locations/*/clusters/*` + * - `projects/*/zones/*/clusters/*` * - *
-     * Output only. The timestamp when this Restore resource was created.
+     * Inherited from parent RestorePlan's
+     * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
      * 
* * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * - * @return The createTime. + * @return The cluster. */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; } else { - return createTimeBuilder_.getMessage(); + return (java.lang.String) ref; } } /** * * *
-     * Output only. The timestamp when this Restore resource was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** + * Output only. The target cluster into which this Restore will restore data. + * Valid formats: * + * - `projects/*/locations/*/clusters/*` + * - `projects/*/zones/*/clusters/*` * - *
-     * Output only. The timestamp when this Restore resource was created.
+     * Inherited from parent RestorePlan's
+     * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
      * 
* * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for cluster. */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; } else { - createTimeBuilder_.setMessage(builderForValue.build()); + return (com.google.protobuf.ByteString) ref; } - bitField0_ |= 0x00000004; - onChanged(); - return this; } /** * * *
-     * Output only. The timestamp when this Restore resource was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - if (createTime_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** + * Output only. The target cluster into which this Restore will restore data. + * Valid formats: * + * - `projects/*/locations/*/clusters/*` + * - `projects/*/zones/*/clusters/*` * - *
-     * Output only. The timestamp when this Restore resource was created.
+     * Inherited from parent RestorePlan's
+     * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
      * 
* * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * + * + * @param value The cluster to set. + * @return This builder for chaining. */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000004); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + public Builder setCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + cluster_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2316,134 +5021,131 @@ public Builder clearCreateTime() { * * *
-     * Output only. The timestamp when this Restore resource was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** + * Output only. The target cluster into which this Restore will restore data. + * Valid formats: * + * - `projects/*/locations/*/clusters/*` + * - `projects/*/zones/*/clusters/*` * - *
-     * Output only. The timestamp when this Restore resource was created.
+     * Inherited from parent RestorePlan's
+     * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
      * 
* * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } + * + * @return This builder for chaining. + */ + public Builder clearCluster() { + cluster_ = getDefaultInstance().getCluster(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; } /** * * *
-     * Output only. The timestamp when this Restore resource was created.
+     * Output only. The target cluster into which this Restore will restore data.
+     * Valid formats:
+     *
+     *   - `projects/*/locations/*/clusters/*`
+     *   - `projects/*/zones/*/clusters/*`
+     *
+     * Inherited from parent RestorePlan's
+     * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
      * 
* * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * + * + * @param value The bytes for cluster to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - 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()); - createTime_ = null; + public Builder setClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return createTimeBuilder_; + checkByteStringIsUtf8(value); + cluster_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; } - private com.google.protobuf.Timestamp updateTime_; + private com.google.cloud.gkebackup.v1.RestoreConfig restoreConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.cloud.gkebackup.v1.RestoreConfig, + com.google.cloud.gkebackup.v1.RestoreConfig.Builder, + com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> + restoreConfigBuilder_; /** * * *
-     * Output only. The timestamp when this Restore resource was last
-     * updated.
+     * Output only. Configuration of the Restore.  Inherited from parent
+     * RestorePlan's
+     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the updateTime field is set. + * @return Whether the restoreConfig field is set. */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000008) != 0); + public boolean hasRestoreConfig() { + return ((bitField0_ & 0x00000080) != 0); } /** * * *
-     * Output only. The timestamp when this Restore resource was last
-     * updated.
+     * Output only. Configuration of the Restore.  Inherited from parent
+     * RestorePlan's
+     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The updateTime. + * @return The restoreConfig. */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + public com.google.cloud.gkebackup.v1.RestoreConfig getRestoreConfig() { + if (restoreConfigBuilder_ == null) { + return restoreConfig_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() + : restoreConfig_; } else { - return updateTimeBuilder_.getMessage(); + return restoreConfigBuilder_.getMessage(); } } /** * * *
-     * Output only. The timestamp when this Restore resource was last
-     * updated.
+     * Output only. Configuration of the Restore.  Inherited from parent
+     * RestorePlan's
+     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { + public Builder setRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig value) { + if (restoreConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - updateTime_ = value; + restoreConfig_ = value; } else { - updateTimeBuilder_.setMessage(value); + restoreConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2451,21 +5153,23 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The timestamp when this Restore resource was last
-     * updated.
+     * Output only. Configuration of the Restore.  Inherited from parent
+     * RestorePlan's
+     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); + public Builder setRestoreConfig( + com.google.cloud.gkebackup.v1.RestoreConfig.Builder builderForValue) { + if (restoreConfigBuilder_ == null) { + restoreConfig_ = builderForValue.build(); } else { - updateTimeBuilder_.setMessage(builderForValue.build()); + restoreConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2473,28 +5177,29 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. The timestamp when this Restore resource was last
-     * updated.
+     * Output only. Configuration of the Restore.  Inherited from parent
+     * RestorePlan's
+     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); + public Builder mergeRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig value) { + if (restoreConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && restoreConfig_ != null + && restoreConfig_ != com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance()) { + getRestoreConfigBuilder().mergeFrom(value); } else { - updateTime_ = value; + restoreConfig_ = value; } } else { - updateTimeBuilder_.mergeFrom(value); + restoreConfigBuilder_.mergeFrom(value); } - if (updateTime_ != null) { - bitField0_ |= 0x00000008; + if (restoreConfig_ != null) { + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -2503,20 +5208,21 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The timestamp when this Restore resource was last
-     * updated.
+     * Output only. Configuration of the Restore.  Inherited from parent
+     * RestorePlan's
+     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000008); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; + public Builder clearRestoreConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + restoreConfig_ = null; + if (restoreConfigBuilder_ != null) { + restoreConfigBuilder_.dispose(); + restoreConfigBuilder_ = null; } onChanged(); return this; @@ -2525,259 +5231,270 @@ public Builder clearUpdateTime() { * * *
-     * Output only. The timestamp when this Restore resource was last
-     * updated.
+     * Output only. Configuration of the Restore.  Inherited from parent
+     * RestorePlan's
+     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000008; + public com.google.cloud.gkebackup.v1.RestoreConfig.Builder getRestoreConfigBuilder() { + bitField0_ |= 0x00000080; onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); + return getRestoreConfigFieldBuilder().getBuilder(); } /** * * *
-     * Output only. The timestamp when this Restore resource was last
-     * updated.
+     * Output only. Configuration of the Restore.  Inherited from parent
+     * RestorePlan's
+     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); + public com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBuilder() { + if (restoreConfigBuilder_ != null) { + return restoreConfigBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return restoreConfig_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() + : restoreConfig_; } } /** * * *
-     * Output only. The timestamp when this Restore resource was last
-     * updated.
+     * Output only. Configuration of the Restore.  Inherited from parent
+     * RestorePlan's
+     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
      * 
* * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = + com.google.cloud.gkebackup.v1.RestoreConfig, + com.google.cloud.gkebackup.v1.RestoreConfig.Builder, + com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> + getRestoreConfigFieldBuilder() { + if (restoreConfigBuilder_ == null) { + restoreConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; + com.google.cloud.gkebackup.v1.RestoreConfig, + com.google.cloud.gkebackup.v1.RestoreConfig.Builder, + com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder>( + getRestoreConfig(), getParentForChildren(), isClean()); + restoreConfig_ = null; } - return updateTimeBuilder_; + return restoreConfigBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000100; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); } - - private java.lang.Object description_ = ""; /** * * *
-     * User specified descriptive string for this Restore.
+     * A set of custom labels supplied by user.
      * 
* - * string description = 5; - * - * @return The description. + * map<string, string> labels = 9; */ - 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; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); } /** * * *
-     * User specified descriptive string for this Restore.
+     * A set of custom labels supplied by user.
      * 
* - * string description = 5; + * map<string, string> labels = 9; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** * - * @return The bytes for description. + * + *
+     * A set of custom labels supplied by user.
+     * 
+ * + * map<string, string> labels = 9; */ - 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); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
-     * User specified descriptive string for this Restore.
+     * A set of custom labels supplied by user.
      * 
* - * string description = 5; - * - * @param value The description to set. - * @return This builder for chaining. + * map<string, string> labels = 9; */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - description_ = value; - bitField0_ |= 0x00000010; - onChanged(); + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000100); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** * * *
-     * User specified descriptive string for this Restore.
+     * A set of custom labels supplied by user.
      * 
* - * string description = 5; - * - * @return This builder for chaining. + * map<string, string> labels = 9; */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000100; + return internalGetMutableLabels().getMutableMap(); + } /** * * *
-     * User specified descriptive string for this Restore.
+     * A set of custom labels supplied by user.
      * 
* - * string description = 5; - * - * @param value The bytes for description to set. - * @return This builder for chaining. + * map<string, string> labels = 9; */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException(); + throw new NullPointerException("map value"); } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000010; - onChanged(); + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000100; return this; } - - private java.lang.Object backup_ = ""; /** * * *
-     * Required. Immutable. A reference to the
-     * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
-     * this Restore will restore. Note that this Backup must be a sub-resource of
-     * the RestorePlan's
-     * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
-     * `projects/*/locations/*/backupPlans/*/backups/*`.
+     * A set of custom labels supplied by user.
      * 
* - * - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The backup. + * map<string, string> labels = 9; */ - public java.lang.String getBackup() { - java.lang.Object ref = backup_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - backup_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; + return this; } + + private int state_ = 0; /** * * *
-     * Required. Immutable. A reference to the
-     * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
-     * this Restore will restore. Note that this Backup must be a sub-resource of
-     * the RestorePlan's
-     * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
-     * `projects/*/locations/*/backupPlans/*/backups/*`.
+     * Output only. The current state of the Restore.
      * 
* * - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The bytes for backup. + * @return The enum numeric value on the wire for state. */ - public com.google.protobuf.ByteString getBackupBytes() { - java.lang.Object ref = backup_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - backup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public int getStateValue() { + return state_; } /** * * *
-     * Required. Immutable. A reference to the
-     * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
-     * this Restore will restore. Note that this Backup must be a sub-resource of
-     * the RestorePlan's
-     * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
-     * `projects/*/locations/*/backupPlans/*/backups/*`.
+     * Output only. The current state of the Restore.
      * 
* * - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param value The backup to set. + * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ - public Builder setBackup(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - backup_ = value; - bitField0_ |= 0x00000020; + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2785,83 +5502,83 @@ public Builder setBackup(java.lang.String value) { * * *
-     * Required. Immutable. A reference to the
-     * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
-     * this Restore will restore. Note that this Backup must be a sub-resource of
-     * the RestorePlan's
-     * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
-     * `projects/*/locations/*/backupPlans/*/backups/*`.
+     * Output only. The current state of the Restore.
      * 
* * - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return This builder for chaining. + * @return The state. */ - public Builder clearBackup() { - backup_ = getDefaultInstance().getBackup(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; + @java.lang.Override + public com.google.cloud.gkebackup.v1.Restore.State getState() { + com.google.cloud.gkebackup.v1.Restore.State result = + com.google.cloud.gkebackup.v1.Restore.State.forNumber(state_); + return result == null ? com.google.cloud.gkebackup.v1.Restore.State.UNRECOGNIZED : result; } /** * * *
-     * Required. Immutable. A reference to the
-     * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
-     * this Restore will restore. Note that this Backup must be a sub-resource of
-     * the RestorePlan's
-     * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
-     * `projects/*/locations/*/backupPlans/*/backups/*`.
+     * Output only. The current state of the Restore.
      * 
* * - * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param value The bytes for backup to set. + * @param value The state to set. * @return This builder for chaining. */ - public Builder setBackupBytes(com.google.protobuf.ByteString value) { + public Builder setState(com.google.cloud.gkebackup.v1.Restore.State value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - backup_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000200; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The current state of the Restore.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000200); + state_ = 0; onChanged(); return this; } - private java.lang.Object cluster_ = ""; + private java.lang.Object stateReason_ = ""; /** * * *
-     * Output only. The target cluster into which this Restore will restore data.
-     * Valid formats:
-     *
-     *   - `projects/*/locations/*/clusters/*`
-     *   - `projects/*/zones/*/clusters/*`
-     *
-     * Inherited from parent RestorePlan's
-     * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
+     * Output only. Human-readable description of why the Restore is in its
+     * current state.
      * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The cluster. + * @return The stateReason. */ - public java.lang.String getCluster() { - java.lang.Object ref = cluster_; + public java.lang.String getStateReason() { + java.lang.Object ref = stateReason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - cluster_ = s; + stateReason_ = s; return s; } else { return (java.lang.String) ref; @@ -2871,28 +5588,20 @@ public java.lang.String getCluster() { * * *
-     * Output only. The target cluster into which this Restore will restore data.
-     * Valid formats:
-     *
-     *   - `projects/*/locations/*/clusters/*`
-     *   - `projects/*/zones/*/clusters/*`
-     *
-     * Inherited from parent RestorePlan's
-     * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
+     * Output only. Human-readable description of why the Restore is in its
+     * current state.
      * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The bytes for cluster. + * @return The bytes for stateReason. */ - public com.google.protobuf.ByteString getClusterBytes() { - java.lang.Object ref = cluster_; + public com.google.protobuf.ByteString getStateReasonBytes() { + java.lang.Object ref = stateReason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - cluster_ = b; + stateReason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2902,29 +5611,21 @@ public com.google.protobuf.ByteString getClusterBytes() { * * *
-     * Output only. The target cluster into which this Restore will restore data.
-     * Valid formats:
-     *
-     *   - `projects/*/locations/*/clusters/*`
-     *   - `projects/*/zones/*/clusters/*`
-     *
-     * Inherited from parent RestorePlan's
-     * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
+     * Output only. Human-readable description of why the Restore is in its
+     * current state.
      * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The cluster to set. + * @param value The stateReason to set. * @return This builder for chaining. */ - public Builder setCluster(java.lang.String value) { + public Builder setStateReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - cluster_ = value; - bitField0_ |= 0x00000040; + stateReason_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2932,25 +5633,17 @@ public Builder setCluster(java.lang.String value) { * * *
-     * Output only. The target cluster into which this Restore will restore data.
-     * Valid formats:
-     *
-     *   - `projects/*/locations/*/clusters/*`
-     *   - `projects/*/zones/*/clusters/*`
-     *
-     * Inherited from parent RestorePlan's
-     * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
+     * Output only. Human-readable description of why the Restore is in its
+     * current state.
      * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ - public Builder clearCluster() { - cluster_ = getDefaultInstance().getCluster(); - bitField0_ = (bitField0_ & ~0x00000040); + public Builder clearStateReason() { + stateReason_ = getDefaultInstance().getStateReason(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -2958,105 +5651,91 @@ public Builder clearCluster() { * * *
-     * Output only. The target cluster into which this Restore will restore data.
-     * Valid formats:
-     *
-     *   - `projects/*/locations/*/clusters/*`
-     *   - `projects/*/zones/*/clusters/*`
-     *
-     * Inherited from parent RestorePlan's
-     * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
+     * Output only. Human-readable description of why the Restore is in its
+     * current state.
      * 
* - * - * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * + * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The bytes for cluster to set. + * @param value The bytes for stateReason to set. * @return This builder for chaining. */ - public Builder setClusterBytes(com.google.protobuf.ByteString value) { + public Builder setStateReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - cluster_ = value; - bitField0_ |= 0x00000040; + stateReason_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } - private com.google.cloud.gkebackup.v1.RestoreConfig restoreConfig_; + private com.google.protobuf.Timestamp completeTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig, - com.google.cloud.gkebackup.v1.RestoreConfig.Builder, - com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> - restoreConfigBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + completeTimeBuilder_; /** * * *
-     * Output only. Configuration of the Restore.  Inherited from parent
-     * RestorePlan's
-     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
+     * Output only. Timestamp of when the restore operation completed.
      * 
* * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the restoreConfig field is set. + * @return Whether the completeTime field is set. */ - public boolean hasRestoreConfig() { - return ((bitField0_ & 0x00000080) != 0); + public boolean hasCompleteTime() { + return ((bitField0_ & 0x00000800) != 0); } /** * * *
-     * Output only. Configuration of the Restore.  Inherited from parent
-     * RestorePlan's
-     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
+     * Output only. Timestamp of when the restore operation completed.
      * 
* * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The restoreConfig. + * @return The completeTime. */ - public com.google.cloud.gkebackup.v1.RestoreConfig getRestoreConfig() { - if (restoreConfigBuilder_ == null) { - return restoreConfig_ == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() - : restoreConfig_; + public com.google.protobuf.Timestamp getCompleteTime() { + if (completeTimeBuilder_ == null) { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; } else { - return restoreConfigBuilder_.getMessage(); + return completeTimeBuilder_.getMessage(); } } /** * * *
-     * Output only. Configuration of the Restore.  Inherited from parent
-     * RestorePlan's
-     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
+     * Output only. Timestamp of when the restore operation completed.
      * 
* * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig value) { - if (restoreConfigBuilder_ == null) { + public Builder setCompleteTime(com.google.protobuf.Timestamp value) { + if (completeTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - restoreConfig_ = value; + completeTime_ = value; } else { - restoreConfigBuilder_.setMessage(value); + completeTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3064,23 +5743,20 @@ public Builder setRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig valu * * *
-     * Output only. Configuration of the Restore.  Inherited from parent
-     * RestorePlan's
-     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
+     * Output only. Timestamp of when the restore operation completed.
      * 
* * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setRestoreConfig( - com.google.cloud.gkebackup.v1.RestoreConfig.Builder builderForValue) { - if (restoreConfigBuilder_ == null) { - restoreConfig_ = builderForValue.build(); + public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (completeTimeBuilder_ == null) { + completeTime_ = builderForValue.build(); } else { - restoreConfigBuilder_.setMessage(builderForValue.build()); + completeTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3088,29 +5764,27 @@ public Builder setRestoreConfig( * * *
-     * Output only. Configuration of the Restore.  Inherited from parent
-     * RestorePlan's
-     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
+     * Output only. Timestamp of when the restore operation completed.
      * 
* * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig value) { - if (restoreConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && restoreConfig_ != null - && restoreConfig_ != com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance()) { - getRestoreConfigBuilder().mergeFrom(value); + public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { + if (completeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && completeTime_ != null + && completeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCompleteTimeBuilder().mergeFrom(value); } else { - restoreConfig_ = value; + completeTime_ = value; } } else { - restoreConfigBuilder_.mergeFrom(value); + completeTimeBuilder_.mergeFrom(value); } - if (restoreConfig_ != null) { - bitField0_ |= 0x00000080; + if (completeTime_ != null) { + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -3119,21 +5793,19 @@ public Builder mergeRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig va * * *
-     * Output only. Configuration of the Restore.  Inherited from parent
-     * RestorePlan's
-     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
+     * Output only. Timestamp of when the restore operation completed.
      * 
* * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearRestoreConfig() { - bitField0_ = (bitField0_ & ~0x00000080); - restoreConfig_ = null; - if (restoreConfigBuilder_ != null) { - restoreConfigBuilder_.dispose(); - restoreConfigBuilder_ = null; + public Builder clearCompleteTime() { + bitField0_ = (bitField0_ & ~0x00000800); + completeTime_ = null; + if (completeTimeBuilder_ != null) { + completeTimeBuilder_.dispose(); + completeTimeBuilder_ = null; } onChanged(); return this; @@ -3142,312 +5814,266 @@ public Builder clearRestoreConfig() { * * *
-     * Output only. Configuration of the Restore.  Inherited from parent
-     * RestorePlan's
-     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
+     * Output only. Timestamp of when the restore operation completed.
      * 
* * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.Builder getRestoreConfigBuilder() { - bitField0_ |= 0x00000080; + public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { + bitField0_ |= 0x00000800; onChanged(); - return getRestoreConfigFieldBuilder().getBuilder(); + return getCompleteTimeFieldBuilder().getBuilder(); } /** * * *
-     * Output only. Configuration of the Restore.  Inherited from parent
-     * RestorePlan's
-     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
+     * Output only. Timestamp of when the restore operation completed.
      * 
* * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBuilder() { - if (restoreConfigBuilder_ != null) { - return restoreConfigBuilder_.getMessageOrBuilder(); + public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { + if (completeTimeBuilder_ != null) { + return completeTimeBuilder_.getMessageOrBuilder(); } else { - return restoreConfig_ == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() - : restoreConfig_; + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; } } /** * * *
-     * Output only. Configuration of the Restore.  Inherited from parent
-     * RestorePlan's
-     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
+     * Output only. Timestamp of when the restore operation completed.
      * 
* * - * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig, - com.google.cloud.gkebackup.v1.RestoreConfig.Builder, - com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> - getRestoreConfigFieldBuilder() { - if (restoreConfigBuilder_ == null) { - restoreConfigBuilder_ = + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCompleteTimeFieldBuilder() { + if (completeTimeBuilder_ == null) { + completeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig, - com.google.cloud.gkebackup.v1.RestoreConfig.Builder, - com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder>( - getRestoreConfig(), getParentForChildren(), isClean()); - restoreConfig_ = null; - } - return restoreConfigBuilder_; - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCompleteTime(), getParentForChildren(), isClean()); + completeTime_ = null; } - bitField0_ |= 0x00000100; - onChanged(); - return labels_; + return completeTimeBuilder_; } - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } + private int resourcesRestoredCount_; /** * * *
-     * A set of custom labels supplied by user.
+     * Output only. Number of resources restored during the restore execution.
      * 
* - * map<string, string> labels = 9; + * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resourcesRestoredCount. */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); + public int getResourcesRestoredCount() { + return resourcesRestoredCount_; } /** * * *
-     * A set of custom labels supplied by user.
+     * Output only. Number of resources restored during the restore execution.
      * 
* - * map<string, string> labels = 9; + * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The resourcesRestoredCount to set. + * @return This builder for chaining. */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); + public Builder setResourcesRestoredCount(int value) { + + resourcesRestoredCount_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; } /** * * *
-     * A set of custom labels supplied by user.
+     * Output only. Number of resources restored during the restore execution.
      * 
* - * map<string, string> labels = 9; + * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + public Builder clearResourcesRestoredCount() { + bitField0_ = (bitField0_ & ~0x00001000); + resourcesRestoredCount_ = 0; + onChanged(); + return this; } + + private int resourcesExcludedCount_; /** * * *
-     * A set of custom labels supplied by user.
+     * Output only. Number of resources excluded during the restore execution.
      * 
* - * map<string, string> labels = 9; + * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resourcesExcludedCount. */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000100); - internalGetMutableLabels().getMutableMap().clear(); - return this; + public int getResourcesExcludedCount() { + return resourcesExcludedCount_; } /** * * *
-     * A set of custom labels supplied by user.
+     * Output only. Number of resources excluded during the restore execution.
      * 
* - * map<string, string> labels = 9; + * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The resourcesExcludedCount to set. + * @return This builder for chaining. */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + public Builder setResourcesExcludedCount(int value) { + + resourcesExcludedCount_ = value; + bitField0_ |= 0x00002000; + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000100; - return internalGetMutableLabels().getMutableMap(); - } /** * * *
-     * A set of custom labels supplied by user.
+     * Output only. Number of resources excluded during the restore execution.
      * 
* - * map<string, string> labels = 9; + * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000100; + public Builder clearResourcesExcludedCount() { + bitField0_ = (bitField0_ & ~0x00002000); + resourcesExcludedCount_ = 0; + onChanged(); return this; } + + private int resourcesFailedCount_; /** * * *
-     * A set of custom labels supplied by user.
+     * Output only. Number of resources that failed to be restored during the
+     * restore execution.
      * 
* - * map<string, string> labels = 9; + * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The resourcesFailedCount. */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000100; - return this; + @java.lang.Override + public int getResourcesFailedCount() { + return resourcesFailedCount_; } - - private int state_ = 0; /** * * *
-     * Output only. The current state of the Restore.
+     * Output only. Number of resources that failed to be restored during the
+     * restore execution.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The enum numeric value on the wire for state. + * @param value The resourcesFailedCount to set. + * @return This builder for chaining. */ - @java.lang.Override - public int getStateValue() { - return state_; + public Builder setResourcesFailedCount(int value) { + + resourcesFailedCount_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; } /** * * *
-     * Output only. The current state of the Restore.
+     * Output only. Number of resources that failed to be restored during the
+     * restore execution.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @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; - bitField0_ |= 0x00000200; + public Builder clearResourcesFailedCount() { + bitField0_ = (bitField0_ & ~0x00004000); + resourcesFailedCount_ = 0; onChanged(); return this; } + + private int volumesRestoredCount_; /** * * *
-     * Output only. The current state of the Restore.
+     * Output only. Number of volumes restored during the restore execution.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The state. + * @return The volumesRestoredCount. */ @java.lang.Override - public com.google.cloud.gkebackup.v1.Restore.State getState() { - com.google.cloud.gkebackup.v1.Restore.State result = - com.google.cloud.gkebackup.v1.Restore.State.forNumber(state_); - return result == null ? com.google.cloud.gkebackup.v1.Restore.State.UNRECOGNIZED : result; + public int getVolumesRestoredCount() { + return volumesRestoredCount_; } /** * * *
-     * Output only. The current state of the Restore.
+     * Output only. Number of volumes restored during the restore execution.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The state to set. + * @param value The volumesRestoredCount to set. * @return This builder for chaining. */ - public Builder setState(com.google.cloud.gkebackup.v1.Restore.State value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - state_ = value.getNumber(); + public Builder setVolumesRestoredCount(int value) { + + volumesRestoredCount_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -3455,41 +6081,45 @@ public Builder setState(com.google.cloud.gkebackup.v1.Restore.State value) { * * *
-     * Output only. The current state of the Restore.
+     * Output only. Number of volumes restored during the restore execution.
      * 
* - * - * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000200); - state_ = 0; + public Builder clearVolumesRestoredCount() { + bitField0_ = (bitField0_ & ~0x00008000); + volumesRestoredCount_ = 0; onChanged(); return this; } - private java.lang.Object stateReason_ = ""; + private java.lang.Object etag_ = ""; /** * * *
-     * Output only. Human-readable description of why the Restore is in its
-     * current state.
+     * Output only. `etag` is used for optimistic concurrency control as a way to
+     * help prevent simultaneous updates of a restore from overwriting each other.
+     * It is strongly suggested that systems make use of the `etag` in the
+     * read-modify-write cycle to perform restore updates in order to avoid
+     * race conditions: An `etag` is returned in the response to `GetRestore`,
+     * and systems are expected to put that etag in the request to
+     * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
+     * applied to the same version of the resource.
      * 
* - * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The stateReason. + * @return The etag. */ - public java.lang.String getStateReason() { - java.lang.Object ref = stateReason_; + public java.lang.String getEtag() { + java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - stateReason_ = s; + etag_ = s; return s; } else { return (java.lang.String) ref; @@ -3499,20 +6129,26 @@ public java.lang.String getStateReason() { * * *
-     * Output only. Human-readable description of why the Restore is in its
-     * current state.
+     * Output only. `etag` is used for optimistic concurrency control as a way to
+     * help prevent simultaneous updates of a restore from overwriting each other.
+     * It is strongly suggested that systems make use of the `etag` in the
+     * read-modify-write cycle to perform restore updates in order to avoid
+     * race conditions: An `etag` is returned in the response to `GetRestore`,
+     * and systems are expected to put that etag in the request to
+     * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
+     * applied to the same version of the resource.
      * 
* - * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The bytes for stateReason. + * @return The bytes for etag. */ - public com.google.protobuf.ByteString getStateReasonBytes() { - java.lang.Object ref = stateReason_; + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - stateReason_ = b; + etag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3522,21 +6158,27 @@ public com.google.protobuf.ByteString getStateReasonBytes() { * * *
-     * Output only. Human-readable description of why the Restore is in its
-     * current state.
+     * Output only. `etag` is used for optimistic concurrency control as a way to
+     * help prevent simultaneous updates of a restore from overwriting each other.
+     * It is strongly suggested that systems make use of the `etag` in the
+     * read-modify-write cycle to perform restore updates in order to avoid
+     * race conditions: An `etag` is returned in the response to `GetRestore`,
+     * and systems are expected to put that etag in the request to
+     * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
+     * applied to the same version of the resource.
      * 
* - * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The stateReason to set. + * @param value The etag to set. * @return This builder for chaining. */ - public Builder setStateReason(java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - stateReason_ = value; - bitField0_ |= 0x00000400; + etag_ = value; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -3544,17 +6186,23 @@ public Builder setStateReason(java.lang.String value) { * * *
-     * Output only. Human-readable description of why the Restore is in its
-     * current state.
+     * Output only. `etag` is used for optimistic concurrency control as a way to
+     * help prevent simultaneous updates of a restore from overwriting each other.
+     * It is strongly suggested that systems make use of the `etag` in the
+     * read-modify-write cycle to perform restore updates in order to avoid
+     * race conditions: An `etag` is returned in the response to `GetRestore`,
+     * and systems are expected to put that etag in the request to
+     * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
+     * applied to the same version of the resource.
      * 
* - * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ - public Builder clearStateReason() { - stateReason_ = getDefaultInstance().getStateReason(); - bitField0_ = (bitField0_ & ~0x00000400); + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } @@ -3562,91 +6210,118 @@ public Builder clearStateReason() { * * *
-     * Output only. Human-readable description of why the Restore is in its
-     * current state.
+     * Output only. `etag` is used for optimistic concurrency control as a way to
+     * help prevent simultaneous updates of a restore from overwriting each other.
+     * It is strongly suggested that systems make use of the `etag` in the
+     * read-modify-write cycle to perform restore updates in order to avoid
+     * race conditions: An `etag` is returned in the response to `GetRestore`,
+     * and systems are expected to put that etag in the request to
+     * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
+     * applied to the same version of the resource.
      * 
* - * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The bytes for stateReason to set. + * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setStateReasonBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - stateReason_ = value; - bitField0_ |= 0x00000400; + etag_ = value; + bitField0_ |= 0x00010000; onChanged(); return this; } - private com.google.protobuf.Timestamp completeTime_; + private com.google.cloud.gkebackup.v1.Restore.Filter filter_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - completeTimeBuilder_; + com.google.cloud.gkebackup.v1.Restore.Filter, + com.google.cloud.gkebackup.v1.Restore.Filter.Builder, + com.google.cloud.gkebackup.v1.Restore.FilterOrBuilder> + filterBuilder_; /** * * *
-     * Output only. Timestamp of when the restore operation completed.
+     * Optional. Immutable. Filters resources for `Restore`. If not specified, the
+     * scope of the restore will remain the same as defined in the `RestorePlan`.
+     * If this is specified, and no resources are matched by the
+     * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
+     * nothing will be restored. This filter can only be specified if the value of
+     * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
+     * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
+     * `MERGE_REPLACE_ON_CONFLICT`.
      * 
* * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the completeTime field is set. + * @return Whether the filter field is set. */ - public boolean hasCompleteTime() { - return ((bitField0_ & 0x00000800) != 0); + public boolean hasFilter() { + return ((bitField0_ & 0x00020000) != 0); } /** * * *
-     * Output only. Timestamp of when the restore operation completed.
+     * Optional. Immutable. Filters resources for `Restore`. If not specified, the
+     * scope of the restore will remain the same as defined in the `RestorePlan`.
+     * If this is specified, and no resources are matched by the
+     * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
+     * nothing will be restored. This filter can only be specified if the value of
+     * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
+     * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
+     * `MERGE_REPLACE_ON_CONFLICT`.
      * 
* * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * * - * @return The completeTime. + * @return The filter. */ - public com.google.protobuf.Timestamp getCompleteTime() { - if (completeTimeBuilder_ == null) { - return completeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : completeTime_; + public com.google.cloud.gkebackup.v1.Restore.Filter getFilter() { + if (filterBuilder_ == null) { + return filter_ == null + ? com.google.cloud.gkebackup.v1.Restore.Filter.getDefaultInstance() + : filter_; } else { - return completeTimeBuilder_.getMessage(); + return filterBuilder_.getMessage(); } } /** * * *
-     * Output only. Timestamp of when the restore operation completed.
+     * Optional. Immutable. Filters resources for `Restore`. If not specified, the
+     * scope of the restore will remain the same as defined in the `RestorePlan`.
+     * If this is specified, and no resources are matched by the
+     * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
+     * nothing will be restored. This filter can only be specified if the value of
+     * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
+     * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
+     * `MERGE_REPLACE_ON_CONFLICT`.
      * 
* * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCompleteTime(com.google.protobuf.Timestamp value) { - if (completeTimeBuilder_ == null) { + public Builder setFilter(com.google.cloud.gkebackup.v1.Restore.Filter value) { + if (filterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - completeTime_ = value; + filter_ = value; } else { - completeTimeBuilder_.setMessage(value); + filterBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -3654,20 +6329,27 @@ public Builder setCompleteTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp of when the restore operation completed.
+     * Optional. Immutable. Filters resources for `Restore`. If not specified, the
+     * scope of the restore will remain the same as defined in the `RestorePlan`.
+     * If this is specified, and no resources are matched by the
+     * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
+     * nothing will be restored. This filter can only be specified if the value of
+     * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
+     * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
+     * `MERGE_REPLACE_ON_CONFLICT`.
      * 
* * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (completeTimeBuilder_ == null) { - completeTime_ = builderForValue.build(); + public Builder setFilter(com.google.cloud.gkebackup.v1.Restore.Filter.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); } else { - completeTimeBuilder_.setMessage(builderForValue.build()); + filterBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -3675,27 +6357,34 @@ public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForV * * *
-     * Output only. Timestamp of when the restore operation completed.
+     * Optional. Immutable. Filters resources for `Restore`. If not specified, the
+     * scope of the restore will remain the same as defined in the `RestorePlan`.
+     * If this is specified, and no resources are matched by the
+     * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
+     * nothing will be restored. This filter can only be specified if the value of
+     * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
+     * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
+     * `MERGE_REPLACE_ON_CONFLICT`.
      * 
* * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { - if (completeTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && completeTime_ != null - && completeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCompleteTimeBuilder().mergeFrom(value); + public Builder mergeFilter(com.google.cloud.gkebackup.v1.Restore.Filter value) { + if (filterBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && filter_ != null + && filter_ != com.google.cloud.gkebackup.v1.Restore.Filter.getDefaultInstance()) { + getFilterBuilder().mergeFrom(value); } else { - completeTime_ = value; + filter_ = value; } } else { - completeTimeBuilder_.mergeFrom(value); + filterBuilder_.mergeFrom(value); } - if (completeTime_ != null) { - bitField0_ |= 0x00000800; + if (filter_ != null) { + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -3704,19 +6393,26 @@ public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp of when the restore operation completed.
+     * Optional. Immutable. Filters resources for `Restore`. If not specified, the
+     * scope of the restore will remain the same as defined in the `RestorePlan`.
+     * If this is specified, and no resources are matched by the
+     * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
+     * nothing will be restored. This filter can only be specified if the value of
+     * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
+     * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
+     * `MERGE_REPLACE_ON_CONFLICT`.
      * 
* * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearCompleteTime() { - bitField0_ = (bitField0_ & ~0x00000800); - completeTime_ = null; - if (completeTimeBuilder_ != null) { - completeTimeBuilder_.dispose(); - completeTimeBuilder_ = null; + public Builder clearFilter() { + bitField0_ = (bitField0_ & ~0x00020000); + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; } onChanged(); return this; @@ -3725,426 +6421,511 @@ public Builder clearCompleteTime() { * * *
-     * Output only. Timestamp of when the restore operation completed.
+     * Optional. Immutable. Filters resources for `Restore`. If not specified, the
+     * scope of the restore will remain the same as defined in the `RestorePlan`.
+     * If this is specified, and no resources are matched by the
+     * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
+     * nothing will be restored. This filter can only be specified if the value of
+     * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
+     * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
+     * `MERGE_REPLACE_ON_CONFLICT`.
      * 
* * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { - bitField0_ |= 0x00000800; + public com.google.cloud.gkebackup.v1.Restore.Filter.Builder getFilterBuilder() { + bitField0_ |= 0x00020000; onChanged(); - return getCompleteTimeFieldBuilder().getBuilder(); + return getFilterFieldBuilder().getBuilder(); } /** * * *
-     * Output only. Timestamp of when the restore operation completed.
+     * Optional. Immutable. Filters resources for `Restore`. If not specified, the
+     * scope of the restore will remain the same as defined in the `RestorePlan`.
+     * If this is specified, and no resources are matched by the
+     * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
+     * nothing will be restored. This filter can only be specified if the value of
+     * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
+     * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
+     * `MERGE_REPLACE_ON_CONFLICT`.
      * 
* * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { - if (completeTimeBuilder_ != null) { - return completeTimeBuilder_.getMessageOrBuilder(); + public com.google.cloud.gkebackup.v1.Restore.FilterOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); } else { - return completeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : completeTime_; + return filter_ == null + ? com.google.cloud.gkebackup.v1.Restore.Filter.getDefaultInstance() + : filter_; } } /** * * *
-     * Output only. Timestamp of when the restore operation completed.
+     * Optional. Immutable. Filters resources for `Restore`. If not specified, the
+     * scope of the restore will remain the same as defined in the `RestorePlan`.
+     * If this is specified, and no resources are matched by the
+     * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
+     * nothing will be restored. This filter can only be specified if the value of
+     * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
+     * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
+     * `MERGE_REPLACE_ON_CONFLICT`.
      * 
* * - * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCompleteTimeFieldBuilder() { - if (completeTimeBuilder_ == null) { - completeTimeBuilder_ = + com.google.cloud.gkebackup.v1.Restore.Filter, + com.google.cloud.gkebackup.v1.Restore.Filter.Builder, + com.google.cloud.gkebackup.v1.Restore.FilterOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCompleteTime(), getParentForChildren(), isClean()); - completeTime_ = null; + com.google.cloud.gkebackup.v1.Restore.Filter, + com.google.cloud.gkebackup.v1.Restore.Filter.Builder, + com.google.cloud.gkebackup.v1.Restore.FilterOrBuilder>( + getFilter(), getParentForChildren(), isClean()); + filter_ = null; } - return completeTimeBuilder_; + return filterBuilder_; } - private int resourcesRestoredCount_; + private java.util.List + volumeDataRestorePolicyOverrides_ = java.util.Collections.emptyList(); + + private void ensureVolumeDataRestorePolicyOverridesIsMutable() { + if (!((bitField0_ & 0x00040000) != 0)) { + volumeDataRestorePolicyOverrides_ = + new java.util.ArrayList( + volumeDataRestorePolicyOverrides_); + bitField0_ |= 0x00040000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride, + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.Builder, + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverrideOrBuilder> + volumeDataRestorePolicyOverridesBuilder_; + /** * * *
-     * Output only. Number of resources restored during the restore execution.
+     * Optional. Immutable. Overrides the volume data restore policies selected in
+     * the Restore Config for override-scoped resources.
      * 
* - * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * - * - * @return The resourcesRestoredCount. */ - @java.lang.Override - public int getResourcesRestoredCount() { - return resourcesRestoredCount_; + public java.util.List + getVolumeDataRestorePolicyOverridesList() { + if (volumeDataRestorePolicyOverridesBuilder_ == null) { + return java.util.Collections.unmodifiableList(volumeDataRestorePolicyOverrides_); + } else { + return volumeDataRestorePolicyOverridesBuilder_.getMessageList(); + } } /** * * *
-     * Output only. Number of resources restored during the restore execution.
+     * Optional. Immutable. Overrides the volume data restore policies selected in
+     * the Restore Config for override-scoped resources.
      * 
* - * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * + */ + public int getVolumeDataRestorePolicyOverridesCount() { + if (volumeDataRestorePolicyOverridesBuilder_ == null) { + return volumeDataRestorePolicyOverrides_.size(); + } else { + return volumeDataRestorePolicyOverridesBuilder_.getCount(); + } + } + /** * - * @param value The resourcesRestoredCount to set. - * @return This builder for chaining. + * + *
+     * Optional. Immutable. Overrides the volume data restore policies selected in
+     * the Restore Config for override-scoped resources.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setResourcesRestoredCount(int value) { - - resourcesRestoredCount_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; + public com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride + getVolumeDataRestorePolicyOverrides(int index) { + if (volumeDataRestorePolicyOverridesBuilder_ == null) { + return volumeDataRestorePolicyOverrides_.get(index); + } else { + return volumeDataRestorePolicyOverridesBuilder_.getMessage(index); + } } /** * * *
-     * Output only. Number of resources restored during the restore execution.
+     * Optional. Immutable. Overrides the volume data restore policies selected in
+     * the Restore Config for override-scoped resources.
      * 
* - * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearResourcesRestoredCount() { - bitField0_ = (bitField0_ & ~0x00001000); - resourcesRestoredCount_ = 0; - onChanged(); + public Builder setVolumeDataRestorePolicyOverrides( + int index, com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride value) { + if (volumeDataRestorePolicyOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumeDataRestorePolicyOverridesIsMutable(); + volumeDataRestorePolicyOverrides_.set(index, value); + onChanged(); + } else { + volumeDataRestorePolicyOverridesBuilder_.setMessage(index, value); + } return this; } - - private int resourcesExcludedCount_; /** * * *
-     * Output only. Number of resources excluded during the restore execution.
+     * Optional. Immutable. Overrides the volume data restore policies selected in
+     * the Restore Config for override-scoped resources.
      * 
* - * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * - * - * @return The resourcesExcludedCount. */ - @java.lang.Override - public int getResourcesExcludedCount() { - return resourcesExcludedCount_; + public Builder setVolumeDataRestorePolicyOverrides( + int index, + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.Builder builderForValue) { + if (volumeDataRestorePolicyOverridesBuilder_ == null) { + ensureVolumeDataRestorePolicyOverridesIsMutable(); + volumeDataRestorePolicyOverrides_.set(index, builderForValue.build()); + onChanged(); + } else { + volumeDataRestorePolicyOverridesBuilder_.setMessage(index, builderForValue.build()); + } + return this; } /** * * *
-     * Output only. Number of resources excluded during the restore execution.
+     * Optional. Immutable. Overrides the volume data restore policies selected in
+     * the Restore Config for override-scoped resources.
      * 
* - * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The resourcesExcludedCount to set. - * @return This builder for chaining. */ - public Builder setResourcesExcludedCount(int value) { - - resourcesExcludedCount_ = value; - bitField0_ |= 0x00002000; - onChanged(); + public Builder addVolumeDataRestorePolicyOverrides( + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride value) { + if (volumeDataRestorePolicyOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumeDataRestorePolicyOverridesIsMutable(); + volumeDataRestorePolicyOverrides_.add(value); + onChanged(); + } else { + volumeDataRestorePolicyOverridesBuilder_.addMessage(value); + } return this; } /** * * *
-     * Output only. Number of resources excluded during the restore execution.
+     * Optional. Immutable. Overrides the volume data restore policies selected in
+     * the Restore Config for override-scoped resources.
      * 
* - * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearResourcesExcludedCount() { - bitField0_ = (bitField0_ & ~0x00002000); - resourcesExcludedCount_ = 0; - onChanged(); + public Builder addVolumeDataRestorePolicyOverrides( + int index, com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride value) { + if (volumeDataRestorePolicyOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumeDataRestorePolicyOverridesIsMutable(); + volumeDataRestorePolicyOverrides_.add(index, value); + onChanged(); + } else { + volumeDataRestorePolicyOverridesBuilder_.addMessage(index, value); + } return this; } - - private int resourcesFailedCount_; /** * * *
-     * Output only. Number of resources that failed to be restored during the
-     * restore execution.
+     * Optional. Immutable. Overrides the volume data restore policies selected in
+     * the Restore Config for override-scoped resources.
      * 
* - * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The resourcesFailedCount. + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public int getResourcesFailedCount() { - return resourcesFailedCount_; + public Builder addVolumeDataRestorePolicyOverrides( + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.Builder builderForValue) { + if (volumeDataRestorePolicyOverridesBuilder_ == null) { + ensureVolumeDataRestorePolicyOverridesIsMutable(); + volumeDataRestorePolicyOverrides_.add(builderForValue.build()); + onChanged(); + } else { + volumeDataRestorePolicyOverridesBuilder_.addMessage(builderForValue.build()); + } + return this; } /** * * *
-     * Output only. Number of resources that failed to be restored during the
-     * restore execution.
+     * Optional. Immutable. Overrides the volume data restore policies selected in
+     * the Restore Config for override-scoped resources.
      * 
* - * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The resourcesFailedCount to set. - * @return This builder for chaining. + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setResourcesFailedCount(int value) { - - resourcesFailedCount_ = value; - bitField0_ |= 0x00004000; - onChanged(); + public Builder addVolumeDataRestorePolicyOverrides( + int index, + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.Builder builderForValue) { + if (volumeDataRestorePolicyOverridesBuilder_ == null) { + ensureVolumeDataRestorePolicyOverridesIsMutable(); + volumeDataRestorePolicyOverrides_.add(index, builderForValue.build()); + onChanged(); + } else { + volumeDataRestorePolicyOverridesBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** * * *
-     * Output only. Number of resources that failed to be restored during the
-     * restore execution.
+     * Optional. Immutable. Overrides the volume data restore policies selected in
+     * the Restore Config for override-scoped resources.
      * 
* - * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearResourcesFailedCount() { - bitField0_ = (bitField0_ & ~0x00004000); - resourcesFailedCount_ = 0; - onChanged(); + public Builder addAllVolumeDataRestorePolicyOverrides( + java.lang.Iterable + values) { + if (volumeDataRestorePolicyOverridesBuilder_ == null) { + ensureVolumeDataRestorePolicyOverridesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, volumeDataRestorePolicyOverrides_); + onChanged(); + } else { + volumeDataRestorePolicyOverridesBuilder_.addAllMessages(values); + } return this; } - - private int volumesRestoredCount_; /** * * *
-     * Output only. Number of volumes restored during the restore execution.
+     * Optional. Immutable. Overrides the volume data restore policies selected in
+     * the Restore Config for override-scoped resources.
      * 
* - * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The volumesRestoredCount. + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public int getVolumesRestoredCount() { - return volumesRestoredCount_; + public Builder clearVolumeDataRestorePolicyOverrides() { + if (volumeDataRestorePolicyOverridesBuilder_ == null) { + volumeDataRestorePolicyOverrides_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + } else { + volumeDataRestorePolicyOverridesBuilder_.clear(); + } + return this; } /** * * *
-     * Output only. Number of volumes restored during the restore execution.
+     * Optional. Immutable. Overrides the volume data restore policies selected in
+     * the Restore Config for override-scoped resources.
      * 
* - * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The volumesRestoredCount to set. - * @return This builder for chaining. + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setVolumesRestoredCount(int value) { - - volumesRestoredCount_ = value; - bitField0_ |= 0x00008000; - onChanged(); + public Builder removeVolumeDataRestorePolicyOverrides(int index) { + if (volumeDataRestorePolicyOverridesBuilder_ == null) { + ensureVolumeDataRestorePolicyOverridesIsMutable(); + volumeDataRestorePolicyOverrides_.remove(index); + onChanged(); + } else { + volumeDataRestorePolicyOverridesBuilder_.remove(index); + } return this; } /** * * *
-     * Output only. Number of volumes restored during the restore execution.
+     * Optional. Immutable. Overrides the volume data restore policies selected in
+     * the Restore Config for override-scoped resources.
      * 
* - * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearVolumesRestoredCount() { - bitField0_ = (bitField0_ & ~0x00008000); - volumesRestoredCount_ = 0; - onChanged(); - return this; + public com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.Builder + getVolumeDataRestorePolicyOverridesBuilder(int index) { + return getVolumeDataRestorePolicyOverridesFieldBuilder().getBuilder(index); } - - private java.lang.Object etag_ = ""; /** * * *
-     * Output only. `etag` is used for optimistic concurrency control as a way to
-     * help prevent simultaneous updates of a restore from overwriting each other.
-     * It is strongly suggested that systems make use of the `etag` in the
-     * read-modify-write cycle to perform restore updates in order to avoid
-     * race conditions: An `etag` is returned in the response to `GetRestore`,
-     * and systems are expected to put that etag in the request to
-     * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
-     * applied to the same version of the resource.
+     * Optional. Immutable. Overrides the volume data restore policies selected in
+     * the Restore Config for override-scoped resources.
      * 
* - * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The etag. + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; + public com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverrideOrBuilder + getVolumeDataRestorePolicyOverridesOrBuilder(int index) { + if (volumeDataRestorePolicyOverridesBuilder_ == null) { + return volumeDataRestorePolicyOverrides_.get(index); } else { - return (java.lang.String) ref; + return volumeDataRestorePolicyOverridesBuilder_.getMessageOrBuilder(index); } } /** * * *
-     * Output only. `etag` is used for optimistic concurrency control as a way to
-     * help prevent simultaneous updates of a restore from overwriting each other.
-     * It is strongly suggested that systems make use of the `etag` in the
-     * read-modify-write cycle to perform restore updates in order to avoid
-     * race conditions: An `etag` is returned in the response to `GetRestore`,
-     * and systems are expected to put that etag in the request to
-     * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
-     * applied to the same version of the resource.
+     * Optional. Immutable. Overrides the volume data restore policies selected in
+     * the Restore Config for override-scoped resources.
      * 
* - * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for etag. + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; + public java.util.List< + ? extends com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverrideOrBuilder> + getVolumeDataRestorePolicyOverridesOrBuilderList() { + if (volumeDataRestorePolicyOverridesBuilder_ != null) { + return volumeDataRestorePolicyOverridesBuilder_.getMessageOrBuilderList(); } else { - return (com.google.protobuf.ByteString) ref; + return java.util.Collections.unmodifiableList(volumeDataRestorePolicyOverrides_); } } /** * * *
-     * Output only. `etag` is used for optimistic concurrency control as a way to
-     * help prevent simultaneous updates of a restore from overwriting each other.
-     * It is strongly suggested that systems make use of the `etag` in the
-     * read-modify-write cycle to perform restore updates in order to avoid
-     * race conditions: An `etag` is returned in the response to `GetRestore`,
-     * and systems are expected to put that etag in the request to
-     * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
-     * applied to the same version of the resource.
+     * Optional. Immutable. Overrides the volume data restore policies selected in
+     * the Restore Config for override-scoped resources.
      * 
* - * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The etag to set. - * @return This builder for chaining. + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - etag_ = value; - bitField0_ |= 0x00010000; - onChanged(); - return this; + public com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.Builder + addVolumeDataRestorePolicyOverridesBuilder() { + return getVolumeDataRestorePolicyOverridesFieldBuilder() + .addBuilder( + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.getDefaultInstance()); } /** * * *
-     * Output only. `etag` is used for optimistic concurrency control as a way to
-     * help prevent simultaneous updates of a restore from overwriting each other.
-     * It is strongly suggested that systems make use of the `etag` in the
-     * read-modify-write cycle to perform restore updates in order to avoid
-     * race conditions: An `etag` is returned in the response to `GetRestore`,
-     * and systems are expected to put that etag in the request to
-     * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
-     * applied to the same version of the resource.
+     * Optional. Immutable. Overrides the volume data restore policies selected in
+     * the Restore Config for override-scoped resources.
      * 
* - * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00010000); - onChanged(); - return this; + public com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.Builder + addVolumeDataRestorePolicyOverridesBuilder(int index) { + return getVolumeDataRestorePolicyOverridesFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.getDefaultInstance()); } /** * * *
-     * Output only. `etag` is used for optimistic concurrency control as a way to
-     * help prevent simultaneous updates of a restore from overwriting each other.
-     * It is strongly suggested that systems make use of the `etag` in the
-     * read-modify-write cycle to perform restore updates in order to avoid
-     * race conditions: An `etag` is returned in the response to `GetRestore`,
-     * and systems are expected to put that etag in the request to
-     * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
-     * applied to the same version of the resource.
+     * Optional. Immutable. Overrides the volume data restore policies selected in
+     * the Restore Config for override-scoped resources.
      * 
* - * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List + getVolumeDataRestorePolicyOverridesBuilderList() { + return getVolumeDataRestorePolicyOverridesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride, + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.Builder, + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverrideOrBuilder> + getVolumeDataRestorePolicyOverridesFieldBuilder() { + if (volumeDataRestorePolicyOverridesBuilder_ == null) { + volumeDataRestorePolicyOverridesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride, + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.Builder, + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverrideOrBuilder>( + volumeDataRestorePolicyOverrides_, + ((bitField0_ & 0x00040000) != 0), + getParentForChildren(), + isClean()); + volumeDataRestorePolicyOverrides_ = null; } - checkByteStringIsUtf8(value); - etag_ = value; - bitField0_ |= 0x00010000; - onChanged(); - return this; + return volumeDataRestorePolicyOverridesBuilder_; } @java.lang.Override diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfig.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfig.java index 083dee2649c2..73976ece650d 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfig.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfig.java @@ -44,6 +44,7 @@ private RestoreConfig() { namespacedResourceRestoreMode_ = 0; substitutionRules_ = java.util.Collections.emptyList(); transformationRules_ = java.util.Collections.emptyList(); + volumeDataRestorePolicyBindings_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -481,6 +482,60 @@ public enum NamespacedResourceRestoreMode implements com.google.protobuf.Protoco * FAIL_ON_CONFLICT = 2; */ FAIL_ON_CONFLICT(2), + /** + * + * + *
+     * This mode merges the backup and the target cluster and skips the
+     * conflicting resources. If a single resource to restore exists in the
+     * cluster before restoration, the resource will be skipped, otherwise it
+     * will be restored.
+     * 
+ * + * MERGE_SKIP_ON_CONFLICT = 3; + */ + MERGE_SKIP_ON_CONFLICT(3), + /** + * + * + *
+     * This mode merges the backup and the target cluster and skips the
+     * conflicting resources except volume data. If a PVC to restore already
+     * exists, this mode will restore/reconnect the volume without overwriting
+     * the PVC. It is similar to MERGE_SKIP_ON_CONFLICT except that it will
+     * apply the volume data policy for the conflicting PVCs:
+     * - RESTORE_VOLUME_DATA_FROM_BACKUP: restore data only and respect the
+     *   reclaim policy of the original PV;
+     * - REUSE_VOLUME_HANDLE_FROM_BACKUP: reconnect and respect the reclaim
+     *   policy of the original PV;
+     * - NO_VOLUME_DATA_RESTORATION: new provision and respect the reclaim
+     *   policy of the original PV.
+     * Note that this mode could cause data loss as the original PV can be
+     * retained or deleted depending on its reclaim policy.
+     * 
+ * + * MERGE_REPLACE_VOLUME_ON_CONFLICT = 4; + */ + MERGE_REPLACE_VOLUME_ON_CONFLICT(4), + /** + * + * + *
+     * This mode merges the backup and the target cluster and replaces the
+     * conflicting resources with the ones in the backup. If a single resource
+     * to restore exists in the cluster before restoration, the resource will be
+     * replaced with the one from the backup. To replace an existing resource,
+     * the first attempt is to update the resource to match the one from the
+     * backup; if the update fails, the second attempt is to delete the resource
+     * and restore it from the backup.
+     * Note that this mode could cause data loss as it replaces the existing
+     * resources in the target cluster, and the original PV can be retained or
+     * deleted depending on its reclaim policy.
+     * 
+ * + * MERGE_REPLACE_ON_CONFLICT = 5; + */ + MERGE_REPLACE_ON_CONFLICT(5), UNRECOGNIZED(-1), ; @@ -524,6 +579,60 @@ public enum NamespacedResourceRestoreMode implements com.google.protobuf.Protoco * FAIL_ON_CONFLICT = 2; */ public static final int FAIL_ON_CONFLICT_VALUE = 2; + /** + * + * + *
+     * This mode merges the backup and the target cluster and skips the
+     * conflicting resources. If a single resource to restore exists in the
+     * cluster before restoration, the resource will be skipped, otherwise it
+     * will be restored.
+     * 
+ * + * MERGE_SKIP_ON_CONFLICT = 3; + */ + public static final int MERGE_SKIP_ON_CONFLICT_VALUE = 3; + /** + * + * + *
+     * This mode merges the backup and the target cluster and skips the
+     * conflicting resources except volume data. If a PVC to restore already
+     * exists, this mode will restore/reconnect the volume without overwriting
+     * the PVC. It is similar to MERGE_SKIP_ON_CONFLICT except that it will
+     * apply the volume data policy for the conflicting PVCs:
+     * - RESTORE_VOLUME_DATA_FROM_BACKUP: restore data only and respect the
+     *   reclaim policy of the original PV;
+     * - REUSE_VOLUME_HANDLE_FROM_BACKUP: reconnect and respect the reclaim
+     *   policy of the original PV;
+     * - NO_VOLUME_DATA_RESTORATION: new provision and respect the reclaim
+     *   policy of the original PV.
+     * Note that this mode could cause data loss as the original PV can be
+     * retained or deleted depending on its reclaim policy.
+     * 
+ * + * MERGE_REPLACE_VOLUME_ON_CONFLICT = 4; + */ + public static final int MERGE_REPLACE_VOLUME_ON_CONFLICT_VALUE = 4; + /** + * + * + *
+     * This mode merges the backup and the target cluster and replaces the
+     * conflicting resources with the ones in the backup. If a single resource
+     * to restore exists in the cluster before restoration, the resource will be
+     * replaced with the one from the backup. To replace an existing resource,
+     * the first attempt is to update the resource to match the one from the
+     * backup; if the update fails, the second attempt is to delete the resource
+     * and restore it from the backup.
+     * Note that this mode could cause data loss as it replaces the existing
+     * resources in the target cluster, and the original PV can be retained or
+     * deleted depending on its reclaim policy.
+     * 
+ * + * MERGE_REPLACE_ON_CONFLICT = 5; + */ + public static final int MERGE_REPLACE_ON_CONFLICT_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -555,6 +664,12 @@ public static NamespacedResourceRestoreMode forNumber(int value) { return DELETE_AND_RESTORE; case 2: return FAIL_ON_CONFLICT; + case 3: + return MERGE_SKIP_ON_CONFLICT; + case 4: + return MERGE_REPLACE_VOLUME_ON_CONFLICT; + case 5: + return MERGE_REPLACE_ON_CONFLICT; default: return null; } @@ -11124,183 +11239,3525 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; - private int namespacedResourceRestoreScopeCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object namespacedResourceRestoreScope_; - - public enum NamespacedResourceRestoreScopeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - ALL_NAMESPACES(5), - SELECTED_NAMESPACES(6), - SELECTED_APPLICATIONS(7), - NO_NAMESPACES(9), - EXCLUDED_NAMESPACES(10), - NAMESPACEDRESOURCERESTORESCOPE_NOT_SET(0); - private final int value; + public interface VolumeDataRestorePolicyBindingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding) + com.google.protobuf.MessageOrBuilder { - private NamespacedResourceRestoreScopeCase(int value) { - this.value = value; - } /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. + * + * + *
+     * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
+     * scope.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for policy. */ - @java.lang.Deprecated - public static NamespacedResourceRestoreScopeCase valueOf(int value) { - return forNumber(value); - } - - public static NamespacedResourceRestoreScopeCase forNumber(int value) { - switch (value) { - case 5: - return ALL_NAMESPACES; - case 6: - return SELECTED_NAMESPACES; - case 7: - return SELECTED_APPLICATIONS; - case 9: - return NO_NAMESPACES; - case 10: - return EXCLUDED_NAMESPACES; - case 0: - return NAMESPACEDRESOURCERESTORESCOPE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; + int getPolicyValue(); + /** + * + * + *
+     * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
+     * scope.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policy. + */ + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy getPolicy(); - public NamespacedResourceRestoreScopeCase getNamespacedResourceRestoreScopeCase() { - return NamespacedResourceRestoreScopeCase.forNumber(namespacedResourceRestoreScopeCase_); - } + /** + * + * + *
+     * The volume type, as determined by the PVC's bound PV,
+     * to apply the policy to.
+     * 
+ * + * .google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType volume_type = 2; + * + * @return Whether the volumeType field is set. + */ + boolean hasVolumeType(); + /** + * + * + *
+     * The volume type, as determined by the PVC's bound PV,
+     * to apply the policy to.
+     * 
+ * + * .google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType volume_type = 2; + * + * @return The enum numeric value on the wire for volumeType. + */ + int getVolumeTypeValue(); + /** + * + * + *
+     * The volume type, as determined by the PVC's bound PV,
+     * to apply the policy to.
+     * 
+ * + * .google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType volume_type = 2; + * + * @return The volumeType. + */ + com.google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType getVolumeType(); - public static final int VOLUME_DATA_RESTORE_POLICY_FIELD_NUMBER = 1; - private int volumeDataRestorePolicy_ = 0; - /** - * - * - *
-   * Optional. Specifies the mechanism to be used to restore volume data.
-   * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
-   * NO_VOLUME_DATA_RESTORATION).
-   * 
- * - * - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for volumeDataRestorePolicy. - */ - @java.lang.Override - public int getVolumeDataRestorePolicyValue() { - return volumeDataRestorePolicy_; + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding.ScopeCase + getScopeCase(); } /** * * *
-   * Optional. Specifies the mechanism to be used to restore volume data.
-   * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
-   * NO_VOLUME_DATA_RESTORATION).
+   * Binds resources in the scope to the given VolumeDataRestorePolicy.
    * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The volumeDataRestorePolicy. + * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding} */ - @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy - getVolumeDataRestorePolicy() { - com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy result = - com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.forNumber( - volumeDataRestorePolicy_); - return result == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.UNRECOGNIZED - : result; - } + public static final class VolumeDataRestorePolicyBinding + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding) + VolumeDataRestorePolicyBindingOrBuilder { + private static final long serialVersionUID = 0L; + // Use VolumeDataRestorePolicyBinding.newBuilder() to construct. + private VolumeDataRestorePolicyBinding( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static final int CLUSTER_RESOURCE_CONFLICT_POLICY_FIELD_NUMBER = 2; - private int clusterResourceConflictPolicy_ = 0; - /** - * - * - *
-   * Optional. Defines the behavior for handling the situation where
-   * cluster-scoped resources being restored already exist in the target
-   * cluster. This MUST be set to a value other than
-   * CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
-   * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope]
-   * is not empty.
-   * 
- * - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for clusterResourceConflictPolicy. - */ - @java.lang.Override - public int getClusterResourceConflictPolicyValue() { - return clusterResourceConflictPolicy_; - } - /** - * - * - *
-   * Optional. Defines the behavior for handling the situation where
-   * cluster-scoped resources being restored already exist in the target
-   * cluster. This MUST be set to a value other than
-   * CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
-   * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope]
-   * is not empty.
-   * 
- * - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The clusterResourceConflictPolicy. - */ - @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy - getClusterResourceConflictPolicy() { - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy result = - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.forNumber( - clusterResourceConflictPolicy_); - return result == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.UNRECOGNIZED - : result; - } + private VolumeDataRestorePolicyBinding() { + policy_ = 0; + } - public static final int NAMESPACED_RESOURCE_RESTORE_MODE_FIELD_NUMBER = 3; - private int namespacedResourceRestoreMode_ = 0; - /** - * - * - *
-   * Optional. Defines the behavior for handling the situation where sets of
-   * namespaced resources being restored already exist in the target cluster.
-   * This MUST be set to a value other than
-   * NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
-   * 
- * - * - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for namespacedResourceRestoreMode. - */ + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VolumeDataRestorePolicyBinding(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_VolumeDataRestorePolicyBinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_VolumeDataRestorePolicyBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding.class, + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding.Builder + .class); + } + + private int scopeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object scope_; + + public enum ScopeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VOLUME_TYPE(2), + SCOPE_NOT_SET(0); + private final int value; + + private ScopeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ScopeCase valueOf(int value) { + return forNumber(value); + } + + public static ScopeCase forNumber(int value) { + switch (value) { + case 2: + return VOLUME_TYPE; + case 0: + return SCOPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ScopeCase getScopeCase() { + return ScopeCase.forNumber(scopeCase_); + } + + public static final int POLICY_FIELD_NUMBER = 1; + private int policy_ = 0; + /** + * + * + *
+     * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
+     * scope.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for policy. + */ + @java.lang.Override + public int getPolicyValue() { + return policy_; + } + /** + * + * + *
+     * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
+     * scope.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policy. + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy getPolicy() { + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy result = + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.forNumber(policy_); + return result == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.UNRECOGNIZED + : result; + } + + public static final int VOLUME_TYPE_FIELD_NUMBER = 2; + /** + * + * + *
+     * The volume type, as determined by the PVC's bound PV,
+     * to apply the policy to.
+     * 
+ * + * .google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType volume_type = 2; + * + * @return Whether the volumeType field is set. + */ + public boolean hasVolumeType() { + return scopeCase_ == 2; + } + /** + * + * + *
+     * The volume type, as determined by the PVC's bound PV,
+     * to apply the policy to.
+     * 
+ * + * .google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType volume_type = 2; + * + * @return The enum numeric value on the wire for volumeType. + */ + public int getVolumeTypeValue() { + if (scopeCase_ == 2) { + return (java.lang.Integer) scope_; + } + return 0; + } + /** + * + * + *
+     * The volume type, as determined by the PVC's bound PV,
+     * to apply the policy to.
+     * 
+ * + * .google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType volume_type = 2; + * + * @return The volumeType. + */ + public com.google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType getVolumeType() { + if (scopeCase_ == 2) { + com.google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType result = + com.google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType.forNumber( + (java.lang.Integer) scope_); + return result == null + ? com.google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType.UNRECOGNIZED + : result; + } + return com.google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType.VOLUME_TYPE_UNSPECIFIED; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (policy_ + != com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy + .VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, policy_); + } + if (scopeCase_ == 2) { + output.writeEnum(2, ((java.lang.Integer) scope_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (policy_ + != com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy + .VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, policy_); + } + if (scopeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(2, ((java.lang.Integer) scope_)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding)) { + return super.equals(obj); + } + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding other = + (com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding) obj; + + if (policy_ != other.policy_) return false; + if (!getScopeCase().equals(other.getScopeCase())) return false; + switch (scopeCase_) { + case 2: + if (getVolumeTypeValue() != other.getVolumeTypeValue()) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + POLICY_FIELD_NUMBER; + hash = (53 * hash) + policy_; + switch (scopeCase_) { + case 2: + hash = (37 * hash) + VOLUME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getVolumeTypeValue(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + 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.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + 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.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + 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.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Binds resources in the scope to the given VolumeDataRestorePolicy.
+     * 
+ * + * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding) + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_VolumeDataRestorePolicyBinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_VolumeDataRestorePolicyBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding.class, + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding.Builder + .class); + } + + // Construct using + // com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + policy_ = 0; + scopeCase_ = 0; + scope_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_VolumeDataRestorePolicyBinding_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + getDefaultInstanceForType() { + return com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding build() { + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + buildPartial() { + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding result = + new com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.policy_ = policy_; + } + } + + private void buildPartialOneofs( + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding result) { + result.scopeCase_ = scopeCase_; + result.scope_ = this.scope_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding) { + return mergeFrom( + (com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding other) { + if (other + == com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + .getDefaultInstance()) return this; + if (other.policy_ != 0) { + setPolicyValue(other.getPolicyValue()); + } + switch (other.getScopeCase()) { + case VOLUME_TYPE: + { + setVolumeTypeValue(other.getVolumeTypeValue()); + break; + } + case SCOPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + policy_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + int rawValue = input.readEnum(); + scopeCase_ = 2; + scope_ = rawValue; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int scopeCase_ = 0; + private java.lang.Object scope_; + + public ScopeCase getScopeCase() { + return ScopeCase.forNumber(scopeCase_); + } + + public Builder clearScope() { + scopeCase_ = 0; + scope_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private int policy_ = 0; + /** + * + * + *
+       * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
+       * scope.
+       * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for policy. + */ + @java.lang.Override + public int getPolicyValue() { + return policy_; + } + /** + * + * + *
+       * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
+       * scope.
+       * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for policy to set. + * @return This builder for chaining. + */ + public Builder setPolicyValue(int value) { + policy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
+       * scope.
+       * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policy. + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy getPolicy() { + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy result = + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.forNumber(policy_); + return result == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
+       * scope.
+       * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The policy to set. + * @return This builder for chaining. + */ + public Builder setPolicy( + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + policy_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
+       * scope.
+       * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearPolicy() { + bitField0_ = (bitField0_ & ~0x00000001); + policy_ = 0; + onChanged(); + return this; + } + + /** + * + * + *
+       * The volume type, as determined by the PVC's bound PV,
+       * to apply the policy to.
+       * 
+ * + * .google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType volume_type = 2; + * + * @return Whether the volumeType field is set. + */ + @java.lang.Override + public boolean hasVolumeType() { + return scopeCase_ == 2; + } + /** + * + * + *
+       * The volume type, as determined by the PVC's bound PV,
+       * to apply the policy to.
+       * 
+ * + * .google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType volume_type = 2; + * + * @return The enum numeric value on the wire for volumeType. + */ + @java.lang.Override + public int getVolumeTypeValue() { + if (scopeCase_ == 2) { + return ((java.lang.Integer) scope_).intValue(); + } + return 0; + } + /** + * + * + *
+       * The volume type, as determined by the PVC's bound PV,
+       * to apply the policy to.
+       * 
+ * + * .google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType volume_type = 2; + * + * @param value The enum numeric value on the wire for volumeType to set. + * @return This builder for chaining. + */ + public Builder setVolumeTypeValue(int value) { + scopeCase_ = 2; + scope_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The volume type, as determined by the PVC's bound PV,
+       * to apply the policy to.
+       * 
+ * + * .google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType volume_type = 2; + * + * @return The volumeType. + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType getVolumeType() { + if (scopeCase_ == 2) { + com.google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType result = + com.google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType.forNumber( + (java.lang.Integer) scope_); + return result == null + ? com.google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType.UNRECOGNIZED + : result; + } + return com.google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType.VOLUME_TYPE_UNSPECIFIED; + } + /** + * + * + *
+       * The volume type, as determined by the PVC's bound PV,
+       * to apply the policy to.
+       * 
+ * + * .google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType volume_type = 2; + * + * @param value The volumeType to set. + * @return This builder for chaining. + */ + public Builder setVolumeType(com.google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType value) { + if (value == null) { + throw new NullPointerException(); + } + scopeCase_ = 2; + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * The volume type, as determined by the PVC's bound PV,
+       * to apply the policy to.
+       * 
+ * + * .google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType volume_type = 2; + * + * @return This builder for chaining. + */ + public Builder clearVolumeType() { + if (scopeCase_ == 2) { + scopeCase_ = 0; + scope_ = null; + onChanged(); + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding) + private static final com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding(); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VolumeDataRestorePolicyBinding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RestoreOrderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Contains a list of group kind dependency pairs provided
+     * by the customer, that is used by Backup for GKE to
+     * generate a group kind restore order.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getGroupKindDependenciesList(); + /** + * + * + *
+     * Optional. Contains a list of group kind dependency pairs provided
+     * by the customer, that is used by Backup for GKE to
+     * generate a group kind restore order.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + getGroupKindDependencies(int index); + /** + * + * + *
+     * Optional. Contains a list of group kind dependency pairs provided
+     * by the customer, that is used by Backup for GKE to
+     * generate a group kind restore order.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getGroupKindDependenciesCount(); + /** + * + * + *
+     * Optional. Contains a list of group kind dependency pairs provided
+     * by the customer, that is used by Backup for GKE to
+     * generate a group kind restore order.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder + .GroupKindDependencyOrBuilder> + getGroupKindDependenciesOrBuilderList(); + /** + * + * + *
+     * Optional. Contains a list of group kind dependency pairs provided
+     * by the customer, that is used by Backup for GKE to
+     * generate a group kind restore order.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependencyOrBuilder + getGroupKindDependenciesOrBuilder(int index); + } + /** + * + * + *
+   * Allows customers to specify dependencies between resources
+   * that Backup for GKE can use to compute a resasonable restore order.
+   * 
+ * + * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder} + */ + public static final class RestoreOrder extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder) + RestoreOrderOrBuilder { + private static final long serialVersionUID = 0L; + // Use RestoreOrder.newBuilder() to construct. + private RestoreOrder(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RestoreOrder() { + groupKindDependencies_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RestoreOrder(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.class, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.Builder.class); + } + + public interface GroupKindDependencyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. The satisfying group kind must be restored first
+       * in order to satisfy the dependency.
+       * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind satisfying = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the satisfying field is set. + */ + boolean hasSatisfying(); + /** + * + * + *
+       * Required. The satisfying group kind must be restored first
+       * in order to satisfy the dependency.
+       * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind satisfying = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The satisfying. + */ + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getSatisfying(); + /** + * + * + *
+       * Required. The satisfying group kind must be restored first
+       * in order to satisfy the dependency.
+       * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind satisfying = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getSatisfyingOrBuilder(); + + /** + * + * + *
+       * Required. The requiring group kind requires that the other
+       * group kind be restored first.
+       * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind requiring = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the requiring field is set. + */ + boolean hasRequiring(); + /** + * + * + *
+       * Required. The requiring group kind requires that the other
+       * group kind be restored first.
+       * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind requiring = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The requiring. + */ + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getRequiring(); + /** + * + * + *
+       * Required. The requiring group kind requires that the other
+       * group kind be restored first.
+       * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind requiring = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder getRequiringOrBuilder(); + } + /** + * + * + *
+     * Defines a dependency between two group kinds.
+     * 
+ * + * Protobuf type {@code + * google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency} + */ + public static final class GroupKindDependency extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency) + GroupKindDependencyOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupKindDependency.newBuilder() to construct. + private GroupKindDependency(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GroupKindDependency() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroupKindDependency(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_GroupKindDependency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_GroupKindDependency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency.class, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency.Builder + .class); + } + + private int bitField0_; + public static final int SATISFYING_FIELD_NUMBER = 1; + private com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind satisfying_; + /** + * + * + *
+       * Required. The satisfying group kind must be restored first
+       * in order to satisfy the dependency.
+       * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind satisfying = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the satisfying field is set. + */ + @java.lang.Override + public boolean hasSatisfying() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Required. The satisfying group kind must be restored first
+       * in order to satisfy the dependency.
+       * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind satisfying = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The satisfying. + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getSatisfying() { + return satisfying_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance() + : satisfying_; + } + /** + * + * + *
+       * Required. The satisfying group kind must be restored first
+       * in order to satisfy the dependency.
+       * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind satisfying = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder + getSatisfyingOrBuilder() { + return satisfying_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance() + : satisfying_; + } + + public static final int REQUIRING_FIELD_NUMBER = 2; + private com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind requiring_; + /** + * + * + *
+       * Required. The requiring group kind requires that the other
+       * group kind be restored first.
+       * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind requiring = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the requiring field is set. + */ + @java.lang.Override + public boolean hasRequiring() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Required. The requiring group kind requires that the other
+       * group kind be restored first.
+       * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind requiring = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The requiring. + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getRequiring() { + return requiring_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance() + : requiring_; + } + /** + * + * + *
+       * Required. The requiring group kind requires that the other
+       * group kind be restored first.
+       * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind requiring = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder + getRequiringOrBuilder() { + return requiring_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance() + : requiring_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSatisfying()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getRequiring()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSatisfying()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequiring()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency)) { + return super.equals(obj); + } + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency other = + (com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency) obj; + + if (hasSatisfying() != other.hasSatisfying()) return false; + if (hasSatisfying()) { + if (!getSatisfying().equals(other.getSatisfying())) return false; + } + if (hasRequiring() != other.hasRequiring()) return false; + if (hasRequiring()) { + if (!getRequiring().equals(other.getRequiring())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSatisfying()) { + hash = (37 * hash) + SATISFYING_FIELD_NUMBER; + hash = (53 * hash) + getSatisfying().hashCode(); + } + if (hasRequiring()) { + hash = (37 * hash) + REQUIRING_FIELD_NUMBER; + hash = (53 * hash) + getRequiring().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + 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.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + 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.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + 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.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Defines a dependency between two group kinds.
+       * 
+ * + * Protobuf type {@code + * google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency) + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependencyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_GroupKindDependency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_GroupKindDependency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + .class, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + .Builder.class); + } + + // Construct using + // com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSatisfyingFieldBuilder(); + getRequiringFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + satisfying_ = null; + if (satisfyingBuilder_ != null) { + satisfyingBuilder_.dispose(); + satisfyingBuilder_ = null; + } + requiring_ = null; + if (requiringBuilder_ != null) { + requiringBuilder_.dispose(); + requiringBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_GroupKindDependency_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + getDefaultInstanceForType() { + return com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + build() { + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + buildPartial() { + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency result = + new com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.satisfying_ = + satisfyingBuilder_ == null ? satisfying_ : satisfyingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requiring_ = requiringBuilder_ == null ? requiring_ : requiringBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency) { + return mergeFrom( + (com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency other) { + if (other + == com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + .getDefaultInstance()) return this; + if (other.hasSatisfying()) { + mergeSatisfying(other.getSatisfying()); + } + if (other.hasRequiring()) { + mergeRequiring(other.getRequiring()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getSatisfyingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getRequiringFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind satisfying_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> + satisfyingBuilder_; + /** + * + * + *
+         * Required. The satisfying group kind must be restored first
+         * in order to satisfy the dependency.
+         * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind satisfying = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the satisfying field is set. + */ + public boolean hasSatisfying() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+         * Required. The satisfying group kind must be restored first
+         * in order to satisfy the dependency.
+         * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind satisfying = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The satisfying. + */ + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getSatisfying() { + if (satisfyingBuilder_ == null) { + return satisfying_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance() + : satisfying_; + } else { + return satisfyingBuilder_.getMessage(); + } + } + /** + * + * + *
+         * Required. The satisfying group kind must be restored first
+         * in order to satisfy the dependency.
+         * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind satisfying = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSatisfying(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { + if (satisfyingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + satisfying_ = value; + } else { + satisfyingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * Required. The satisfying group kind must be restored first
+         * in order to satisfy the dependency.
+         * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind satisfying = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSatisfying( + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { + if (satisfyingBuilder_ == null) { + satisfying_ = builderForValue.build(); + } else { + satisfyingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * Required. The satisfying group kind must be restored first
+         * in order to satisfy the dependency.
+         * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind satisfying = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSatisfying( + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { + if (satisfyingBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && satisfying_ != null + && satisfying_ + != com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()) { + getSatisfyingBuilder().mergeFrom(value); + } else { + satisfying_ = value; + } + } else { + satisfyingBuilder_.mergeFrom(value); + } + if (satisfying_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+         * Required. The satisfying group kind must be restored first
+         * in order to satisfy the dependency.
+         * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind satisfying = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSatisfying() { + bitField0_ = (bitField0_ & ~0x00000001); + satisfying_ = null; + if (satisfyingBuilder_ != null) { + satisfyingBuilder_.dispose(); + satisfyingBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * Required. The satisfying group kind must be restored first
+         * in order to satisfy the dependency.
+         * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind satisfying = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder + getSatisfyingBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSatisfyingFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Required. The satisfying group kind must be restored first
+         * in order to satisfy the dependency.
+         * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind satisfying = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder + getSatisfyingOrBuilder() { + if (satisfyingBuilder_ != null) { + return satisfyingBuilder_.getMessageOrBuilder(); + } else { + return satisfying_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance() + : satisfying_; + } + } + /** + * + * + *
+         * Required. The satisfying group kind must be restored first
+         * in order to satisfy the dependency.
+         * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind satisfying = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> + getSatisfyingFieldBuilder() { + if (satisfyingBuilder_ == null) { + satisfyingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder>( + getSatisfying(), getParentForChildren(), isClean()); + satisfying_ = null; + } + return satisfyingBuilder_; + } + + private com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind requiring_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> + requiringBuilder_; + /** + * + * + *
+         * Required. The requiring group kind requires that the other
+         * group kind be restored first.
+         * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind requiring = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the requiring field is set. + */ + public boolean hasRequiring() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+         * Required. The requiring group kind requires that the other
+         * group kind be restored first.
+         * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind requiring = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The requiring. + */ + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind getRequiring() { + if (requiringBuilder_ == null) { + return requiring_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance() + : requiring_; + } else { + return requiringBuilder_.getMessage(); + } + } + /** + * + * + *
+         * Required. The requiring group kind requires that the other
+         * group kind be restored first.
+         * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind requiring = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequiring(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { + if (requiringBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requiring_ = value; + } else { + requiringBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * Required. The requiring group kind requires that the other
+         * group kind be restored first.
+         * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind requiring = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequiring( + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder builderForValue) { + if (requiringBuilder_ == null) { + requiring_ = builderForValue.build(); + } else { + requiringBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * Required. The requiring group kind requires that the other
+         * group kind be restored first.
+         * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind requiring = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRequiring(com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind value) { + if (requiringBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && requiring_ != null + && requiring_ + != com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance()) { + getRequiringBuilder().mergeFrom(value); + } else { + requiring_ = value; + } + } else { + requiringBuilder_.mergeFrom(value); + } + if (requiring_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+         * Required. The requiring group kind requires that the other
+         * group kind be restored first.
+         * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind requiring = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequiring() { + bitField0_ = (bitField0_ & ~0x00000002); + requiring_ = null; + if (requiringBuilder_ != null) { + requiringBuilder_.dispose(); + requiringBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * Required. The requiring group kind requires that the other
+         * group kind be restored first.
+         * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind requiring = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder getRequiringBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRequiringFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Required. The requiring group kind requires that the other
+         * group kind be restored first.
+         * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind requiring = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder + getRequiringOrBuilder() { + if (requiringBuilder_ != null) { + return requiringBuilder_.getMessageOrBuilder(); + } else { + return requiring_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.getDefaultInstance() + : requiring_; + } + } + /** + * + * + *
+         * Required. The requiring group kind requires that the other
+         * group kind be restored first.
+         * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.GroupKind requiring = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder> + getRequiringFieldBuilder() { + if (requiringBuilder_ == null) { + requiringBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKind.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder>( + getRequiring(), getParentForChildren(), isClean()); + requiring_ = null; + } + return requiringBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency) + private static final com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder + .GroupKindDependency + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency(); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupKindDependency parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int GROUP_KIND_DEPENDENCIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency> + groupKindDependencies_; + /** + * + * + *
+     * Optional. Contains a list of group kind dependency pairs provided
+     * by the customer, that is used by Backup for GKE to
+     * generate a group kind restore order.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency> + getGroupKindDependenciesList() { + return groupKindDependencies_; + } + /** + * + * + *
+     * Optional. Contains a list of group kind dependency pairs provided
+     * by the customer, that is used by Backup for GKE to
+     * generate a group kind restore order.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder + .GroupKindDependencyOrBuilder> + getGroupKindDependenciesOrBuilderList() { + return groupKindDependencies_; + } + /** + * + * + *
+     * Optional. Contains a list of group kind dependency pairs provided
+     * by the customer, that is used by Backup for GKE to
+     * generate a group kind restore order.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getGroupKindDependenciesCount() { + return groupKindDependencies_.size(); + } + /** + * + * + *
+     * Optional. Contains a list of group kind dependency pairs provided
+     * by the customer, that is used by Backup for GKE to
+     * generate a group kind restore order.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + getGroupKindDependencies(int index) { + return groupKindDependencies_.get(index); + } + /** + * + * + *
+     * Optional. Contains a list of group kind dependency pairs provided
+     * by the customer, that is used by Backup for GKE to
+     * generate a group kind restore order.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependencyOrBuilder + getGroupKindDependenciesOrBuilder(int index) { + return groupKindDependencies_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < groupKindDependencies_.size(); i++) { + output.writeMessage(1, groupKindDependencies_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < groupKindDependencies_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, groupKindDependencies_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder)) { + return super.equals(obj); + } + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder other = + (com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder) obj; + + if (!getGroupKindDependenciesList().equals(other.getGroupKindDependenciesList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getGroupKindDependenciesCount() > 0) { + hash = (37 * hash) + GROUP_KIND_DEPENDENCIES_FIELD_NUMBER; + hash = (53 * hash) + getGroupKindDependenciesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder 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.gkebackup.v1.RestoreConfig.RestoreOrder parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder 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.gkebackup.v1.RestoreConfig.RestoreOrder parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder 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.gkebackup.v1.RestoreConfig.RestoreOrder parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Allows customers to specify dependencies between resources
+     * that Backup for GKE can use to compute a resasonable restore order.
+     * 
+ * + * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder) + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.class, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.Builder.class); + } + + // Construct using com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (groupKindDependenciesBuilder_ == null) { + groupKindDependencies_ = java.util.Collections.emptyList(); + } else { + groupKindDependencies_ = null; + groupKindDependenciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder getDefaultInstanceForType() { + return com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder build() { + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder buildPartial() { + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder result = + new com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder result) { + if (groupKindDependenciesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + groupKindDependencies_ = java.util.Collections.unmodifiableList(groupKindDependencies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.groupKindDependencies_ = groupKindDependencies_; + } else { + result.groupKindDependencies_ = groupKindDependenciesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder) { + return mergeFrom((com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder other) { + if (other == com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.getDefaultInstance()) + return this; + if (groupKindDependenciesBuilder_ == null) { + if (!other.groupKindDependencies_.isEmpty()) { + if (groupKindDependencies_.isEmpty()) { + groupKindDependencies_ = other.groupKindDependencies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGroupKindDependenciesIsMutable(); + groupKindDependencies_.addAll(other.groupKindDependencies_); + } + onChanged(); + } + } else { + if (!other.groupKindDependencies_.isEmpty()) { + if (groupKindDependenciesBuilder_.isEmpty()) { + groupKindDependenciesBuilder_.dispose(); + groupKindDependenciesBuilder_ = null; + groupKindDependencies_ = other.groupKindDependencies_; + bitField0_ = (bitField0_ & ~0x00000001); + groupKindDependenciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroupKindDependenciesFieldBuilder() + : null; + } else { + groupKindDependenciesBuilder_.addAllMessages(other.groupKindDependencies_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency m = + input.readMessage( + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder + .GroupKindDependency.parser(), + extensionRegistry); + if (groupKindDependenciesBuilder_ == null) { + ensureGroupKindDependenciesIsMutable(); + groupKindDependencies_.add(m); + } else { + groupKindDependenciesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency> + groupKindDependencies_ = java.util.Collections.emptyList(); + + private void ensureGroupKindDependenciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + groupKindDependencies_ = + new java.util.ArrayList< + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency>( + groupKindDependencies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependencyOrBuilder> + groupKindDependenciesBuilder_; + + /** + * + * + *
+       * Optional. Contains a list of group kind dependency pairs provided
+       * by the customer, that is used by Backup for GKE to
+       * generate a group kind restore order.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency> + getGroupKindDependenciesList() { + if (groupKindDependenciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(groupKindDependencies_); + } else { + return groupKindDependenciesBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Optional. Contains a list of group kind dependency pairs provided
+       * by the customer, that is used by Backup for GKE to
+       * generate a group kind restore order.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getGroupKindDependenciesCount() { + if (groupKindDependenciesBuilder_ == null) { + return groupKindDependencies_.size(); + } else { + return groupKindDependenciesBuilder_.getCount(); + } + } + /** + * + * + *
+       * Optional. Contains a list of group kind dependency pairs provided
+       * by the customer, that is used by Backup for GKE to
+       * generate a group kind restore order.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + getGroupKindDependencies(int index) { + if (groupKindDependenciesBuilder_ == null) { + return groupKindDependencies_.get(index); + } else { + return groupKindDependenciesBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Optional. Contains a list of group kind dependency pairs provided
+       * by the customer, that is used by Backup for GKE to
+       * generate a group kind restore order.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGroupKindDependencies( + int index, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency value) { + if (groupKindDependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupKindDependenciesIsMutable(); + groupKindDependencies_.set(index, value); + onChanged(); + } else { + groupKindDependenciesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Optional. Contains a list of group kind dependency pairs provided
+       * by the customer, that is used by Backup for GKE to
+       * generate a group kind restore order.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGroupKindDependencies( + int index, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency.Builder + builderForValue) { + if (groupKindDependenciesBuilder_ == null) { + ensureGroupKindDependenciesIsMutable(); + groupKindDependencies_.set(index, builderForValue.build()); + onChanged(); + } else { + groupKindDependenciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Optional. Contains a list of group kind dependency pairs provided
+       * by the customer, that is used by Backup for GKE to
+       * generate a group kind restore order.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGroupKindDependencies( + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency value) { + if (groupKindDependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupKindDependenciesIsMutable(); + groupKindDependencies_.add(value); + onChanged(); + } else { + groupKindDependenciesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Optional. Contains a list of group kind dependency pairs provided
+       * by the customer, that is used by Backup for GKE to
+       * generate a group kind restore order.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGroupKindDependencies( + int index, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency value) { + if (groupKindDependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupKindDependenciesIsMutable(); + groupKindDependencies_.add(index, value); + onChanged(); + } else { + groupKindDependenciesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Optional. Contains a list of group kind dependency pairs provided
+       * by the customer, that is used by Backup for GKE to
+       * generate a group kind restore order.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGroupKindDependencies( + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency.Builder + builderForValue) { + if (groupKindDependenciesBuilder_ == null) { + ensureGroupKindDependenciesIsMutable(); + groupKindDependencies_.add(builderForValue.build()); + onChanged(); + } else { + groupKindDependenciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Optional. Contains a list of group kind dependency pairs provided
+       * by the customer, that is used by Backup for GKE to
+       * generate a group kind restore order.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGroupKindDependencies( + int index, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency.Builder + builderForValue) { + if (groupKindDependenciesBuilder_ == null) { + ensureGroupKindDependenciesIsMutable(); + groupKindDependencies_.add(index, builderForValue.build()); + onChanged(); + } else { + groupKindDependenciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Optional. Contains a list of group kind dependency pairs provided
+       * by the customer, that is used by Backup for GKE to
+       * generate a group kind restore order.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllGroupKindDependencies( + java.lang.Iterable< + ? extends + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency> + values) { + if (groupKindDependenciesBuilder_ == null) { + ensureGroupKindDependenciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupKindDependencies_); + onChanged(); + } else { + groupKindDependenciesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Optional. Contains a list of group kind dependency pairs provided
+       * by the customer, that is used by Backup for GKE to
+       * generate a group kind restore order.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGroupKindDependencies() { + if (groupKindDependenciesBuilder_ == null) { + groupKindDependencies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + groupKindDependenciesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Optional. Contains a list of group kind dependency pairs provided
+       * by the customer, that is used by Backup for GKE to
+       * generate a group kind restore order.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeGroupKindDependencies(int index) { + if (groupKindDependenciesBuilder_ == null) { + ensureGroupKindDependenciesIsMutable(); + groupKindDependencies_.remove(index); + onChanged(); + } else { + groupKindDependenciesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Optional. Contains a list of group kind dependency pairs provided
+       * by the customer, that is used by Backup for GKE to
+       * generate a group kind restore order.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency.Builder + getGroupKindDependenciesBuilder(int index) { + return getGroupKindDependenciesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Optional. Contains a list of group kind dependency pairs provided
+       * by the customer, that is used by Backup for GKE to
+       * generate a group kind restore order.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependencyOrBuilder + getGroupKindDependenciesOrBuilder(int index) { + if (groupKindDependenciesBuilder_ == null) { + return groupKindDependencies_.get(index); + } else { + return groupKindDependenciesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Optional. Contains a list of group kind dependency pairs provided
+       * by the customer, that is used by Backup for GKE to
+       * generate a group kind restore order.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder + .GroupKindDependencyOrBuilder> + getGroupKindDependenciesOrBuilderList() { + if (groupKindDependenciesBuilder_ != null) { + return groupKindDependenciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(groupKindDependencies_); + } + } + /** + * + * + *
+       * Optional. Contains a list of group kind dependency pairs provided
+       * by the customer, that is used by Backup for GKE to
+       * generate a group kind restore order.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency.Builder + addGroupKindDependenciesBuilder() { + return getGroupKindDependenciesFieldBuilder() + .addBuilder( + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + .getDefaultInstance()); + } + /** + * + * + *
+       * Optional. Contains a list of group kind dependency pairs provided
+       * by the customer, that is used by Backup for GKE to
+       * generate a group kind restore order.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency.Builder + addGroupKindDependenciesBuilder(int index) { + return getGroupKindDependenciesFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + .getDefaultInstance()); + } + /** + * + * + *
+       * Optional. Contains a list of group kind dependency pairs provided
+       * by the customer, that is used by Backup for GKE to
+       * generate a group kind restore order.
+       * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency.Builder> + getGroupKindDependenciesBuilderList() { + return getGroupKindDependenciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependencyOrBuilder> + getGroupKindDependenciesFieldBuilder() { + if (groupKindDependenciesBuilder_ == null) { + groupKindDependenciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency + .Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder + .GroupKindDependencyOrBuilder>( + groupKindDependencies_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + groupKindDependencies_ = null; + } + return groupKindDependenciesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder) + private static final com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder(); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreOrder parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int namespacedResourceRestoreScopeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object namespacedResourceRestoreScope_; + + public enum NamespacedResourceRestoreScopeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ALL_NAMESPACES(5), + SELECTED_NAMESPACES(6), + SELECTED_APPLICATIONS(7), + NO_NAMESPACES(9), + EXCLUDED_NAMESPACES(10), + NAMESPACEDRESOURCERESTORESCOPE_NOT_SET(0); + private final int value; + + private NamespacedResourceRestoreScopeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NamespacedResourceRestoreScopeCase valueOf(int value) { + return forNumber(value); + } + + public static NamespacedResourceRestoreScopeCase forNumber(int value) { + switch (value) { + case 5: + return ALL_NAMESPACES; + case 6: + return SELECTED_NAMESPACES; + case 7: + return SELECTED_APPLICATIONS; + case 9: + return NO_NAMESPACES; + case 10: + return EXCLUDED_NAMESPACES; + case 0: + return NAMESPACEDRESOURCERESTORESCOPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public NamespacedResourceRestoreScopeCase getNamespacedResourceRestoreScopeCase() { + return NamespacedResourceRestoreScopeCase.forNumber(namespacedResourceRestoreScopeCase_); + } + + public static final int VOLUME_DATA_RESTORE_POLICY_FIELD_NUMBER = 1; + private int volumeDataRestorePolicy_ = 0; + /** + * + * + *
+   * Optional. Specifies the mechanism to be used to restore volume data.
+   * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
+   * NO_VOLUME_DATA_RESTORATION).
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for volumeDataRestorePolicy. + */ + @java.lang.Override + public int getVolumeDataRestorePolicyValue() { + return volumeDataRestorePolicy_; + } + /** + * + * + *
+   * Optional. Specifies the mechanism to be used to restore volume data.
+   * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
+   * NO_VOLUME_DATA_RESTORATION).
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The volumeDataRestorePolicy. + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy + getVolumeDataRestorePolicy() { + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy result = + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.forNumber( + volumeDataRestorePolicy_); + return result == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.UNRECOGNIZED + : result; + } + + public static final int CLUSTER_RESOURCE_CONFLICT_POLICY_FIELD_NUMBER = 2; + private int clusterResourceConflictPolicy_ = 0; + /** + * + * + *
+   * Optional. Defines the behavior for handling the situation where
+   * cluster-scoped resources being restored already exist in the target
+   * cluster. This MUST be set to a value other than
+   * CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
+   * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope]
+   * is not empty.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for clusterResourceConflictPolicy. + */ + @java.lang.Override + public int getClusterResourceConflictPolicyValue() { + return clusterResourceConflictPolicy_; + } + /** + * + * + *
+   * Optional. Defines the behavior for handling the situation where
+   * cluster-scoped resources being restored already exist in the target
+   * cluster. This MUST be set to a value other than
+   * CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
+   * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope]
+   * is not empty.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clusterResourceConflictPolicy. + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy + getClusterResourceConflictPolicy() { + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy result = + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.forNumber( + clusterResourceConflictPolicy_); + return result == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.UNRECOGNIZED + : result; + } + + public static final int NAMESPACED_RESOURCE_RESTORE_MODE_FIELD_NUMBER = 3; + private int namespacedResourceRestoreMode_ = 0; + /** + * + * + *
+   * Optional. Defines the behavior for handling the situation where sets of
+   * namespaced resources being restored already exist in the target cluster.
+   * This MUST be set to a value other than
+   * NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for namespacedResourceRestoreMode. + */ @java.lang.Override public int getNamespacedResourceRestoreModeValue() { return namespacedResourceRestoreMode_; @@ -11847,6 +15304,160 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule getTransfo return transformationRules_.get(index); } + public static final int VOLUME_DATA_RESTORE_POLICY_BINDINGS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private java.util.List + volumeDataRestorePolicyBindings_; + /** + * + * + *
+   * Optional. A table that binds volumes by their scope to a restore policy.
+   * Bindings must have a unique scope. Any volumes not scoped in the bindings
+   * are subject to the policy defined in volume_data_restore_policy.
+   * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getVolumeDataRestorePolicyBindingsList() { + return volumeDataRestorePolicyBindings_; + } + /** + * + * + *
+   * Optional. A table that binds volumes by their scope to a restore policy.
+   * Bindings must have a unique scope. Any volumes not scoped in the bindings
+   * are subject to the policy defined in volume_data_restore_policy.
+   * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBindingOrBuilder> + getVolumeDataRestorePolicyBindingsOrBuilderList() { + return volumeDataRestorePolicyBindings_; + } + /** + * + * + *
+   * Optional. A table that binds volumes by their scope to a restore policy.
+   * Bindings must have a unique scope. Any volumes not scoped in the bindings
+   * are subject to the policy defined in volume_data_restore_policy.
+   * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getVolumeDataRestorePolicyBindingsCount() { + return volumeDataRestorePolicyBindings_.size(); + } + /** + * + * + *
+   * Optional. A table that binds volumes by their scope to a restore policy.
+   * Bindings must have a unique scope. Any volumes not scoped in the bindings
+   * are subject to the policy defined in volume_data_restore_policy.
+   * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + getVolumeDataRestorePolicyBindings(int index) { + return volumeDataRestorePolicyBindings_.get(index); + } + /** + * + * + *
+   * Optional. A table that binds volumes by their scope to a restore policy.
+   * Bindings must have a unique scope. Any volumes not scoped in the bindings
+   * are subject to the policy defined in volume_data_restore_policy.
+   * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBindingOrBuilder + getVolumeDataRestorePolicyBindingsOrBuilder(int index) { + return volumeDataRestorePolicyBindings_.get(index); + } + + public static final int RESTORE_ORDER_FIELD_NUMBER = 13; + private com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder restoreOrder_; + /** + * + * + *
+   * Optional. RestoreOrder contains custom ordering to use on a Restore.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder restore_order = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the restoreOrder field is set. + */ + @java.lang.Override + public boolean hasRestoreOrder() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. RestoreOrder contains custom ordering to use on a Restore.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder restore_order = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The restoreOrder. + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder getRestoreOrder() { + return restoreOrder_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.getDefaultInstance() + : restoreOrder_; + } + /** + * + * + *
+   * Optional. RestoreOrder contains custom ordering to use on a Restore.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder restore_order = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrderOrBuilder + getRestoreOrderOrBuilder() { + return restoreOrder_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.getDefaultInstance() + : restoreOrder_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -11906,6 +15517,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < transformationRules_.size(); i++) { output.writeMessage(11, transformationRules_.get(i)); } + for (int i = 0; i < volumeDataRestorePolicyBindings_.size(); i++) { + output.writeMessage(12, volumeDataRestorePolicyBindings_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(13, getRestoreOrder()); + } getUnknownFields().writeTo(output); } @@ -11973,6 +15590,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, transformationRules_.get(i)); } + for (int i = 0; i < volumeDataRestorePolicyBindings_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, volumeDataRestorePolicyBindings_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getRestoreOrder()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -11999,6 +15624,12 @@ public boolean equals(final java.lang.Object obj) { } if (!getSubstitutionRulesList().equals(other.getSubstitutionRulesList())) return false; if (!getTransformationRulesList().equals(other.getTransformationRulesList())) return false; + if (!getVolumeDataRestorePolicyBindingsList() + .equals(other.getVolumeDataRestorePolicyBindingsList())) return false; + if (hasRestoreOrder() != other.hasRestoreOrder()) return false; + if (hasRestoreOrder()) { + if (!getRestoreOrder().equals(other.getRestoreOrder())) return false; + } if (!getNamespacedResourceRestoreScopeCase() .equals(other.getNamespacedResourceRestoreScopeCase())) return false; switch (namespacedResourceRestoreScopeCase_) { @@ -12049,6 +15680,14 @@ public int hashCode() { hash = (37 * hash) + TRANSFORMATION_RULES_FIELD_NUMBER; hash = (53 * hash) + getTransformationRulesList().hashCode(); } + if (getVolumeDataRestorePolicyBindingsCount() > 0) { + hash = (37 * hash) + VOLUME_DATA_RESTORE_POLICY_BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getVolumeDataRestorePolicyBindingsList().hashCode(); + } + if (hasRestoreOrder()) { + hash = (37 * hash) + RESTORE_ORDER_FIELD_NUMBER; + hash = (53 * hash) + getRestoreOrder().hashCode(); + } switch (namespacedResourceRestoreScopeCase_) { case 5: hash = (37 * hash) + ALL_NAMESPACES_FIELD_NUMBER; @@ -12118,1142 +15757,1748 @@ public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom(java.io.Inpu return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gkebackup.v1.RestoreConfig 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.gkebackup.v1.RestoreConfig 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.gkebackup.v1.RestoreConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig 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.gkebackup.v1.RestoreConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.RestoreConfig 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkebackup.v1.RestoreConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration of a restore.
+   * 
+ * + * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.RestoreConfig) + com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkebackup.v1.RestoreConfig.class, + com.google.cloud.gkebackup.v1.RestoreConfig.Builder.class); + } + + // Construct using com.google.cloud.gkebackup.v1.RestoreConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getClusterResourceRestoreScopeFieldBuilder(); + getSubstitutionRulesFieldBuilder(); + getTransformationRulesFieldBuilder(); + getVolumeDataRestorePolicyBindingsFieldBuilder(); + getRestoreOrderFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + volumeDataRestorePolicy_ = 0; + clusterResourceConflictPolicy_ = 0; + namespacedResourceRestoreMode_ = 0; + clusterResourceRestoreScope_ = null; + if (clusterResourceRestoreScopeBuilder_ != null) { + clusterResourceRestoreScopeBuilder_.dispose(); + clusterResourceRestoreScopeBuilder_ = null; + } + if (selectedNamespacesBuilder_ != null) { + selectedNamespacesBuilder_.clear(); + } + if (selectedApplicationsBuilder_ != null) { + selectedApplicationsBuilder_.clear(); + } + if (excludedNamespacesBuilder_ != null) { + excludedNamespacesBuilder_.clear(); + } + if (substitutionRulesBuilder_ == null) { + substitutionRules_ = java.util.Collections.emptyList(); + } else { + substitutionRules_ = null; + substitutionRulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + if (transformationRulesBuilder_ == null) { + transformationRules_ = java.util.Collections.emptyList(); + } else { + transformationRules_ = null; + transformationRulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + if (volumeDataRestorePolicyBindingsBuilder_ == null) { + volumeDataRestorePolicyBindings_ = java.util.Collections.emptyList(); + } else { + volumeDataRestorePolicyBindings_ = null; + volumeDataRestorePolicyBindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000800); + restoreOrder_ = null; + if (restoreOrderBuilder_ != null) { + restoreOrderBuilder_.dispose(); + restoreOrderBuilder_ = null; + } + namespacedResourceRestoreScopeCase_ = 0; + namespacedResourceRestoreScope_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig getDefaultInstanceForType() { + return com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig build() { + com.google.cloud.gkebackup.v1.RestoreConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig buildPartial() { + com.google.cloud.gkebackup.v1.RestoreConfig result = + new com.google.cloud.gkebackup.v1.RestoreConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.gkebackup.v1.RestoreConfig result) { + if (substitutionRulesBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + substitutionRules_ = java.util.Collections.unmodifiableList(substitutionRules_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.substitutionRules_ = substitutionRules_; + } else { + result.substitutionRules_ = substitutionRulesBuilder_.build(); + } + if (transformationRulesBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + transformationRules_ = java.util.Collections.unmodifiableList(transformationRules_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.transformationRules_ = transformationRules_; + } else { + result.transformationRules_ = transformationRulesBuilder_.build(); + } + if (volumeDataRestorePolicyBindingsBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0)) { + volumeDataRestorePolicyBindings_ = + java.util.Collections.unmodifiableList(volumeDataRestorePolicyBindings_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.volumeDataRestorePolicyBindings_ = volumeDataRestorePolicyBindings_; + } else { + result.volumeDataRestorePolicyBindings_ = volumeDataRestorePolicyBindingsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gkebackup.v1.RestoreConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.volumeDataRestorePolicy_ = volumeDataRestorePolicy_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clusterResourceConflictPolicy_ = clusterResourceConflictPolicy_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.namespacedResourceRestoreMode_ = namespacedResourceRestoreMode_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.clusterResourceRestoreScope_ = + clusterResourceRestoreScopeBuilder_ == null + ? clusterResourceRestoreScope_ + : clusterResourceRestoreScopeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.restoreOrder_ = + restoreOrderBuilder_ == null ? restoreOrder_ : restoreOrderBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.gkebackup.v1.RestoreConfig result) { + result.namespacedResourceRestoreScopeCase_ = namespacedResourceRestoreScopeCase_; + result.namespacedResourceRestoreScope_ = this.namespacedResourceRestoreScope_; + if (namespacedResourceRestoreScopeCase_ == 6 && selectedNamespacesBuilder_ != null) { + result.namespacedResourceRestoreScope_ = selectedNamespacesBuilder_.build(); + } + if (namespacedResourceRestoreScopeCase_ == 7 && selectedApplicationsBuilder_ != null) { + result.namespacedResourceRestoreScope_ = selectedApplicationsBuilder_.build(); + } + if (namespacedResourceRestoreScopeCase_ == 10 && excludedNamespacesBuilder_ != null) { + result.namespacedResourceRestoreScope_ = excludedNamespacesBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static com.google.cloud.gkebackup.v1.RestoreConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static com.google.cloud.gkebackup.v1.RestoreConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - public static com.google.cloud.gkebackup.v1.RestoreConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public static com.google.cloud.gkebackup.v1.RestoreConfig 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkebackup.v1.RestoreConfig) { + return mergeFrom((com.google.cloud.gkebackup.v1.RestoreConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public Builder mergeFrom(com.google.cloud.gkebackup.v1.RestoreConfig other) { + if (other == com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance()) return this; + if (other.volumeDataRestorePolicy_ != 0) { + setVolumeDataRestorePolicyValue(other.getVolumeDataRestorePolicyValue()); + } + if (other.clusterResourceConflictPolicy_ != 0) { + setClusterResourceConflictPolicyValue(other.getClusterResourceConflictPolicyValue()); + } + if (other.namespacedResourceRestoreMode_ != 0) { + setNamespacedResourceRestoreModeValue(other.getNamespacedResourceRestoreModeValue()); + } + if (other.hasClusterResourceRestoreScope()) { + mergeClusterResourceRestoreScope(other.getClusterResourceRestoreScope()); + } + if (substitutionRulesBuilder_ == null) { + if (!other.substitutionRules_.isEmpty()) { + if (substitutionRules_.isEmpty()) { + substitutionRules_ = other.substitutionRules_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureSubstitutionRulesIsMutable(); + substitutionRules_.addAll(other.substitutionRules_); + } + onChanged(); + } + } else { + if (!other.substitutionRules_.isEmpty()) { + if (substitutionRulesBuilder_.isEmpty()) { + substitutionRulesBuilder_.dispose(); + substitutionRulesBuilder_ = null; + substitutionRules_ = other.substitutionRules_; + bitField0_ = (bitField0_ & ~0x00000200); + substitutionRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSubstitutionRulesFieldBuilder() + : null; + } else { + substitutionRulesBuilder_.addAllMessages(other.substitutionRules_); + } + } + } + if (transformationRulesBuilder_ == null) { + if (!other.transformationRules_.isEmpty()) { + if (transformationRules_.isEmpty()) { + transformationRules_ = other.transformationRules_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureTransformationRulesIsMutable(); + transformationRules_.addAll(other.transformationRules_); + } + onChanged(); + } + } else { + if (!other.transformationRules_.isEmpty()) { + if (transformationRulesBuilder_.isEmpty()) { + transformationRulesBuilder_.dispose(); + transformationRulesBuilder_ = null; + transformationRules_ = other.transformationRules_; + bitField0_ = (bitField0_ & ~0x00000400); + transformationRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTransformationRulesFieldBuilder() + : null; + } else { + transformationRulesBuilder_.addAllMessages(other.transformationRules_); + } + } + } + if (volumeDataRestorePolicyBindingsBuilder_ == null) { + if (!other.volumeDataRestorePolicyBindings_.isEmpty()) { + if (volumeDataRestorePolicyBindings_.isEmpty()) { + volumeDataRestorePolicyBindings_ = other.volumeDataRestorePolicyBindings_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureVolumeDataRestorePolicyBindingsIsMutable(); + volumeDataRestorePolicyBindings_.addAll(other.volumeDataRestorePolicyBindings_); + } + onChanged(); + } + } else { + if (!other.volumeDataRestorePolicyBindings_.isEmpty()) { + if (volumeDataRestorePolicyBindingsBuilder_.isEmpty()) { + volumeDataRestorePolicyBindingsBuilder_.dispose(); + volumeDataRestorePolicyBindingsBuilder_ = null; + volumeDataRestorePolicyBindings_ = other.volumeDataRestorePolicyBindings_; + bitField0_ = (bitField0_ & ~0x00000800); + volumeDataRestorePolicyBindingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVolumeDataRestorePolicyBindingsFieldBuilder() + : null; + } else { + volumeDataRestorePolicyBindingsBuilder_.addAllMessages( + other.volumeDataRestorePolicyBindings_); + } + } + } + if (other.hasRestoreOrder()) { + mergeRestoreOrder(other.getRestoreOrder()); + } + switch (other.getNamespacedResourceRestoreScopeCase()) { + case ALL_NAMESPACES: + { + setAllNamespaces(other.getAllNamespaces()); + break; + } + case SELECTED_NAMESPACES: + { + mergeSelectedNamespaces(other.getSelectedNamespaces()); + break; + } + case SELECTED_APPLICATIONS: + { + mergeSelectedApplications(other.getSelectedApplications()); + break; + } + case NO_NAMESPACES: + { + setNoNamespaces(other.getNoNamespaces()); + break; + } + case EXCLUDED_NAMESPACES: + { + mergeExcludedNamespaces(other.getExcludedNamespaces()); + break; + } + case NAMESPACEDRESOURCERESTORESCOPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static Builder newBuilder(com.google.cloud.gkebackup.v1.RestoreConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + volumeDataRestorePolicy_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + clusterResourceConflictPolicy_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + namespacedResourceRestoreMode_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + getClusterResourceRestoreScopeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + namespacedResourceRestoreScope_ = input.readBool(); + namespacedResourceRestoreScopeCase_ = 5; + break; + } // case 40 + case 50: + { + input.readMessage( + getSelectedNamespacesFieldBuilder().getBuilder(), extensionRegistry); + namespacedResourceRestoreScopeCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getSelectedApplicationsFieldBuilder().getBuilder(), extensionRegistry); + namespacedResourceRestoreScopeCase_ = 7; + break; + } // case 58 + case 66: + { + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule m = + input.readMessage( + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.parser(), + extensionRegistry); + if (substitutionRulesBuilder_ == null) { + ensureSubstitutionRulesIsMutable(); + substitutionRules_.add(m); + } else { + substitutionRulesBuilder_.addMessage(m); + } + break; + } // case 66 + case 72: + { + namespacedResourceRestoreScope_ = input.readBool(); + namespacedResourceRestoreScopeCase_ = 9; + break; + } // case 72 + case 82: + { + input.readMessage( + getExcludedNamespacesFieldBuilder().getBuilder(), extensionRegistry); + namespacedResourceRestoreScopeCase_ = 10; + break; + } // case 82 + case 90: + { + com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule m = + input.readMessage( + com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.parser(), + extensionRegistry); + if (transformationRulesBuilder_ == null) { + ensureTransformationRulesIsMutable(); + transformationRules_.add(m); + } else { + transformationRulesBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: + { + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding m = + input.readMessage( + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + .parser(), + extensionRegistry); + if (volumeDataRestorePolicyBindingsBuilder_ == null) { + ensureVolumeDataRestorePolicyBindingsIsMutable(); + volumeDataRestorePolicyBindings_.add(m); + } else { + volumeDataRestorePolicyBindingsBuilder_.addMessage(m); + } + break; + } // case 98 + case 106: + { + input.readMessage(getRestoreOrderFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + private int namespacedResourceRestoreScopeCase_ = 0; + private java.lang.Object namespacedResourceRestoreScope_; - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Configuration of a restore.
-   * 
- * - * Protobuf type {@code google.cloud.gkebackup.v1.RestoreConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.RestoreConfig) - com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkebackup.v1.RestoreProto - .internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor; + public NamespacedResourceRestoreScopeCase getNamespacedResourceRestoreScopeCase() { + return NamespacedResourceRestoreScopeCase.forNumber(namespacedResourceRestoreScopeCase_); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gkebackup.v1.RestoreProto - .internal_static_google_cloud_gkebackup_v1_RestoreConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gkebackup.v1.RestoreConfig.class, - com.google.cloud.gkebackup.v1.RestoreConfig.Builder.class); + public Builder clearNamespacedResourceRestoreScope() { + namespacedResourceRestoreScopeCase_ = 0; + namespacedResourceRestoreScope_ = null; + onChanged(); + return this; } - // Construct using com.google.cloud.gkebackup.v1.RestoreConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private int bitField0_; - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + private int volumeDataRestorePolicy_ = 0; + /** + * + * + *
+     * Optional. Specifies the mechanism to be used to restore volume data.
+     * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
+     * NO_VOLUME_DATA_RESTORATION).
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for volumeDataRestorePolicy. + */ + @java.lang.Override + public int getVolumeDataRestorePolicyValue() { + return volumeDataRestorePolicy_; } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getClusterResourceRestoreScopeFieldBuilder(); - getSubstitutionRulesFieldBuilder(); - getTransformationRulesFieldBuilder(); - } + /** + * + * + *
+     * Optional. Specifies the mechanism to be used to restore volume data.
+     * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
+     * NO_VOLUME_DATA_RESTORATION).
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for volumeDataRestorePolicy to set. + * @return This builder for chaining. + */ + public Builder setVolumeDataRestorePolicyValue(int value) { + volumeDataRestorePolicy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - + /** + * + * + *
+     * Optional. Specifies the mechanism to be used to restore volume data.
+     * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
+     * NO_VOLUME_DATA_RESTORATION).
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The volumeDataRestorePolicy. + */ @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - volumeDataRestorePolicy_ = 0; - clusterResourceConflictPolicy_ = 0; - namespacedResourceRestoreMode_ = 0; - clusterResourceRestoreScope_ = null; - if (clusterResourceRestoreScopeBuilder_ != null) { - clusterResourceRestoreScopeBuilder_.dispose(); - clusterResourceRestoreScopeBuilder_ = null; - } - if (selectedNamespacesBuilder_ != null) { - selectedNamespacesBuilder_.clear(); - } - if (selectedApplicationsBuilder_ != null) { - selectedApplicationsBuilder_.clear(); - } - if (excludedNamespacesBuilder_ != null) { - excludedNamespacesBuilder_.clear(); - } - if (substitutionRulesBuilder_ == null) { - substitutionRules_ = java.util.Collections.emptyList(); - } else { - substitutionRules_ = null; - substitutionRulesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000200); - if (transformationRulesBuilder_ == null) { - transformationRules_ = java.util.Collections.emptyList(); - } else { - transformationRules_ = null; - transformationRulesBuilder_.clear(); + public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy + getVolumeDataRestorePolicy() { + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy result = + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.forNumber( + volumeDataRestorePolicy_); + return result == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Specifies the mechanism to be used to restore volume data.
+     * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
+     * NO_VOLUME_DATA_RESTORATION).
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The volumeDataRestorePolicy to set. + * @return This builder for chaining. + */ + public Builder setVolumeDataRestorePolicy( + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ = (bitField0_ & ~0x00000400); - namespacedResourceRestoreScopeCase_ = 0; - namespacedResourceRestoreScope_ = null; + bitField0_ |= 0x00000001; + volumeDataRestorePolicy_ = value.getNumber(); + onChanged(); return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkebackup.v1.RestoreProto - .internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor; + /** + * + * + *
+     * Optional. Specifies the mechanism to be used to restore volume data.
+     * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
+     * NO_VOLUME_DATA_RESTORATION).
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearVolumeDataRestorePolicy() { + bitField0_ = (bitField0_ & ~0x00000001); + volumeDataRestorePolicy_ = 0; + onChanged(); + return this; } + private int clusterResourceConflictPolicy_ = 0; + /** + * + * + *
+     * Optional. Defines the behavior for handling the situation where
+     * cluster-scoped resources being restored already exist in the target
+     * cluster. This MUST be set to a value other than
+     * CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
+     * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope]
+     * is not empty.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for clusterResourceConflictPolicy. + */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig getDefaultInstanceForType() { - return com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance(); + public int getClusterResourceConflictPolicyValue() { + return clusterResourceConflictPolicy_; } - - @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig build() { - com.google.cloud.gkebackup.v1.RestoreConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + /** + * + * + *
+     * Optional. Defines the behavior for handling the situation where
+     * cluster-scoped resources being restored already exist in the target
+     * cluster. This MUST be set to a value other than
+     * CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
+     * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope]
+     * is not empty.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for clusterResourceConflictPolicy to set. + * @return This builder for chaining. + */ + public Builder setClusterResourceConflictPolicyValue(int value) { + clusterResourceConflictPolicy_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - + /** + * + * + *
+     * Optional. Defines the behavior for handling the situation where
+     * cluster-scoped resources being restored already exist in the target
+     * cluster. This MUST be set to a value other than
+     * CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
+     * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope]
+     * is not empty.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clusterResourceConflictPolicy. + */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig buildPartial() { - com.google.cloud.gkebackup.v1.RestoreConfig result = - new com.google.cloud.gkebackup.v1.RestoreConfig(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.cloud.gkebackup.v1.RestoreConfig result) { - if (substitutionRulesBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { - substitutionRules_ = java.util.Collections.unmodifiableList(substitutionRules_); - bitField0_ = (bitField0_ & ~0x00000200); - } - result.substitutionRules_ = substitutionRules_; - } else { - result.substitutionRules_ = substitutionRulesBuilder_.build(); - } - if (transformationRulesBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { - transformationRules_ = java.util.Collections.unmodifiableList(transformationRules_); - bitField0_ = (bitField0_ & ~0x00000400); - } - result.transformationRules_ = transformationRules_; - } else { - result.transformationRules_ = transformationRulesBuilder_.build(); - } + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy + getClusterResourceConflictPolicy() { + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy result = + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.forNumber( + clusterResourceConflictPolicy_); + return result == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.UNRECOGNIZED + : result; } - - private void buildPartial0(com.google.cloud.gkebackup.v1.RestoreConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.volumeDataRestorePolicy_ = volumeDataRestorePolicy_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.clusterResourceConflictPolicy_ = clusterResourceConflictPolicy_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.namespacedResourceRestoreMode_ = namespacedResourceRestoreMode_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.clusterResourceRestoreScope_ = - clusterResourceRestoreScopeBuilder_ == null - ? clusterResourceRestoreScope_ - : clusterResourceRestoreScopeBuilder_.build(); - to_bitField0_ |= 0x00000001; + /** + * + * + *
+     * Optional. Defines the behavior for handling the situation where
+     * cluster-scoped resources being restored already exist in the target
+     * cluster. This MUST be set to a value other than
+     * CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
+     * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope]
+     * is not empty.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The clusterResourceConflictPolicy to set. + * @return This builder for chaining. + */ + public Builder setClusterResourceConflictPolicy( + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy value) { + if (value == null) { + throw new NullPointerException(); } - result.bitField0_ |= to_bitField0_; + bitField0_ |= 0x00000002; + clusterResourceConflictPolicy_ = value.getNumber(); + onChanged(); + return this; } - - private void buildPartialOneofs(com.google.cloud.gkebackup.v1.RestoreConfig result) { - result.namespacedResourceRestoreScopeCase_ = namespacedResourceRestoreScopeCase_; - result.namespacedResourceRestoreScope_ = this.namespacedResourceRestoreScope_; - if (namespacedResourceRestoreScopeCase_ == 6 && selectedNamespacesBuilder_ != null) { - result.namespacedResourceRestoreScope_ = selectedNamespacesBuilder_.build(); - } - if (namespacedResourceRestoreScopeCase_ == 7 && selectedApplicationsBuilder_ != null) { - result.namespacedResourceRestoreScope_ = selectedApplicationsBuilder_.build(); - } - if (namespacedResourceRestoreScopeCase_ == 10 && excludedNamespacesBuilder_ != null) { - result.namespacedResourceRestoreScope_ = excludedNamespacesBuilder_.build(); - } + /** + * + * + *
+     * Optional. Defines the behavior for handling the situation where
+     * cluster-scoped resources being restored already exist in the target
+     * cluster. This MUST be set to a value other than
+     * CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
+     * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope]
+     * is not empty.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearClusterResourceConflictPolicy() { + bitField0_ = (bitField0_ & ~0x00000002); + clusterResourceConflictPolicy_ = 0; + onChanged(); + return this; } + private int namespacedResourceRestoreMode_ = 0; + /** + * + * + *
+     * Optional. Defines the behavior for handling the situation where sets of
+     * namespaced resources being restored already exist in the target cluster.
+     * This MUST be set to a value other than
+     * NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for namespacedResourceRestoreMode. + */ @java.lang.Override - public Builder clone() { - return super.clone(); + public int getNamespacedResourceRestoreModeValue() { + return namespacedResourceRestoreMode_; } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + /** + * + * + *
+     * Optional. Defines the behavior for handling the situation where sets of
+     * namespaced resources being restored already exist in the target cluster.
+     * This MUST be set to a value other than
+     * NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for namespacedResourceRestoreMode to set. + * @return This builder for chaining. + */ + public Builder setNamespacedResourceRestoreModeValue(int value) { + namespacedResourceRestoreMode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } - + /** + * + * + *
+     * Optional. Defines the behavior for handling the situation where sets of
+     * namespaced resources being restored already exist in the target cluster.
+     * This MUST be set to a value other than
+     * NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The namespacedResourceRestoreMode. + */ @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + public com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode + getNamespacedResourceRestoreMode() { + com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode result = + com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.forNumber( + namespacedResourceRestoreMode_); + return result == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.UNRECOGNIZED + : result; } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * + * + *
+     * Optional. Defines the behavior for handling the situation where sets of
+     * namespaced resources being restored already exist in the target cluster.
+     * This MUST be set to a value other than
+     * NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The namespacedResourceRestoreMode to set. + * @return This builder for chaining. + */ + public Builder setNamespacedResourceRestoreMode( + com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + namespacedResourceRestoreMode_ = value.getNumber(); + onChanged(); + return this; } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + * + * + *
+     * Optional. Defines the behavior for handling the situation where sets of
+     * namespaced resources being restored already exist in the target cluster.
+     * This MUST be set to a value other than
+     * NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearNamespacedResourceRestoreMode() { + bitField0_ = (bitField0_ & ~0x00000004); + namespacedResourceRestoreMode_ = 0; + onChanged(); + return this; } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + private com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + clusterResourceRestoreScope_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope, + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder> + clusterResourceRestoreScopeBuilder_; + /** + * + * + *
+     * Optional. Identifies the cluster-scoped resources to restore from the
+     * Backup. Not specifying it means NO cluster resource will be restored.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clusterResourceRestoreScope field is set. + */ + public boolean hasClusterResourceRestoreScope() { + return ((bitField0_ & 0x00000008) != 0); } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.gkebackup.v1.RestoreConfig) { - return mergeFrom((com.google.cloud.gkebackup.v1.RestoreConfig) other); + /** + * + * + *
+     * Optional. Identifies the cluster-scoped resources to restore from the
+     * Backup. Not specifying it means NO cluster resource will be restored.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clusterResourceRestoreScope. + */ + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + getClusterResourceRestoreScope() { + if (clusterResourceRestoreScopeBuilder_ == null) { + return clusterResourceRestoreScope_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + .getDefaultInstance() + : clusterResourceRestoreScope_; } else { - super.mergeFrom(other); - return this; + return clusterResourceRestoreScopeBuilder_.getMessage(); } } - - public Builder mergeFrom(com.google.cloud.gkebackup.v1.RestoreConfig other) { - if (other == com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance()) return this; - if (other.volumeDataRestorePolicy_ != 0) { - setVolumeDataRestorePolicyValue(other.getVolumeDataRestorePolicyValue()); - } - if (other.clusterResourceConflictPolicy_ != 0) { - setClusterResourceConflictPolicyValue(other.getClusterResourceConflictPolicyValue()); - } - if (other.namespacedResourceRestoreMode_ != 0) { - setNamespacedResourceRestoreModeValue(other.getNamespacedResourceRestoreModeValue()); - } - if (other.hasClusterResourceRestoreScope()) { - mergeClusterResourceRestoreScope(other.getClusterResourceRestoreScope()); - } - if (substitutionRulesBuilder_ == null) { - if (!other.substitutionRules_.isEmpty()) { - if (substitutionRules_.isEmpty()) { - substitutionRules_ = other.substitutionRules_; - bitField0_ = (bitField0_ & ~0x00000200); - } else { - ensureSubstitutionRulesIsMutable(); - substitutionRules_.addAll(other.substitutionRules_); - } - onChanged(); - } - } else { - if (!other.substitutionRules_.isEmpty()) { - if (substitutionRulesBuilder_.isEmpty()) { - substitutionRulesBuilder_.dispose(); - substitutionRulesBuilder_ = null; - substitutionRules_ = other.substitutionRules_; - bitField0_ = (bitField0_ & ~0x00000200); - substitutionRulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSubstitutionRulesFieldBuilder() - : null; - } else { - substitutionRulesBuilder_.addAllMessages(other.substitutionRules_); - } - } - } - if (transformationRulesBuilder_ == null) { - if (!other.transformationRules_.isEmpty()) { - if (transformationRules_.isEmpty()) { - transformationRules_ = other.transformationRules_; - bitField0_ = (bitField0_ & ~0x00000400); - } else { - ensureTransformationRulesIsMutable(); - transformationRules_.addAll(other.transformationRules_); - } - onChanged(); + /** + * + * + *
+     * Optional. Identifies the cluster-scoped resources to restore from the
+     * Backup. Not specifying it means NO cluster resource will be restored.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setClusterResourceRestoreScope( + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope value) { + if (clusterResourceRestoreScopeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + clusterResourceRestoreScope_ = value; } else { - if (!other.transformationRules_.isEmpty()) { - if (transformationRulesBuilder_.isEmpty()) { - transformationRulesBuilder_.dispose(); - transformationRulesBuilder_ = null; - transformationRules_ = other.transformationRules_; - bitField0_ = (bitField0_ & ~0x00000400); - transformationRulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTransformationRulesFieldBuilder() - : null; - } else { - transformationRulesBuilder_.addAllMessages(other.transformationRules_); - } - } + clusterResourceRestoreScopeBuilder_.setMessage(value); } - switch (other.getNamespacedResourceRestoreScopeCase()) { - case ALL_NAMESPACES: - { - setAllNamespaces(other.getAllNamespaces()); - break; - } - case SELECTED_NAMESPACES: - { - mergeSelectedNamespaces(other.getSelectedNamespaces()); - break; - } - case SELECTED_APPLICATIONS: - { - mergeSelectedApplications(other.getSelectedApplications()); - break; - } - case NO_NAMESPACES: - { - setNoNamespaces(other.getNoNamespaces()); - break; - } - case EXCLUDED_NAMESPACES: - { - mergeExcludedNamespaces(other.getExcludedNamespaces()); - break; - } - case NAMESPACEDRESOURCERESTORESCOPE_NOT_SET: - { - break; - } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Identifies the cluster-scoped resources to restore from the
+     * Backup. Not specifying it means NO cluster resource will be restored.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setClusterResourceRestoreScope( + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder + builderForValue) { + if (clusterResourceRestoreScopeBuilder_ == null) { + clusterResourceRestoreScope_ = builderForValue.build(); + } else { + clusterResourceRestoreScopeBuilder_.setMessage(builderForValue.build()); } - this.mergeUnknownFields(other.getUnknownFields()); + bitField0_ |= 0x00000008; onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
+     * Optional. Identifies the cluster-scoped resources to restore from the
+     * Backup. Not specifying it means NO cluster resource will be restored.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeClusterResourceRestoreScope( + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope value) { + if (clusterResourceRestoreScopeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && clusterResourceRestoreScope_ != null + && clusterResourceRestoreScope_ + != com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + .getDefaultInstance()) { + getClusterResourceRestoreScopeBuilder().mergeFrom(value); + } else { + clusterResourceRestoreScope_ = value; + } + } else { + clusterResourceRestoreScopeBuilder_.mergeFrom(value); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - volumeDataRestorePolicy_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - clusterResourceConflictPolicy_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - namespacedResourceRestoreMode_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage( - getClusterResourceRestoreScopeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - namespacedResourceRestoreScope_ = input.readBool(); - namespacedResourceRestoreScopeCase_ = 5; - break; - } // case 40 - case 50: - { - input.readMessage( - getSelectedNamespacesFieldBuilder().getBuilder(), extensionRegistry); - namespacedResourceRestoreScopeCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage( - getSelectedApplicationsFieldBuilder().getBuilder(), extensionRegistry); - namespacedResourceRestoreScopeCase_ = 7; - break; - } // case 58 - case 66: - { - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule m = - input.readMessage( - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.parser(), - extensionRegistry); - if (substitutionRulesBuilder_ == null) { - ensureSubstitutionRulesIsMutable(); - substitutionRules_.add(m); - } else { - substitutionRulesBuilder_.addMessage(m); - } - break; - } // case 66 - case 72: - { - namespacedResourceRestoreScope_ = input.readBool(); - namespacedResourceRestoreScopeCase_ = 9; - break; - } // case 72 - case 82: - { - input.readMessage( - getExcludedNamespacesFieldBuilder().getBuilder(), extensionRegistry); - namespacedResourceRestoreScopeCase_ = 10; - break; - } // case 82 - case 90: - { - com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule m = - input.readMessage( - com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.parser(), - extensionRegistry); - if (transformationRulesBuilder_ == null) { - ensureTransformationRulesIsMutable(); - transformationRules_.add(m); - } else { - transformationRulesBuilder_.addMessage(m); - } - break; - } // case 90 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { + if (clusterResourceRestoreScope_ != null) { + bitField0_ |= 0x00000008; onChanged(); - } // finally + } return this; } - - private int namespacedResourceRestoreScopeCase_ = 0; - private java.lang.Object namespacedResourceRestoreScope_; - - public NamespacedResourceRestoreScopeCase getNamespacedResourceRestoreScopeCase() { - return NamespacedResourceRestoreScopeCase.forNumber(namespacedResourceRestoreScopeCase_); - } - - public Builder clearNamespacedResourceRestoreScope() { - namespacedResourceRestoreScopeCase_ = 0; - namespacedResourceRestoreScope_ = null; + /** + * + * + *
+     * Optional. Identifies the cluster-scoped resources to restore from the
+     * Backup. Not specifying it means NO cluster resource will be restored.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearClusterResourceRestoreScope() { + bitField0_ = (bitField0_ & ~0x00000008); + clusterResourceRestoreScope_ = null; + if (clusterResourceRestoreScopeBuilder_ != null) { + clusterResourceRestoreScopeBuilder_.dispose(); + clusterResourceRestoreScopeBuilder_ = null; + } onChanged(); return this; } - - private int bitField0_; - - private int volumeDataRestorePolicy_ = 0; /** * * *
-     * Optional. Specifies the mechanism to be used to restore volume data.
-     * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
-     * NO_VOLUME_DATA_RESTORATION).
+     * Optional. Identifies the cluster-scoped resources to restore from the
+     * Backup. Not specifying it means NO cluster resource will be restored.
      * 
* * - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The enum numeric value on the wire for volumeDataRestorePolicy. */ - @java.lang.Override - public int getVolumeDataRestorePolicyValue() { - return volumeDataRestorePolicy_; + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder + getClusterResourceRestoreScopeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getClusterResourceRestoreScopeFieldBuilder().getBuilder(); } /** * * *
-     * Optional. Specifies the mechanism to be used to restore volume data.
-     * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
-     * NO_VOLUME_DATA_RESTORATION).
+     * Optional. Identifies the cluster-scoped resources to restore from the
+     * Backup. Not specifying it means NO cluster resource will be restored.
      * 
* * - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder + getClusterResourceRestoreScopeOrBuilder() { + if (clusterResourceRestoreScopeBuilder_ != null) { + return clusterResourceRestoreScopeBuilder_.getMessageOrBuilder(); + } else { + return clusterResourceRestoreScope_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope + .getDefaultInstance() + : clusterResourceRestoreScope_; + } + } + /** * - * @param value The enum numeric value on the wire for volumeDataRestorePolicy to set. - * @return This builder for chaining. + * + *
+     * Optional. Identifies the cluster-scoped resources to restore from the
+     * Backup. Not specifying it means NO cluster resource will be restored.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setVolumeDataRestorePolicyValue(int value) { - volumeDataRestorePolicy_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope, + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder> + getClusterResourceRestoreScopeFieldBuilder() { + if (clusterResourceRestoreScopeBuilder_ == null) { + clusterResourceRestoreScopeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope, + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder>( + getClusterResourceRestoreScope(), getParentForChildren(), isClean()); + clusterResourceRestoreScope_ = null; + } + return clusterResourceRestoreScopeBuilder_; } + /** * * *
-     * Optional. Specifies the mechanism to be used to restore volume data.
-     * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
-     * NO_VOLUME_DATA_RESTORATION).
+     * Restore all namespaced resources in the Backup if set to "True".
+     * Specifying this field to "False" is an error.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * bool all_namespaces = 5; * - * @return The volumeDataRestorePolicy. + * @return Whether the allNamespaces field is set. */ - @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy - getVolumeDataRestorePolicy() { - com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy result = - com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.forNumber( - volumeDataRestorePolicy_); - return result == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.UNRECOGNIZED - : result; + public boolean hasAllNamespaces() { + return namespacedResourceRestoreScopeCase_ == 5; } /** * * *
-     * Optional. Specifies the mechanism to be used to restore volume data.
-     * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
-     * NO_VOLUME_DATA_RESTORATION).
+     * Restore all namespaced resources in the Backup if set to "True".
+     * Specifying this field to "False" is an error.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * bool all_namespaces = 5; * - * @param value The volumeDataRestorePolicy to set. - * @return This builder for chaining. + * @return The allNamespaces. */ - public Builder setVolumeDataRestorePolicy( - com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy value) { - if (value == null) { - throw new NullPointerException(); + public boolean getAllNamespaces() { + if (namespacedResourceRestoreScopeCase_ == 5) { + return (java.lang.Boolean) namespacedResourceRestoreScope_; } - bitField0_ |= 0x00000001; - volumeDataRestorePolicy_ = value.getNumber(); - onChanged(); - return this; + return false; } /** * * *
-     * Optional. Specifies the mechanism to be used to restore volume data.
-     * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
-     * NO_VOLUME_DATA_RESTORATION).
+     * Restore all namespaced resources in the Backup if set to "True".
+     * Specifying this field to "False" is an error.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * bool all_namespaces = 5; * + * @param value The allNamespaces to set. * @return This builder for chaining. */ - public Builder clearVolumeDataRestorePolicy() { - bitField0_ = (bitField0_ & ~0x00000001); - volumeDataRestorePolicy_ = 0; + public Builder setAllNamespaces(boolean value) { + + namespacedResourceRestoreScopeCase_ = 5; + namespacedResourceRestoreScope_ = value; onChanged(); return this; } - - private int clusterResourceConflictPolicy_ = 0; /** * * *
-     * Optional. Defines the behavior for handling the situation where
-     * cluster-scoped resources being restored already exist in the target
-     * cluster. This MUST be set to a value other than
-     * CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
-     * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope]
-     * is not empty.
+     * Restore all namespaced resources in the Backup if set to "True".
+     * Specifying this field to "False" is an error.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * bool all_namespaces = 5; * - * @return The enum numeric value on the wire for clusterResourceConflictPolicy. + * @return This builder for chaining. */ - @java.lang.Override - public int getClusterResourceConflictPolicyValue() { - return clusterResourceConflictPolicy_; + public Builder clearAllNamespaces() { + if (namespacedResourceRestoreScopeCase_ == 5) { + namespacedResourceRestoreScopeCase_ = 0; + namespacedResourceRestoreScope_ = null; + onChanged(); + } + return this; } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.Namespaces, + com.google.cloud.gkebackup.v1.Namespaces.Builder, + com.google.cloud.gkebackup.v1.NamespacesOrBuilder> + selectedNamespacesBuilder_; /** * * *
-     * Optional. Defines the behavior for handling the situation where
-     * cluster-scoped resources being restored already exist in the target
-     * cluster. This MUST be set to a value other than
-     * CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
-     * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope]
-     * is not empty.
+     * A list of selected Namespaces to restore from the Backup. The listed
+     * Namespaces and all resources contained in them will be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; * - * @param value The enum numeric value on the wire for clusterResourceConflictPolicy to set. - * @return This builder for chaining. + * @return Whether the selectedNamespaces field is set. */ - public Builder setClusterResourceConflictPolicyValue(int value) { - clusterResourceConflictPolicy_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + @java.lang.Override + public boolean hasSelectedNamespaces() { + return namespacedResourceRestoreScopeCase_ == 6; } /** * * *
-     * Optional. Defines the behavior for handling the situation where
-     * cluster-scoped resources being restored already exist in the target
-     * cluster. This MUST be set to a value other than
-     * CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
-     * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope]
-     * is not empty.
+     * A list of selected Namespaces to restore from the Backup. The listed
+     * Namespaces and all resources contained in them will be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; * - * @return The clusterResourceConflictPolicy. + * @return The selectedNamespaces. */ @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy - getClusterResourceConflictPolicy() { - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy result = - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.forNumber( - clusterResourceConflictPolicy_); - return result == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy.UNRECOGNIZED - : result; + public com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces() { + if (selectedNamespacesBuilder_ == null) { + if (namespacedResourceRestoreScopeCase_ == 6) { + return (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_; + } + return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); + } else { + if (namespacedResourceRestoreScopeCase_ == 6) { + return selectedNamespacesBuilder_.getMessage(); + } + return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); + } } /** * * *
-     * Optional. Defines the behavior for handling the situation where
-     * cluster-scoped resources being restored already exist in the target
-     * cluster. This MUST be set to a value other than
-     * CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
-     * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope]
-     * is not empty.
+     * A list of selected Namespaces to restore from the Backup. The listed
+     * Namespaces and all resources contained in them will be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The clusterResourceConflictPolicy to set. - * @return This builder for chaining. + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; */ - public Builder setClusterResourceConflictPolicy( - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy value) { - if (value == null) { - throw new NullPointerException(); + public Builder setSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces value) { + if (selectedNamespacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + namespacedResourceRestoreScope_ = value; + onChanged(); + } else { + selectedNamespacesBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; - clusterResourceConflictPolicy_ = value.getNumber(); - onChanged(); + namespacedResourceRestoreScopeCase_ = 6; return this; } /** * * *
-     * Optional. Defines the behavior for handling the situation where
-     * cluster-scoped resources being restored already exist in the target
-     * cluster. This MUST be set to a value other than
-     * CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
-     * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope]
-     * is not empty.
+     * A list of selected Namespaces to restore from the Backup. The listed
+     * Namespaces and all resources contained in them will be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; */ - public Builder clearClusterResourceConflictPolicy() { - bitField0_ = (bitField0_ & ~0x00000002); - clusterResourceConflictPolicy_ = 0; - onChanged(); + public Builder setSelectedNamespaces( + com.google.cloud.gkebackup.v1.Namespaces.Builder builderForValue) { + if (selectedNamespacesBuilder_ == null) { + namespacedResourceRestoreScope_ = builderForValue.build(); + onChanged(); + } else { + selectedNamespacesBuilder_.setMessage(builderForValue.build()); + } + namespacedResourceRestoreScopeCase_ = 6; return this; } - - private int namespacedResourceRestoreMode_ = 0; /** * * *
-     * Optional. Defines the behavior for handling the situation where sets of
-     * namespaced resources being restored already exist in the target cluster.
-     * This MUST be set to a value other than
-     * NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
+     * A list of selected Namespaces to restore from the Backup. The listed
+     * Namespaces and all resources contained in them will be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for namespacedResourceRestoreMode. + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; */ - @java.lang.Override - public int getNamespacedResourceRestoreModeValue() { - return namespacedResourceRestoreMode_; + public Builder mergeSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces value) { + if (selectedNamespacesBuilder_ == null) { + if (namespacedResourceRestoreScopeCase_ == 6 + && namespacedResourceRestoreScope_ + != com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance()) { + namespacedResourceRestoreScope_ = + com.google.cloud.gkebackup.v1.Namespaces.newBuilder( + (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_) + .mergeFrom(value) + .buildPartial(); + } else { + namespacedResourceRestoreScope_ = value; + } + onChanged(); + } else { + if (namespacedResourceRestoreScopeCase_ == 6) { + selectedNamespacesBuilder_.mergeFrom(value); + } else { + selectedNamespacesBuilder_.setMessage(value); + } + } + namespacedResourceRestoreScopeCase_ = 6; + return this; } /** * * *
-     * Optional. Defines the behavior for handling the situation where sets of
-     * namespaced resources being restored already exist in the target cluster.
-     * This MUST be set to a value other than
-     * NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
+     * A list of selected Namespaces to restore from the Backup. The listed
+     * Namespaces and all resources contained in them will be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The enum numeric value on the wire for namespacedResourceRestoreMode to set. - * @return This builder for chaining. + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; */ - public Builder setNamespacedResourceRestoreModeValue(int value) { - namespacedResourceRestoreMode_ = value; - bitField0_ |= 0x00000004; - onChanged(); + public Builder clearSelectedNamespaces() { + if (selectedNamespacesBuilder_ == null) { + if (namespacedResourceRestoreScopeCase_ == 6) { + namespacedResourceRestoreScopeCase_ = 0; + namespacedResourceRestoreScope_ = null; + onChanged(); + } + } else { + if (namespacedResourceRestoreScopeCase_ == 6) { + namespacedResourceRestoreScopeCase_ = 0; + namespacedResourceRestoreScope_ = null; + } + selectedNamespacesBuilder_.clear(); + } return this; } /** * * *
-     * Optional. Defines the behavior for handling the situation where sets of
-     * namespaced resources being restored already exist in the target cluster.
-     * This MUST be set to a value other than
-     * NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
+     * A list of selected Namespaces to restore from the Backup. The listed
+     * Namespaces and all resources contained in them will be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The namespacedResourceRestoreMode. + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; */ - @java.lang.Override - public com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode - getNamespacedResourceRestoreMode() { - com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode result = - com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.forNumber( - namespacedResourceRestoreMode_); - return result == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode.UNRECOGNIZED - : result; + public com.google.cloud.gkebackup.v1.Namespaces.Builder getSelectedNamespacesBuilder() { + return getSelectedNamespacesFieldBuilder().getBuilder(); } /** * * *
-     * Optional. Defines the behavior for handling the situation where sets of
-     * namespaced resources being restored already exist in the target cluster.
-     * This MUST be set to a value other than
-     * NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
+     * A list of selected Namespaces to restore from the Backup. The listed
+     * Namespaces and all resources contained in them will be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The namespacedResourceRestoreMode to set. - * @return This builder for chaining. + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; */ - public Builder setNamespacedResourceRestoreMode( - com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOrBuilder() { + if ((namespacedResourceRestoreScopeCase_ == 6) && (selectedNamespacesBuilder_ != null)) { + return selectedNamespacesBuilder_.getMessageOrBuilder(); + } else { + if (namespacedResourceRestoreScopeCase_ == 6) { + return (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_; + } + return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); } - bitField0_ |= 0x00000004; - namespacedResourceRestoreMode_ = value.getNumber(); - onChanged(); - return this; } /** * * *
-     * Optional. Defines the behavior for handling the situation where sets of
-     * namespaced resources being restored already exist in the target cluster.
-     * This MUST be set to a value other than
-     * NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
+     * A list of selected Namespaces to restore from the Backup. The listed
+     * Namespaces and all resources contained in them will be restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. + * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; */ - public Builder clearNamespacedResourceRestoreMode() { - bitField0_ = (bitField0_ & ~0x00000004); - namespacedResourceRestoreMode_ = 0; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.Namespaces, + com.google.cloud.gkebackup.v1.Namespaces.Builder, + com.google.cloud.gkebackup.v1.NamespacesOrBuilder> + getSelectedNamespacesFieldBuilder() { + if (selectedNamespacesBuilder_ == null) { + if (!(namespacedResourceRestoreScopeCase_ == 6)) { + namespacedResourceRestoreScope_ = + com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); + } + selectedNamespacesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.Namespaces, + com.google.cloud.gkebackup.v1.Namespaces.Builder, + com.google.cloud.gkebackup.v1.NamespacesOrBuilder>( + (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_, + getParentForChildren(), + isClean()); + namespacedResourceRestoreScope_ = null; + } + namespacedResourceRestoreScopeCase_ = 6; onChanged(); - return this; + return selectedNamespacesBuilder_; } - private com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - clusterResourceRestoreScope_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope, - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder, - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder> - clusterResourceRestoreScopeBuilder_; + com.google.cloud.gkebackup.v1.NamespacedNames, + com.google.cloud.gkebackup.v1.NamespacedNames.Builder, + com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> + selectedApplicationsBuilder_; /** * * *
-     * Optional. Identifies the cluster-scoped resources to restore from the
-     * Backup. Not specifying it means NO cluster resource will be restored.
+     * A list of selected ProtectedApplications to restore. The listed
+     * ProtectedApplications and all the resources to which they refer will be
+     * restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; * - * @return Whether the clusterResourceRestoreScope field is set. + * @return Whether the selectedApplications field is set. */ - public boolean hasClusterResourceRestoreScope() { - return ((bitField0_ & 0x00000008) != 0); + @java.lang.Override + public boolean hasSelectedApplications() { + return namespacedResourceRestoreScopeCase_ == 7; } /** * * *
-     * Optional. Identifies the cluster-scoped resources to restore from the
-     * Backup. Not specifying it means NO cluster resource will be restored.
+     * A list of selected ProtectedApplications to restore. The listed
+     * ProtectedApplications and all the resources to which they refer will be
+     * restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; * - * @return The clusterResourceRestoreScope. + * @return The selectedApplications. */ - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - getClusterResourceRestoreScope() { - if (clusterResourceRestoreScopeBuilder_ == null) { - return clusterResourceRestoreScope_ == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - .getDefaultInstance() - : clusterResourceRestoreScope_; + @java.lang.Override + public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications() { + if (selectedApplicationsBuilder_ == null) { + if (namespacedResourceRestoreScopeCase_ == 7) { + return (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_; + } + return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); } else { - return clusterResourceRestoreScopeBuilder_.getMessage(); + if (namespacedResourceRestoreScopeCase_ == 7) { + return selectedApplicationsBuilder_.getMessage(); + } + return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); } } /** * * *
-     * Optional. Identifies the cluster-scoped resources to restore from the
-     * Backup. Not specifying it means NO cluster resource will be restored.
+     * A list of selected ProtectedApplications to restore. The listed
+     * ProtectedApplications and all the resources to which they refer will be
+     * restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; */ - public Builder setClusterResourceRestoreScope( - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope value) { - if (clusterResourceRestoreScopeBuilder_ == null) { + public Builder setSelectedApplications(com.google.cloud.gkebackup.v1.NamespacedNames value) { + if (selectedApplicationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - clusterResourceRestoreScope_ = value; + namespacedResourceRestoreScope_ = value; + onChanged(); } else { - clusterResourceRestoreScopeBuilder_.setMessage(value); + selectedApplicationsBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; - onChanged(); + namespacedResourceRestoreScopeCase_ = 7; return this; } /** * * *
-     * Optional. Identifies the cluster-scoped resources to restore from the
-     * Backup. Not specifying it means NO cluster resource will be restored.
+     * A list of selected ProtectedApplications to restore. The listed
+     * ProtectedApplications and all the resources to which they refer will be
+     * restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; */ - public Builder setClusterResourceRestoreScope( - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder - builderForValue) { - if (clusterResourceRestoreScopeBuilder_ == null) { - clusterResourceRestoreScope_ = builderForValue.build(); + public Builder setSelectedApplications( + com.google.cloud.gkebackup.v1.NamespacedNames.Builder builderForValue) { + if (selectedApplicationsBuilder_ == null) { + namespacedResourceRestoreScope_ = builderForValue.build(); + onChanged(); } else { - clusterResourceRestoreScopeBuilder_.setMessage(builderForValue.build()); + selectedApplicationsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; - onChanged(); + namespacedResourceRestoreScopeCase_ = 7; return this; } /** * * *
-     * Optional. Identifies the cluster-scoped resources to restore from the
-     * Backup. Not specifying it means NO cluster resource will be restored.
+     * A list of selected ProtectedApplications to restore. The listed
+     * ProtectedApplications and all the resources to which they refer will be
+     * restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; */ - public Builder mergeClusterResourceRestoreScope( - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope value) { - if (clusterResourceRestoreScopeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && clusterResourceRestoreScope_ != null - && clusterResourceRestoreScope_ - != com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - .getDefaultInstance()) { - getClusterResourceRestoreScopeBuilder().mergeFrom(value); + public Builder mergeSelectedApplications(com.google.cloud.gkebackup.v1.NamespacedNames value) { + if (selectedApplicationsBuilder_ == null) { + if (namespacedResourceRestoreScopeCase_ == 7 + && namespacedResourceRestoreScope_ + != com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance()) { + namespacedResourceRestoreScope_ = + com.google.cloud.gkebackup.v1.NamespacedNames.newBuilder( + (com.google.cloud.gkebackup.v1.NamespacedNames) + namespacedResourceRestoreScope_) + .mergeFrom(value) + .buildPartial(); } else { - clusterResourceRestoreScope_ = value; + namespacedResourceRestoreScope_ = value; } - } else { - clusterResourceRestoreScopeBuilder_.mergeFrom(value); - } - if (clusterResourceRestoreScope_ != null) { - bitField0_ |= 0x00000008; onChanged(); + } else { + if (namespacedResourceRestoreScopeCase_ == 7) { + selectedApplicationsBuilder_.mergeFrom(value); + } else { + selectedApplicationsBuilder_.setMessage(value); + } } + namespacedResourceRestoreScopeCase_ = 7; return this; } /** * * *
-     * Optional. Identifies the cluster-scoped resources to restore from the
-     * Backup. Not specifying it means NO cluster resource will be restored.
+     * A list of selected ProtectedApplications to restore. The listed
+     * ProtectedApplications and all the resources to which they refer will be
+     * restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; */ - public Builder clearClusterResourceRestoreScope() { - bitField0_ = (bitField0_ & ~0x00000008); - clusterResourceRestoreScope_ = null; - if (clusterResourceRestoreScopeBuilder_ != null) { - clusterResourceRestoreScopeBuilder_.dispose(); - clusterResourceRestoreScopeBuilder_ = null; + public Builder clearSelectedApplications() { + if (selectedApplicationsBuilder_ == null) { + if (namespacedResourceRestoreScopeCase_ == 7) { + namespacedResourceRestoreScopeCase_ = 0; + namespacedResourceRestoreScope_ = null; + onChanged(); + } + } else { + if (namespacedResourceRestoreScopeCase_ == 7) { + namespacedResourceRestoreScopeCase_ = 0; + namespacedResourceRestoreScope_ = null; + } + selectedApplicationsBuilder_.clear(); } - onChanged(); return this; } /** * * *
-     * Optional. Identifies the cluster-scoped resources to restore from the
-     * Backup. Not specifying it means NO cluster resource will be restored.
+     * A list of selected ProtectedApplications to restore. The listed
+     * ProtectedApplications and all the resources to which they refer will be
+     * restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; */ - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder - getClusterResourceRestoreScopeBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getClusterResourceRestoreScopeFieldBuilder().getBuilder(); + public com.google.cloud.gkebackup.v1.NamespacedNames.Builder getSelectedApplicationsBuilder() { + return getSelectedApplicationsFieldBuilder().getBuilder(); } /** * * *
-     * Optional. Identifies the cluster-scoped resources to restore from the
-     * Backup. Not specifying it means NO cluster resource will be restored.
+     * A list of selected ProtectedApplications to restore. The listed
+     * ProtectedApplications and all the resources to which they refer will be
+     * restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; */ - public com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder - getClusterResourceRestoreScopeOrBuilder() { - if (clusterResourceRestoreScopeBuilder_ != null) { - return clusterResourceRestoreScopeBuilder_.getMessageOrBuilder(); + @java.lang.Override + public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder + getSelectedApplicationsOrBuilder() { + if ((namespacedResourceRestoreScopeCase_ == 7) && (selectedApplicationsBuilder_ != null)) { + return selectedApplicationsBuilder_.getMessageOrBuilder(); } else { - return clusterResourceRestoreScope_ == null - ? com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope - .getDefaultInstance() - : clusterResourceRestoreScope_; + if (namespacedResourceRestoreScopeCase_ == 7) { + return (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_; + } + return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); } } /** * * *
-     * Optional. Identifies the cluster-scoped resources to restore from the
-     * Backup. Not specifying it means NO cluster resource will be restored.
+     * A list of selected ProtectedApplications to restore. The listed
+     * ProtectedApplications and all the resources to which they refer will be
+     * restored.
      * 
* - * - * .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope, - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder, - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder> - getClusterResourceRestoreScopeFieldBuilder() { - if (clusterResourceRestoreScopeBuilder_ == null) { - clusterResourceRestoreScopeBuilder_ = + com.google.cloud.gkebackup.v1.NamespacedNames, + com.google.cloud.gkebackup.v1.NamespacedNames.Builder, + com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> + getSelectedApplicationsFieldBuilder() { + if (selectedApplicationsBuilder_ == null) { + if (!(namespacedResourceRestoreScopeCase_ == 7)) { + namespacedResourceRestoreScope_ = + com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); + } + selectedApplicationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope, - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope.Builder, - com.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeOrBuilder>( - getClusterResourceRestoreScope(), getParentForChildren(), isClean()); - clusterResourceRestoreScope_ = null; + com.google.cloud.gkebackup.v1.NamespacedNames, + com.google.cloud.gkebackup.v1.NamespacedNames.Builder, + com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>( + (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_, + getParentForChildren(), + isClean()); + namespacedResourceRestoreScope_ = null; } - return clusterResourceRestoreScopeBuilder_; + namespacedResourceRestoreScopeCase_ = 7; + onChanged(); + return selectedApplicationsBuilder_; } /** * * *
-     * Restore all namespaced resources in the Backup if set to "True".
-     * Specifying this field to "False" is an error.
+     * Do not restore any namespaced resources if set to "True".
+     * Specifying this field to "False" is not allowed.
      * 
* - * bool all_namespaces = 5; + * bool no_namespaces = 9; * - * @return Whether the allNamespaces field is set. + * @return Whether the noNamespaces field is set. */ - public boolean hasAllNamespaces() { - return namespacedResourceRestoreScopeCase_ == 5; + public boolean hasNoNamespaces() { + return namespacedResourceRestoreScopeCase_ == 9; } /** * * *
-     * Restore all namespaced resources in the Backup if set to "True".
-     * Specifying this field to "False" is an error.
+     * Do not restore any namespaced resources if set to "True".
+     * Specifying this field to "False" is not allowed.
      * 
* - * bool all_namespaces = 5; + * bool no_namespaces = 9; * - * @return The allNamespaces. + * @return The noNamespaces. */ - public boolean getAllNamespaces() { - if (namespacedResourceRestoreScopeCase_ == 5) { + public boolean getNoNamespaces() { + if (namespacedResourceRestoreScopeCase_ == 9) { return (java.lang.Boolean) namespacedResourceRestoreScope_; } return false; @@ -13262,18 +17507,18 @@ public boolean getAllNamespaces() { * * *
-     * Restore all namespaced resources in the Backup if set to "True".
-     * Specifying this field to "False" is an error.
+     * Do not restore any namespaced resources if set to "True".
+     * Specifying this field to "False" is not allowed.
      * 
* - * bool all_namespaces = 5; + * bool no_namespaces = 9; * - * @param value The allNamespaces to set. + * @param value The noNamespaces to set. * @return This builder for chaining. */ - public Builder setAllNamespaces(boolean value) { + public Builder setNoNamespaces(boolean value) { - namespacedResourceRestoreScopeCase_ = 5; + namespacedResourceRestoreScopeCase_ = 9; namespacedResourceRestoreScope_ = value; onChanged(); return this; @@ -13282,16 +17527,16 @@ public Builder setAllNamespaces(boolean value) { * * *
-     * Restore all namespaced resources in the Backup if set to "True".
-     * Specifying this field to "False" is an error.
+     * Do not restore any namespaced resources if set to "True".
+     * Specifying this field to "False" is not allowed.
      * 
* - * bool all_namespaces = 5; + * bool no_namespaces = 9; * * @return This builder for chaining. */ - public Builder clearAllNamespaces() { - if (namespacedResourceRestoreScopeCase_ == 5) { + public Builder clearNoNamespaces() { + if (namespacedResourceRestoreScopeCase_ == 9) { namespacedResourceRestoreScopeCase_ = 0; namespacedResourceRestoreScope_ = null; onChanged(); @@ -13303,45 +17548,45 @@ public Builder clearAllNamespaces() { com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, com.google.cloud.gkebackup.v1.NamespacesOrBuilder> - selectedNamespacesBuilder_; + excludedNamespacesBuilder_; /** * * *
-     * A list of selected Namespaces to restore from the Backup. The listed
-     * Namespaces and all resources contained in them will be restored.
+     * A list of selected namespaces excluded from restoration. All
+     * namespaces except those in this list will be restored.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; + * .google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10; * - * @return Whether the selectedNamespaces field is set. + * @return Whether the excludedNamespaces field is set. */ @java.lang.Override - public boolean hasSelectedNamespaces() { - return namespacedResourceRestoreScopeCase_ == 6; + public boolean hasExcludedNamespaces() { + return namespacedResourceRestoreScopeCase_ == 10; } /** * * *
-     * A list of selected Namespaces to restore from the Backup. The listed
-     * Namespaces and all resources contained in them will be restored.
+     * A list of selected namespaces excluded from restoration. All
+     * namespaces except those in this list will be restored.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; + * .google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10; * - * @return The selectedNamespaces. + * @return The excludedNamespaces. */ @java.lang.Override - public com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces() { - if (selectedNamespacesBuilder_ == null) { - if (namespacedResourceRestoreScopeCase_ == 6) { + public com.google.cloud.gkebackup.v1.Namespaces getExcludedNamespaces() { + if (excludedNamespacesBuilder_ == null) { + if (namespacedResourceRestoreScopeCase_ == 10) { return (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_; } return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); } else { - if (namespacedResourceRestoreScopeCase_ == 6) { - return selectedNamespacesBuilder_.getMessage(); + if (namespacedResourceRestoreScopeCase_ == 10) { + return excludedNamespacesBuilder_.getMessage(); } return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); } @@ -13350,59 +17595,59 @@ public com.google.cloud.gkebackup.v1.Namespaces getSelectedNamespaces() { * * *
-     * A list of selected Namespaces to restore from the Backup. The listed
-     * Namespaces and all resources contained in them will be restored.
+     * A list of selected namespaces excluded from restoration. All
+     * namespaces except those in this list will be restored.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; + * .google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10; */ - public Builder setSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces value) { - if (selectedNamespacesBuilder_ == null) { + public Builder setExcludedNamespaces(com.google.cloud.gkebackup.v1.Namespaces value) { + if (excludedNamespacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } namespacedResourceRestoreScope_ = value; onChanged(); } else { - selectedNamespacesBuilder_.setMessage(value); + excludedNamespacesBuilder_.setMessage(value); } - namespacedResourceRestoreScopeCase_ = 6; + namespacedResourceRestoreScopeCase_ = 10; return this; } /** * * *
-     * A list of selected Namespaces to restore from the Backup. The listed
-     * Namespaces and all resources contained in them will be restored.
+     * A list of selected namespaces excluded from restoration. All
+     * namespaces except those in this list will be restored.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; + * .google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10; */ - public Builder setSelectedNamespaces( + public Builder setExcludedNamespaces( com.google.cloud.gkebackup.v1.Namespaces.Builder builderForValue) { - if (selectedNamespacesBuilder_ == null) { + if (excludedNamespacesBuilder_ == null) { namespacedResourceRestoreScope_ = builderForValue.build(); onChanged(); } else { - selectedNamespacesBuilder_.setMessage(builderForValue.build()); + excludedNamespacesBuilder_.setMessage(builderForValue.build()); } - namespacedResourceRestoreScopeCase_ = 6; + namespacedResourceRestoreScopeCase_ = 10; return this; } /** * * *
-     * A list of selected Namespaces to restore from the Backup. The listed
-     * Namespaces and all resources contained in them will be restored.
+     * A list of selected namespaces excluded from restoration. All
+     * namespaces except those in this list will be restored.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; + * .google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10; */ - public Builder mergeSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces value) { - if (selectedNamespacesBuilder_ == null) { - if (namespacedResourceRestoreScopeCase_ == 6 + public Builder mergeExcludedNamespaces(com.google.cloud.gkebackup.v1.Namespaces value) { + if (excludedNamespacesBuilder_ == null) { + if (namespacedResourceRestoreScopeCase_ == 10 && namespacedResourceRestoreScope_ != com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance()) { namespacedResourceRestoreScope_ = @@ -13415,38 +17660,38 @@ public Builder mergeSelectedNamespaces(com.google.cloud.gkebackup.v1.Namespaces } onChanged(); } else { - if (namespacedResourceRestoreScopeCase_ == 6) { - selectedNamespacesBuilder_.mergeFrom(value); + if (namespacedResourceRestoreScopeCase_ == 10) { + excludedNamespacesBuilder_.mergeFrom(value); } else { - selectedNamespacesBuilder_.setMessage(value); + excludedNamespacesBuilder_.setMessage(value); } } - namespacedResourceRestoreScopeCase_ = 6; + namespacedResourceRestoreScopeCase_ = 10; return this; } /** * * *
-     * A list of selected Namespaces to restore from the Backup. The listed
-     * Namespaces and all resources contained in them will be restored.
+     * A list of selected namespaces excluded from restoration. All
+     * namespaces except those in this list will be restored.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; + * .google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10; */ - public Builder clearSelectedNamespaces() { - if (selectedNamespacesBuilder_ == null) { - if (namespacedResourceRestoreScopeCase_ == 6) { + public Builder clearExcludedNamespaces() { + if (excludedNamespacesBuilder_ == null) { + if (namespacedResourceRestoreScopeCase_ == 10) { namespacedResourceRestoreScopeCase_ = 0; namespacedResourceRestoreScope_ = null; onChanged(); } } else { - if (namespacedResourceRestoreScopeCase_ == 6) { + if (namespacedResourceRestoreScopeCase_ == 10) { namespacedResourceRestoreScopeCase_ = 0; namespacedResourceRestoreScope_ = null; } - selectedNamespacesBuilder_.clear(); + excludedNamespacesBuilder_.clear(); } return this; } @@ -13454,31 +17699,31 @@ public Builder clearSelectedNamespaces() { * * *
-     * A list of selected Namespaces to restore from the Backup. The listed
-     * Namespaces and all resources contained in them will be restored.
+     * A list of selected namespaces excluded from restoration. All
+     * namespaces except those in this list will be restored.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; + * .google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10; */ - public com.google.cloud.gkebackup.v1.Namespaces.Builder getSelectedNamespacesBuilder() { - return getSelectedNamespacesFieldBuilder().getBuilder(); + public com.google.cloud.gkebackup.v1.Namespaces.Builder getExcludedNamespacesBuilder() { + return getExcludedNamespacesFieldBuilder().getBuilder(); } /** * * *
-     * A list of selected Namespaces to restore from the Backup. The listed
-     * Namespaces and all resources contained in them will be restored.
+     * A list of selected namespaces excluded from restoration. All
+     * namespaces except those in this list will be restored.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; + * .google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10; */ @java.lang.Override - public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOrBuilder() { - if ((namespacedResourceRestoreScopeCase_ == 6) && (selectedNamespacesBuilder_ != null)) { - return selectedNamespacesBuilder_.getMessageOrBuilder(); + public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getExcludedNamespacesOrBuilder() { + if ((namespacedResourceRestoreScopeCase_ == 10) && (excludedNamespacesBuilder_ != null)) { + return excludedNamespacesBuilder_.getMessageOrBuilder(); } else { - if (namespacedResourceRestoreScopeCase_ == 6) { + if (namespacedResourceRestoreScopeCase_ == 10) { return (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_; } return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); @@ -13488,23 +17733,23 @@ public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOr * * *
-     * A list of selected Namespaces to restore from the Backup. The listed
-     * Namespaces and all resources contained in them will be restored.
+     * A list of selected namespaces excluded from restoration. All
+     * namespaces except those in this list will be restored.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6; + * .google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, com.google.cloud.gkebackup.v1.NamespacesOrBuilder> - getSelectedNamespacesFieldBuilder() { - if (selectedNamespacesBuilder_ == null) { - if (!(namespacedResourceRestoreScopeCase_ == 6)) { + getExcludedNamespacesFieldBuilder() { + if (excludedNamespacesBuilder_ == null) { + if (!(namespacedResourceRestoreScopeCase_ == 10)) { namespacedResourceRestoreScope_ = com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); } - selectedNamespacesBuilder_ = + excludedNamespacesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.gkebackup.v1.Namespaces, com.google.cloud.gkebackup.v1.Namespaces.Builder, @@ -13514,166 +17759,179 @@ public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getSelectedNamespacesOr isClean()); namespacedResourceRestoreScope_ = null; } - namespacedResourceRestoreScopeCase_ = 6; + namespacedResourceRestoreScopeCase_ = 10; onChanged(); - return selectedNamespacesBuilder_; + return excludedNamespacesBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedNames, - com.google.cloud.gkebackup.v1.NamespacedNames.Builder, - com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> - selectedApplicationsBuilder_; + private java.util.List + substitutionRules_ = java.util.Collections.emptyList(); + + private void ensureSubstitutionRulesIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + substitutionRules_ = + new java.util.ArrayList( + substitutionRules_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule, + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder> + substitutionRulesBuilder_; + /** * * *
-     * A list of selected ProtectedApplications to restore. The listed
-     * ProtectedApplications and all the resources to which they refer will be
-     * restored.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * substitution will occur.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; - * - * @return Whether the selectedApplications field is set. + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean hasSelectedApplications() { - return namespacedResourceRestoreScopeCase_ == 7; + public java.util.List + getSubstitutionRulesList() { + if (substitutionRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(substitutionRules_); + } else { + return substitutionRulesBuilder_.getMessageList(); + } } /** * * *
-     * A list of selected ProtectedApplications to restore. The listed
-     * ProtectedApplications and all the resources to which they refer will be
-     * restored.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * substitution will occur.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; - * - * @return The selectedApplications. + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedApplications() { - if (selectedApplicationsBuilder_ == null) { - if (namespacedResourceRestoreScopeCase_ == 7) { - return (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_; - } - return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); + public int getSubstitutionRulesCount() { + if (substitutionRulesBuilder_ == null) { + return substitutionRules_.size(); } else { - if (namespacedResourceRestoreScopeCase_ == 7) { - return selectedApplicationsBuilder_.getMessage(); - } - return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); + return substitutionRulesBuilder_.getCount(); } } /** * * *
-     * A list of selected ProtectedApplications to restore. The listed
-     * ProtectedApplications and all the resources to which they refer will be
-     * restored.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * substitution will occur.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSelectedApplications(com.google.cloud.gkebackup.v1.NamespacedNames value) { - if (selectedApplicationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - namespacedResourceRestoreScope_ = value; - onChanged(); + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getSubstitutionRules( + int index) { + if (substitutionRulesBuilder_ == null) { + return substitutionRules_.get(index); } else { - selectedApplicationsBuilder_.setMessage(value); + return substitutionRulesBuilder_.getMessage(index); } - namespacedResourceRestoreScopeCase_ = 7; - return this; } /** * * *
-     * A list of selected ProtectedApplications to restore. The listed
-     * ProtectedApplications and all the resources to which they refer will be
-     * restored.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * substitution will occur.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSelectedApplications( - com.google.cloud.gkebackup.v1.NamespacedNames.Builder builderForValue) { - if (selectedApplicationsBuilder_ == null) { - namespacedResourceRestoreScope_ = builderForValue.build(); + public Builder setSubstitutionRules( + int index, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule value) { + if (substitutionRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubstitutionRulesIsMutable(); + substitutionRules_.set(index, value); onChanged(); } else { - selectedApplicationsBuilder_.setMessage(builderForValue.build()); + substitutionRulesBuilder_.setMessage(index, value); } - namespacedResourceRestoreScopeCase_ = 7; return this; } /** * * *
-     * A list of selected ProtectedApplications to restore. The listed
-     * ProtectedApplications and all the resources to which they refer will be
-     * restored.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * substitution will occur.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeSelectedApplications(com.google.cloud.gkebackup.v1.NamespacedNames value) { - if (selectedApplicationsBuilder_ == null) { - if (namespacedResourceRestoreScopeCase_ == 7 - && namespacedResourceRestoreScope_ - != com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance()) { - namespacedResourceRestoreScope_ = - com.google.cloud.gkebackup.v1.NamespacedNames.newBuilder( - (com.google.cloud.gkebackup.v1.NamespacedNames) - namespacedResourceRestoreScope_) - .mergeFrom(value) - .buildPartial(); - } else { - namespacedResourceRestoreScope_ = value; - } + public Builder setSubstitutionRules( + int index, + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder builderForValue) { + if (substitutionRulesBuilder_ == null) { + ensureSubstitutionRulesIsMutable(); + substitutionRules_.set(index, builderForValue.build()); onChanged(); } else { - if (namespacedResourceRestoreScopeCase_ == 7) { - selectedApplicationsBuilder_.mergeFrom(value); - } else { - selectedApplicationsBuilder_.setMessage(value); - } + substitutionRulesBuilder_.setMessage(index, builderForValue.build()); } - namespacedResourceRestoreScopeCase_ = 7; return this; } /** * * *
-     * A list of selected ProtectedApplications to restore. The listed
-     * ProtectedApplications and all the resources to which they refer will be
-     * restored.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * substitution will occur.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearSelectedApplications() { - if (selectedApplicationsBuilder_ == null) { - if (namespacedResourceRestoreScopeCase_ == 7) { - namespacedResourceRestoreScopeCase_ = 0; - namespacedResourceRestoreScope_ = null; - onChanged(); - } - } else { - if (namespacedResourceRestoreScopeCase_ == 7) { - namespacedResourceRestoreScopeCase_ = 0; - namespacedResourceRestoreScope_ = null; + public Builder addSubstitutionRules( + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule value) { + if (substitutionRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - selectedApplicationsBuilder_.clear(); + ensureSubstitutionRulesIsMutable(); + substitutionRules_.add(value); + onChanged(); + } else { + substitutionRulesBuilder_.addMessage(value); } return this; } @@ -13681,387 +17939,425 @@ public Builder clearSelectedApplications() { * * *
-     * A list of selected ProtectedApplications to restore. The listed
-     * ProtectedApplications and all the resources to which they refer will be
-     * restored.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * substitution will occur.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.gkebackup.v1.NamespacedNames.Builder getSelectedApplicationsBuilder() { - return getSelectedApplicationsFieldBuilder().getBuilder(); + public Builder addSubstitutionRules( + int index, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule value) { + if (substitutionRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubstitutionRulesIsMutable(); + substitutionRules_.add(index, value); + onChanged(); + } else { + substitutionRulesBuilder_.addMessage(index, value); + } + return this; } /** * * *
-     * A list of selected ProtectedApplications to restore. The listed
-     * ProtectedApplications and all the resources to which they refer will be
-     * restored.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * substitution will occur.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder - getSelectedApplicationsOrBuilder() { - if ((namespacedResourceRestoreScopeCase_ == 7) && (selectedApplicationsBuilder_ != null)) { - return selectedApplicationsBuilder_.getMessageOrBuilder(); + public Builder addSubstitutionRules( + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder builderForValue) { + if (substitutionRulesBuilder_ == null) { + ensureSubstitutionRulesIsMutable(); + substitutionRules_.add(builderForValue.build()); + onChanged(); } else { - if (namespacedResourceRestoreScopeCase_ == 7) { - return (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_; - } - return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); + substitutionRulesBuilder_.addMessage(builderForValue.build()); } + return this; } /** * * *
-     * A list of selected ProtectedApplications to restore. The listed
-     * ProtectedApplications and all the resources to which they refer will be
-     * restored.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * substitution will occur.
      * 
* - * .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedNames, - com.google.cloud.gkebackup.v1.NamespacedNames.Builder, - com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> - getSelectedApplicationsFieldBuilder() { - if (selectedApplicationsBuilder_ == null) { - if (!(namespacedResourceRestoreScopeCase_ == 7)) { - namespacedResourceRestoreScope_ = - com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); - } - selectedApplicationsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.NamespacedNames, - com.google.cloud.gkebackup.v1.NamespacedNames.Builder, - com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>( - (com.google.cloud.gkebackup.v1.NamespacedNames) namespacedResourceRestoreScope_, - getParentForChildren(), - isClean()); - namespacedResourceRestoreScope_ = null; + public Builder addSubstitutionRules( + int index, + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder builderForValue) { + if (substitutionRulesBuilder_ == null) { + ensureSubstitutionRulesIsMutable(); + substitutionRules_.add(index, builderForValue.build()); + onChanged(); + } else { + substitutionRulesBuilder_.addMessage(index, builderForValue.build()); } - namespacedResourceRestoreScopeCase_ = 7; - onChanged(); - return selectedApplicationsBuilder_; + return this; } - /** * * *
-     * Do not restore any namespaced resources if set to "True".
-     * Specifying this field to "False" is not allowed.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * substitution will occur.
      * 
* - * bool no_namespaces = 9; - * - * @return Whether the noNamespaces field is set. + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public boolean hasNoNamespaces() { - return namespacedResourceRestoreScopeCase_ == 9; + public Builder addAllSubstitutionRules( + java.lang.Iterable + values) { + if (substitutionRulesBuilder_ == null) { + ensureSubstitutionRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, substitutionRules_); + onChanged(); + } else { + substitutionRulesBuilder_.addAllMessages(values); + } + return this; } /** * * *
-     * Do not restore any namespaced resources if set to "True".
-     * Specifying this field to "False" is not allowed.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * substitution will occur.
      * 
* - * bool no_namespaces = 9; - * - * @return The noNamespaces. + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public boolean getNoNamespaces() { - if (namespacedResourceRestoreScopeCase_ == 9) { - return (java.lang.Boolean) namespacedResourceRestoreScope_; + public Builder clearSubstitutionRules() { + if (substitutionRulesBuilder_ == null) { + substitutionRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + substitutionRulesBuilder_.clear(); } - return false; + return this; } /** * * *
-     * Do not restore any namespaced resources if set to "True".
-     * Specifying this field to "False" is not allowed.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * substitution will occur.
      * 
* - * bool no_namespaces = 9; - * - * @param value The noNamespaces to set. - * @return This builder for chaining. + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setNoNamespaces(boolean value) { - - namespacedResourceRestoreScopeCase_ = 9; - namespacedResourceRestoreScope_ = value; - onChanged(); + public Builder removeSubstitutionRules(int index) { + if (substitutionRulesBuilder_ == null) { + ensureSubstitutionRulesIsMutable(); + substitutionRules_.remove(index); + onChanged(); + } else { + substitutionRulesBuilder_.remove(index); + } return this; } /** * * *
-     * Do not restore any namespaced resources if set to "True".
-     * Specifying this field to "False" is not allowed.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * substitution will occur.
      * 
* - * bool no_namespaces = 9; - * - * @return This builder for chaining. + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearNoNamespaces() { - if (namespacedResourceRestoreScopeCase_ == 9) { - namespacedResourceRestoreScopeCase_ = 0; - namespacedResourceRestoreScope_ = null; - onChanged(); - } - return this; + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder + getSubstitutionRulesBuilder(int index) { + return getSubstitutionRulesFieldBuilder().getBuilder(index); } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Namespaces, - com.google.cloud.gkebackup.v1.Namespaces.Builder, - com.google.cloud.gkebackup.v1.NamespacesOrBuilder> - excludedNamespacesBuilder_; /** * * *
-     * A list of selected namespaces excluded from restoration. All
-     * namespaces except those in this list will be restored.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * substitution will occur.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10; - * - * @return Whether the excludedNamespaces field is set. + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean hasExcludedNamespaces() { - return namespacedResourceRestoreScopeCase_ == 10; + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder + getSubstitutionRulesOrBuilder(int index) { + if (substitutionRulesBuilder_ == null) { + return substitutionRules_.get(index); + } else { + return substitutionRulesBuilder_.getMessageOrBuilder(index); + } } /** * * *
-     * A list of selected namespaces excluded from restoration. All
-     * namespaces except those in this list will be restored.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * substitution will occur.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10; - * - * @return The excludedNamespaces. + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public com.google.cloud.gkebackup.v1.Namespaces getExcludedNamespaces() { - if (excludedNamespacesBuilder_ == null) { - if (namespacedResourceRestoreScopeCase_ == 10) { - return (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_; - } - return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); + public java.util.List< + ? extends com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder> + getSubstitutionRulesOrBuilderList() { + if (substitutionRulesBuilder_ != null) { + return substitutionRulesBuilder_.getMessageOrBuilderList(); } else { - if (namespacedResourceRestoreScopeCase_ == 10) { - return excludedNamespacesBuilder_.getMessage(); - } - return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); + return java.util.Collections.unmodifiableList(substitutionRules_); } } /** * * *
-     * A list of selected namespaces excluded from restoration. All
-     * namespaces except those in this list will be restored.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * substitution will occur.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setExcludedNamespaces(com.google.cloud.gkebackup.v1.Namespaces value) { - if (excludedNamespacesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - namespacedResourceRestoreScope_ = value; - onChanged(); - } else { - excludedNamespacesBuilder_.setMessage(value); - } - namespacedResourceRestoreScopeCase_ = 10; - return this; + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder + addSubstitutionRulesBuilder() { + return getSubstitutionRulesFieldBuilder() + .addBuilder( + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.getDefaultInstance()); } /** * * *
-     * A list of selected namespaces excluded from restoration. All
-     * namespaces except those in this list will be restored.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * substitution will occur.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setExcludedNamespaces( - com.google.cloud.gkebackup.v1.Namespaces.Builder builderForValue) { - if (excludedNamespacesBuilder_ == null) { - namespacedResourceRestoreScope_ = builderForValue.build(); - onChanged(); - } else { - excludedNamespacesBuilder_.setMessage(builderForValue.build()); - } - namespacedResourceRestoreScopeCase_ = 10; - return this; + public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder + addSubstitutionRulesBuilder(int index) { + return getSubstitutionRulesFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.getDefaultInstance()); } /** * * *
-     * A list of selected namespaces excluded from restoration. All
-     * namespaces except those in this list will be restored.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * substitution will occur.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeExcludedNamespaces(com.google.cloud.gkebackup.v1.Namespaces value) { - if (excludedNamespacesBuilder_ == null) { - if (namespacedResourceRestoreScopeCase_ == 10 - && namespacedResourceRestoreScope_ - != com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance()) { - namespacedResourceRestoreScope_ = - com.google.cloud.gkebackup.v1.Namespaces.newBuilder( - (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_) - .mergeFrom(value) - .buildPartial(); - } else { - namespacedResourceRestoreScope_ = value; - } - onChanged(); - } else { - if (namespacedResourceRestoreScopeCase_ == 10) { - excludedNamespacesBuilder_.mergeFrom(value); - } else { - excludedNamespacesBuilder_.setMessage(value); - } + public java.util.List + getSubstitutionRulesBuilderList() { + return getSubstitutionRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule, + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder> + getSubstitutionRulesFieldBuilder() { + if (substitutionRulesBuilder_ == null) { + substitutionRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule, + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder>( + substitutionRules_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + substitutionRules_ = null; + } + return substitutionRulesBuilder_; + } + + private java.util.List + transformationRules_ = java.util.Collections.emptyList(); + + private void ensureTransformationRulesIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + transformationRules_ = + new java.util.ArrayList( + transformationRules_); + bitField0_ |= 0x00000400; } - namespacedResourceRestoreScopeCase_ = 10; - return this; } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule, + com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleOrBuilder> + transformationRulesBuilder_; + /** * * *
-     * A list of selected namespaces excluded from restoration. All
-     * namespaces except those in this list will be restored.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * transformation will occur.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearExcludedNamespaces() { - if (excludedNamespacesBuilder_ == null) { - if (namespacedResourceRestoreScopeCase_ == 10) { - namespacedResourceRestoreScopeCase_ = 0; - namespacedResourceRestoreScope_ = null; - onChanged(); - } + public java.util.List + getTransformationRulesList() { + if (transformationRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(transformationRules_); } else { - if (namespacedResourceRestoreScopeCase_ == 10) { - namespacedResourceRestoreScopeCase_ = 0; - namespacedResourceRestoreScope_ = null; - } - excludedNamespacesBuilder_.clear(); + return transformationRulesBuilder_.getMessageList(); } - return this; } /** * * *
-     * A list of selected namespaces excluded from restoration. All
-     * namespaces except those in this list will be restored.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * transformation will occur.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.gkebackup.v1.Namespaces.Builder getExcludedNamespacesBuilder() { - return getExcludedNamespacesFieldBuilder().getBuilder(); + public int getTransformationRulesCount() { + if (transformationRulesBuilder_ == null) { + return transformationRules_.size(); + } else { + return transformationRulesBuilder_.getCount(); + } } /** * * *
-     * A list of selected namespaces excluded from restoration. All
-     * namespaces except those in this list will be restored.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * transformation will occur.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public com.google.cloud.gkebackup.v1.NamespacesOrBuilder getExcludedNamespacesOrBuilder() { - if ((namespacedResourceRestoreScopeCase_ == 10) && (excludedNamespacesBuilder_ != null)) { - return excludedNamespacesBuilder_.getMessageOrBuilder(); + public com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule getTransformationRules( + int index) { + if (transformationRulesBuilder_ == null) { + return transformationRules_.get(index); } else { - if (namespacedResourceRestoreScopeCase_ == 10) { - return (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_; - } - return com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); + return transformationRulesBuilder_.getMessage(index); } } /** * * *
-     * A list of selected namespaces excluded from restoration. All
-     * namespaces except those in this list will be restored.
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * transformation will occur.
      * 
* - * .google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10; + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Namespaces, - com.google.cloud.gkebackup.v1.Namespaces.Builder, - com.google.cloud.gkebackup.v1.NamespacesOrBuilder> - getExcludedNamespacesFieldBuilder() { - if (excludedNamespacesBuilder_ == null) { - if (!(namespacedResourceRestoreScopeCase_ == 10)) { - namespacedResourceRestoreScope_ = - com.google.cloud.gkebackup.v1.Namespaces.getDefaultInstance(); - } - excludedNamespacesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkebackup.v1.Namespaces, - com.google.cloud.gkebackup.v1.Namespaces.Builder, - com.google.cloud.gkebackup.v1.NamespacesOrBuilder>( - (com.google.cloud.gkebackup.v1.Namespaces) namespacedResourceRestoreScope_, - getParentForChildren(), - isClean()); - namespacedResourceRestoreScope_ = null; - } - namespacedResourceRestoreScopeCase_ = 10; - onChanged(); - return excludedNamespacesBuilder_; - } - - private java.util.List - substitutionRules_ = java.util.Collections.emptyList(); - - private void ensureSubstitutionRulesIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { - substitutionRules_ = - new java.util.ArrayList( - substitutionRules_); - bitField0_ |= 0x00000200; + public Builder setTransformationRules( + int index, com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule value) { + if (transformationRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTransformationRulesIsMutable(); + transformationRules_.set(index, value); + onChanged(); + } else { + transformationRulesBuilder_.setMessage(index, value); } + return this; } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule, - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder, - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder> - substitutionRulesBuilder_; - /** * * @@ -14070,20 +18366,24 @@ private void ensureSubstitutionRulesIsMutable() { * resources as they are selected for restoration from a Backup. Rules are * executed in order defined - this order matters, as changes made by a rule * may impact the filtering logic of subsequent rules. An empty list means no - * substitution will occur. + * transformation will occur. *
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getSubstitutionRulesList() { - if (substitutionRulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(substitutionRules_); + public Builder setTransformationRules( + int index, + com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.Builder builderForValue) { + if (transformationRulesBuilder_ == null) { + ensureTransformationRulesIsMutable(); + transformationRules_.set(index, builderForValue.build()); + onChanged(); } else { - return substitutionRulesBuilder_.getMessageList(); + transformationRulesBuilder_.setMessage(index, builderForValue.build()); } + return this; } /** * @@ -14093,19 +18393,26 @@ private void ensureSubstitutionRulesIsMutable() { * resources as they are selected for restoration from a Backup. Rules are * executed in order defined - this order matters, as changes made by a rule * may impact the filtering logic of subsequent rules. An empty list means no - * substitution will occur. + * transformation will occur. *
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ - public int getSubstitutionRulesCount() { - if (substitutionRulesBuilder_ == null) { - return substitutionRules_.size(); + public Builder addTransformationRules( + com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule value) { + if (transformationRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTransformationRulesIsMutable(); + transformationRules_.add(value); + onChanged(); } else { - return substitutionRulesBuilder_.getCount(); + transformationRulesBuilder_.addMessage(value); } + return this; } /** * @@ -14115,20 +18422,26 @@ public int getSubstitutionRulesCount() { * resources as they are selected for restoration from a Backup. Rules are * executed in order defined - this order matters, as changes made by a rule * may impact the filtering logic of subsequent rules. An empty list means no - * substitution will occur. + * transformation will occur. *
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getSubstitutionRules( - int index) { - if (substitutionRulesBuilder_ == null) { - return substitutionRules_.get(index); + public Builder addTransformationRules( + int index, com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule value) { + if (transformationRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTransformationRulesIsMutable(); + transformationRules_.add(index, value); + onChanged(); } else { - return substitutionRulesBuilder_.getMessage(index); + transformationRulesBuilder_.addMessage(index, value); } + return this; } /** * @@ -14138,24 +18451,21 @@ public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule getSubstitut * resources as they are selected for restoration from a Backup. Rules are * executed in order defined - this order matters, as changes made by a rule * may impact the filtering logic of subsequent rules. An empty list means no - * substitution will occur. + * transformation will occur. *
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setSubstitutionRules( - int index, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule value) { - if (substitutionRulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubstitutionRulesIsMutable(); - substitutionRules_.set(index, value); + public Builder addTransformationRules( + com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.Builder builderForValue) { + if (transformationRulesBuilder_ == null) { + ensureTransformationRulesIsMutable(); + transformationRules_.add(builderForValue.build()); onChanged(); } else { - substitutionRulesBuilder_.setMessage(index, value); + transformationRulesBuilder_.addMessage(builderForValue.build()); } return this; } @@ -14167,22 +18477,22 @@ public Builder setSubstitutionRules( * resources as they are selected for restoration from a Backup. Rules are * executed in order defined - this order matters, as changes made by a rule * may impact the filtering logic of subsequent rules. An empty list means no - * substitution will occur. + * transformation will occur. *
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setSubstitutionRules( + public Builder addTransformationRules( int index, - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder builderForValue) { - if (substitutionRulesBuilder_ == null) { - ensureSubstitutionRulesIsMutable(); - substitutionRules_.set(index, builderForValue.build()); + com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.Builder builderForValue) { + if (transformationRulesBuilder_ == null) { + ensureTransformationRulesIsMutable(); + transformationRules_.add(index, builderForValue.build()); onChanged(); } else { - substitutionRulesBuilder_.setMessage(index, builderForValue.build()); + transformationRulesBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -14194,24 +18504,22 @@ public Builder setSubstitutionRules( * resources as they are selected for restoration from a Backup. Rules are * executed in order defined - this order matters, as changes made by a rule * may impact the filtering logic of subsequent rules. An empty list means no - * substitution will occur. + * transformation will occur. *
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addSubstitutionRules( - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule value) { - if (substitutionRulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubstitutionRulesIsMutable(); - substitutionRules_.add(value); + public Builder addAllTransformationRules( + java.lang.Iterable + values) { + if (transformationRulesBuilder_ == null) { + ensureTransformationRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transformationRules_); onChanged(); } else { - substitutionRulesBuilder_.addMessage(value); + transformationRulesBuilder_.addAllMessages(values); } return this; } @@ -14223,24 +18531,20 @@ public Builder addSubstitutionRules( * resources as they are selected for restoration from a Backup. Rules are * executed in order defined - this order matters, as changes made by a rule * may impact the filtering logic of subsequent rules. An empty list means no - * substitution will occur. + * transformation will occur. *
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addSubstitutionRules( - int index, com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule value) { - if (substitutionRulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubstitutionRulesIsMutable(); - substitutionRules_.add(index, value); + public Builder clearTransformationRules() { + if (transformationRulesBuilder_ == null) { + transformationRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { - substitutionRulesBuilder_.addMessage(index, value); + transformationRulesBuilder_.clear(); } return this; } @@ -14252,21 +18556,20 @@ public Builder addSubstitutionRules( * resources as they are selected for restoration from a Backup. Rules are * executed in order defined - this order matters, as changes made by a rule * may impact the filtering logic of subsequent rules. An empty list means no - * substitution will occur. + * transformation will occur. *
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addSubstitutionRules( - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder builderForValue) { - if (substitutionRulesBuilder_ == null) { - ensureSubstitutionRulesIsMutable(); - substitutionRules_.add(builderForValue.build()); + public Builder removeTransformationRules(int index) { + if (transformationRulesBuilder_ == null) { + ensureTransformationRulesIsMutable(); + transformationRules_.remove(index); onChanged(); } else { - substitutionRulesBuilder_.addMessage(builderForValue.build()); + transformationRulesBuilder_.remove(index); } return this; } @@ -14278,24 +18581,39 @@ public Builder addSubstitutionRules( * resources as they are selected for restoration from a Backup. Rules are * executed in order defined - this order matters, as changes made by a rule * may impact the filtering logic of subsequent rules. An empty list means no - * substitution will occur. + * transformation will occur. *
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addSubstitutionRules( - int index, - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder builderForValue) { - if (substitutionRulesBuilder_ == null) { - ensureSubstitutionRulesIsMutable(); - substitutionRules_.add(index, builderForValue.build()); - onChanged(); + public com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.Builder + getTransformationRulesBuilder(int index) { + return getTransformationRulesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * transformation will occur.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleOrBuilder + getTransformationRulesOrBuilder(int index) { + if (transformationRulesBuilder_ == null) { + return transformationRules_.get(index); } else { - substitutionRulesBuilder_.addMessage(index, builderForValue.build()); + return transformationRulesBuilder_.getMessageOrBuilder(index); } - return this; } /** * @@ -14305,24 +18623,21 @@ public Builder addSubstitutionRules( * resources as they are selected for restoration from a Backup. Rules are * executed in order defined - this order matters, as changes made by a rule * may impact the filtering logic of subsequent rules. An empty list means no - * substitution will occur. + * transformation will occur. *
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addAllSubstitutionRules( - java.lang.Iterable - values) { - if (substitutionRulesBuilder_ == null) { - ensureSubstitutionRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, substitutionRules_); - onChanged(); + public java.util.List< + ? extends com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleOrBuilder> + getTransformationRulesOrBuilderList() { + if (transformationRulesBuilder_ != null) { + return transformationRulesBuilder_.getMessageOrBuilderList(); } else { - substitutionRulesBuilder_.addAllMessages(values); + return java.util.Collections.unmodifiableList(transformationRules_); } - return this; } /** * @@ -14332,309 +18647,395 @@ public Builder addAllSubstitutionRules( * resources as they are selected for restoration from a Backup. Rules are * executed in order defined - this order matters, as changes made by a rule * may impact the filtering logic of subsequent rules. An empty list means no - * substitution will occur. + * transformation will occur. + *
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.Builder + addTransformationRulesBuilder() { + return getTransformationRulesFieldBuilder() + .addBuilder( + com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * transformation will occur.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.Builder + addTransformationRulesBuilder(int index) { + return getTransformationRulesFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. A list of transformation rules to be applied against Kubernetes
+     * resources as they are selected for restoration from a Backup. Rules are
+     * executed in order defined - this order matters, as changes made by a rule
+     * may impact the filtering logic of subsequent rules. An empty list means no
+     * transformation will occur.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearSubstitutionRules() { - if (substitutionRulesBuilder_ == null) { - substitutionRules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - } else { - substitutionRulesBuilder_.clear(); + public java.util.List + getTransformationRulesBuilderList() { + return getTransformationRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule, + com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleOrBuilder> + getTransformationRulesFieldBuilder() { + if (transformationRulesBuilder_ == null) { + transformationRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule, + com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleOrBuilder>( + transformationRules_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); + transformationRules_ = null; + } + return transformationRulesBuilder_; + } + + private java.util.List< + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding> + volumeDataRestorePolicyBindings_ = java.util.Collections.emptyList(); + + private void ensureVolumeDataRestorePolicyBindingsIsMutable() { + if (!((bitField0_ & 0x00000800) != 0)) { + volumeDataRestorePolicyBindings_ = + new java.util.ArrayList< + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding>( + volumeDataRestorePolicyBindings_); + bitField0_ |= 0x00000800; } - return this; } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding, + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBindingOrBuilder> + volumeDataRestorePolicyBindingsBuilder_; + /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * substitution will occur.
+     * Optional. A table that binds volumes by their scope to a restore policy.
+     * Bindings must have a unique scope. Any volumes not scoped in the bindings
+     * are subject to the policy defined in volume_data_restore_policy.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder removeSubstitutionRules(int index) { - if (substitutionRulesBuilder_ == null) { - ensureSubstitutionRulesIsMutable(); - substitutionRules_.remove(index); - onChanged(); + public java.util.List< + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding> + getVolumeDataRestorePolicyBindingsList() { + if (volumeDataRestorePolicyBindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(volumeDataRestorePolicyBindings_); } else { - substitutionRulesBuilder_.remove(index); + return volumeDataRestorePolicyBindingsBuilder_.getMessageList(); } - return this; } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * substitution will occur.
+     * Optional. A table that binds volumes by their scope to a restore policy.
+     * Bindings must have a unique scope. Any volumes not scoped in the bindings
+     * are subject to the policy defined in volume_data_restore_policy.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder - getSubstitutionRulesBuilder(int index) { - return getSubstitutionRulesFieldBuilder().getBuilder(index); + public int getVolumeDataRestorePolicyBindingsCount() { + if (volumeDataRestorePolicyBindingsBuilder_ == null) { + return volumeDataRestorePolicyBindings_.size(); + } else { + return volumeDataRestorePolicyBindingsBuilder_.getCount(); + } } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * substitution will occur.
+     * Optional. A table that binds volumes by their scope to a restore policy.
+     * Bindings must have a unique scope. Any volumes not scoped in the bindings
+     * are subject to the policy defined in volume_data_restore_policy.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder - getSubstitutionRulesOrBuilder(int index) { - if (substitutionRulesBuilder_ == null) { - return substitutionRules_.get(index); + public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + getVolumeDataRestorePolicyBindings(int index) { + if (volumeDataRestorePolicyBindingsBuilder_ == null) { + return volumeDataRestorePolicyBindings_.get(index); } else { - return substitutionRulesBuilder_.getMessageOrBuilder(index); + return volumeDataRestorePolicyBindingsBuilder_.getMessage(index); } } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * substitution will occur.
+     * Optional. A table that binds volumes by their scope to a restore policy.
+     * Bindings must have a unique scope. Any volumes not scoped in the bindings
+     * are subject to the policy defined in volume_data_restore_policy.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List< - ? extends com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder> - getSubstitutionRulesOrBuilderList() { - if (substitutionRulesBuilder_ != null) { - return substitutionRulesBuilder_.getMessageOrBuilderList(); + public Builder setVolumeDataRestorePolicyBindings( + int index, + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding value) { + if (volumeDataRestorePolicyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumeDataRestorePolicyBindingsIsMutable(); + volumeDataRestorePolicyBindings_.set(index, value); + onChanged(); } else { - return java.util.Collections.unmodifiableList(substitutionRules_); + volumeDataRestorePolicyBindingsBuilder_.setMessage(index, value); } + return this; } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * substitution will occur.
+     * Optional. A table that binds volumes by their scope to a restore policy.
+     * Bindings must have a unique scope. Any volumes not scoped in the bindings
+     * are subject to the policy defined in volume_data_restore_policy.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder - addSubstitutionRulesBuilder() { - return getSubstitutionRulesFieldBuilder() - .addBuilder( - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.getDefaultInstance()); + public Builder setVolumeDataRestorePolicyBindings( + int index, + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding.Builder + builderForValue) { + if (volumeDataRestorePolicyBindingsBuilder_ == null) { + ensureVolumeDataRestorePolicyBindingsIsMutable(); + volumeDataRestorePolicyBindings_.set(index, builderForValue.build()); + onChanged(); + } else { + volumeDataRestorePolicyBindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * substitution will occur.
+     * Optional. A table that binds volumes by their scope to a restore policy.
+     * Bindings must have a unique scope. Any volumes not scoped in the bindings
+     * are subject to the policy defined in volume_data_restore_policy.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder - addSubstitutionRulesBuilder(int index) { - return getSubstitutionRulesFieldBuilder() - .addBuilder( - index, - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.getDefaultInstance()); + public Builder addVolumeDataRestorePolicyBindings( + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding value) { + if (volumeDataRestorePolicyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumeDataRestorePolicyBindingsIsMutable(); + volumeDataRestorePolicyBindings_.add(value); + onChanged(); + } else { + volumeDataRestorePolicyBindingsBuilder_.addMessage(value); + } + return this; } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * substitution will occur.
+     * Optional. A table that binds volumes by their scope to a restore policy.
+     * Bindings must have a unique scope. Any volumes not scoped in the bindings
+     * are subject to the policy defined in volume_data_restore_policy.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getSubstitutionRulesBuilderList() { - return getSubstitutionRulesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule, - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder, - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder> - getSubstitutionRulesFieldBuilder() { - if (substitutionRulesBuilder_ == null) { - substitutionRulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule, - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule.Builder, - com.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleOrBuilder>( - substitutionRules_, - ((bitField0_ & 0x00000200) != 0), - getParentForChildren(), - isClean()); - substitutionRules_ = null; + public Builder addVolumeDataRestorePolicyBindings( + int index, + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding value) { + if (volumeDataRestorePolicyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumeDataRestorePolicyBindingsIsMutable(); + volumeDataRestorePolicyBindings_.add(index, value); + onChanged(); + } else { + volumeDataRestorePolicyBindingsBuilder_.addMessage(index, value); } - return substitutionRulesBuilder_; + return this; } - - private java.util.List - transformationRules_ = java.util.Collections.emptyList(); - - private void ensureTransformationRulesIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { - transformationRules_ = - new java.util.ArrayList( - transformationRules_); - bitField0_ |= 0x00000400; + /** + * + * + *
+     * Optional. A table that binds volumes by their scope to a restore policy.
+     * Bindings must have a unique scope. Any volumes not scoped in the bindings
+     * are subject to the policy defined in volume_data_restore_policy.
+     * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addVolumeDataRestorePolicyBindings( + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding.Builder + builderForValue) { + if (volumeDataRestorePolicyBindingsBuilder_ == null) { + ensureVolumeDataRestorePolicyBindingsIsMutable(); + volumeDataRestorePolicyBindings_.add(builderForValue.build()); + onChanged(); + } else { + volumeDataRestorePolicyBindingsBuilder_.addMessage(builderForValue.build()); } + return this; } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule, - com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.Builder, - com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleOrBuilder> - transformationRulesBuilder_; - /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * transformation will occur.
+     * Optional. A table that binds volumes by their scope to a restore policy.
+     * Bindings must have a unique scope. Any volumes not scoped in the bindings
+     * are subject to the policy defined in volume_data_restore_policy.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getTransformationRulesList() { - if (transformationRulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(transformationRules_); + public Builder addVolumeDataRestorePolicyBindings( + int index, + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding.Builder + builderForValue) { + if (volumeDataRestorePolicyBindingsBuilder_ == null) { + ensureVolumeDataRestorePolicyBindingsIsMutable(); + volumeDataRestorePolicyBindings_.add(index, builderForValue.build()); + onChanged(); } else { - return transformationRulesBuilder_.getMessageList(); + volumeDataRestorePolicyBindingsBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * transformation will occur.
+     * Optional. A table that binds volumes by their scope to a restore policy.
+     * Bindings must have a unique scope. Any volumes not scoped in the bindings
+     * are subject to the policy defined in volume_data_restore_policy.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public int getTransformationRulesCount() { - if (transformationRulesBuilder_ == null) { - return transformationRules_.size(); + public Builder addAllVolumeDataRestorePolicyBindings( + java.lang.Iterable< + ? extends + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding> + values) { + if (volumeDataRestorePolicyBindingsBuilder_ == null) { + ensureVolumeDataRestorePolicyBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, volumeDataRestorePolicyBindings_); + onChanged(); } else { - return transformationRulesBuilder_.getCount(); + volumeDataRestorePolicyBindingsBuilder_.addAllMessages(values); } + return this; } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * transformation will occur.
+     * Optional. A table that binds volumes by their scope to a restore policy.
+     * Bindings must have a unique scope. Any volumes not scoped in the bindings
+     * are subject to the policy defined in volume_data_restore_policy.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule getTransformationRules( - int index) { - if (transformationRulesBuilder_ == null) { - return transformationRules_.get(index); + public Builder clearVolumeDataRestorePolicyBindings() { + if (volumeDataRestorePolicyBindingsBuilder_ == null) { + volumeDataRestorePolicyBindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); } else { - return transformationRulesBuilder_.getMessage(index); + volumeDataRestorePolicyBindingsBuilder_.clear(); } + return this; } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * transformation will occur.
+     * Optional. A table that binds volumes by their scope to a restore policy.
+     * Bindings must have a unique scope. Any volumes not scoped in the bindings
+     * are subject to the policy defined in volume_data_restore_policy.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; * - */ - public Builder setTransformationRules( - int index, com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule value) { - if (transformationRulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransformationRulesIsMutable(); - transformationRules_.set(index, value); + */ + public Builder removeVolumeDataRestorePolicyBindings(int index) { + if (volumeDataRestorePolicyBindingsBuilder_ == null) { + ensureVolumeDataRestorePolicyBindingsIsMutable(); + volumeDataRestorePolicyBindings_.remove(index); onChanged(); } else { - transformationRulesBuilder_.setMessage(index, value); + volumeDataRestorePolicyBindingsBuilder_.remove(index); } return this; } @@ -14642,364 +19043,350 @@ public Builder setTransformationRules( * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * transformation will occur.
+     * Optional. A table that binds volumes by their scope to a restore policy.
+     * Bindings must have a unique scope. Any volumes not scoped in the bindings
+     * are subject to the policy defined in volume_data_restore_policy.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setTransformationRules( - int index, - com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.Builder builderForValue) { - if (transformationRulesBuilder_ == null) { - ensureTransformationRulesIsMutable(); - transformationRules_.set(index, builderForValue.build()); - onChanged(); - } else { - transformationRulesBuilder_.setMessage(index, builderForValue.build()); - } - return this; + public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding.Builder + getVolumeDataRestorePolicyBindingsBuilder(int index) { + return getVolumeDataRestorePolicyBindingsFieldBuilder().getBuilder(index); } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * transformation will occur.
+     * Optional. A table that binds volumes by their scope to a restore policy.
+     * Bindings must have a unique scope. Any volumes not scoped in the bindings
+     * are subject to the policy defined in volume_data_restore_policy.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addTransformationRules( - com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule value) { - if (transformationRulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransformationRulesIsMutable(); - transformationRules_.add(value); - onChanged(); + public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBindingOrBuilder + getVolumeDataRestorePolicyBindingsOrBuilder(int index) { + if (volumeDataRestorePolicyBindingsBuilder_ == null) { + return volumeDataRestorePolicyBindings_.get(index); } else { - transformationRulesBuilder_.addMessage(value); + return volumeDataRestorePolicyBindingsBuilder_.getMessageOrBuilder(index); } - return this; } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * transformation will occur.
+     * Optional. A table that binds volumes by their scope to a restore policy.
+     * Bindings must have a unique scope. Any volumes not scoped in the bindings
+     * are subject to the policy defined in volume_data_restore_policy.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addTransformationRules( - int index, com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule value) { - if (transformationRulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransformationRulesIsMutable(); - transformationRules_.add(index, value); - onChanged(); + public java.util.List< + ? extends + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBindingOrBuilder> + getVolumeDataRestorePolicyBindingsOrBuilderList() { + if (volumeDataRestorePolicyBindingsBuilder_ != null) { + return volumeDataRestorePolicyBindingsBuilder_.getMessageOrBuilderList(); } else { - transformationRulesBuilder_.addMessage(index, value); + return java.util.Collections.unmodifiableList(volumeDataRestorePolicyBindings_); } - return this; } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * transformation will occur.
+     * Optional. A table that binds volumes by their scope to a restore policy.
+     * Bindings must have a unique scope. Any volumes not scoped in the bindings
+     * are subject to the policy defined in volume_data_restore_policy.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addTransformationRules( - com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.Builder builderForValue) { - if (transformationRulesBuilder_ == null) { - ensureTransformationRulesIsMutable(); - transformationRules_.add(builderForValue.build()); - onChanged(); - } else { - transformationRulesBuilder_.addMessage(builderForValue.build()); - } - return this; + public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding.Builder + addVolumeDataRestorePolicyBindingsBuilder() { + return getVolumeDataRestorePolicyBindingsFieldBuilder() + .addBuilder( + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + .getDefaultInstance()); } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * transformation will occur.
+     * Optional. A table that binds volumes by their scope to a restore policy.
+     * Bindings must have a unique scope. Any volumes not scoped in the bindings
+     * are subject to the policy defined in volume_data_restore_policy.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addTransformationRules( - int index, - com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.Builder builderForValue) { - if (transformationRulesBuilder_ == null) { - ensureTransformationRulesIsMutable(); - transformationRules_.add(index, builderForValue.build()); - onChanged(); - } else { - transformationRulesBuilder_.addMessage(index, builderForValue.build()); - } - return this; + public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding.Builder + addVolumeDataRestorePolicyBindingsBuilder(int index) { + return getVolumeDataRestorePolicyBindingsFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + .getDefaultInstance()); } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * transformation will occur.
+     * Optional. A table that binds volumes by their scope to a restore policy.
+     * Bindings must have a unique scope. Any volumes not scoped in the bindings
+     * are subject to the policy defined in volume_data_restore_policy.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addAllTransformationRules( - java.lang.Iterable - values) { - if (transformationRulesBuilder_ == null) { - ensureTransformationRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transformationRules_); - onChanged(); - } else { - transformationRulesBuilder_.addAllMessages(values); + public java.util.List< + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding.Builder> + getVolumeDataRestorePolicyBindingsBuilderList() { + return getVolumeDataRestorePolicyBindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding, + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBindingOrBuilder> + getVolumeDataRestorePolicyBindingsFieldBuilder() { + if (volumeDataRestorePolicyBindingsBuilder_ == null) { + volumeDataRestorePolicyBindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding, + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig + .VolumeDataRestorePolicyBindingOrBuilder>( + volumeDataRestorePolicyBindings_, + ((bitField0_ & 0x00000800) != 0), + getParentForChildren(), + isClean()); + volumeDataRestorePolicyBindings_ = null; } - return this; + return volumeDataRestorePolicyBindingsBuilder_; } + + private com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder restoreOrder_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrderOrBuilder> + restoreOrderBuilder_; /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * transformation will occur.
+     * Optional. RestoreOrder contains custom ordering to use on a Restore.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder restore_order = 13 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the restoreOrder field is set. */ - public Builder clearTransformationRules() { - if (transformationRulesBuilder_ == null) { - transformationRules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); + public boolean hasRestoreOrder() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
+     * Optional. RestoreOrder contains custom ordering to use on a Restore.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder restore_order = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The restoreOrder. + */ + public com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder getRestoreOrder() { + if (restoreOrderBuilder_ == null) { + return restoreOrder_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.getDefaultInstance() + : restoreOrder_; } else { - transformationRulesBuilder_.clear(); + return restoreOrderBuilder_.getMessage(); } - return this; } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * transformation will occur.
+     * Optional. RestoreOrder contains custom ordering to use on a Restore.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder restore_order = 13 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder removeTransformationRules(int index) { - if (transformationRulesBuilder_ == null) { - ensureTransformationRulesIsMutable(); - transformationRules_.remove(index); - onChanged(); + public Builder setRestoreOrder(com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder value) { + if (restoreOrderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + restoreOrder_ = value; } else { - transformationRulesBuilder_.remove(index); + restoreOrderBuilder_.setMessage(value); } + bitField0_ |= 0x00001000; + onChanged(); return this; } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * transformation will occur.
+     * Optional. RestoreOrder contains custom ordering to use on a Restore.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder restore_order = 13 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.Builder - getTransformationRulesBuilder(int index) { - return getTransformationRulesFieldBuilder().getBuilder(index); + public Builder setRestoreOrder( + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.Builder builderForValue) { + if (restoreOrderBuilder_ == null) { + restoreOrder_ = builderForValue.build(); + } else { + restoreOrderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * transformation will occur.
+     * Optional. RestoreOrder contains custom ordering to use on a Restore.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder restore_order = 13 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleOrBuilder - getTransformationRulesOrBuilder(int index) { - if (transformationRulesBuilder_ == null) { - return transformationRules_.get(index); + public Builder mergeRestoreOrder( + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder value) { + if (restoreOrderBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && restoreOrder_ != null + && restoreOrder_ + != com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.getDefaultInstance()) { + getRestoreOrderBuilder().mergeFrom(value); + } else { + restoreOrder_ = value; + } } else { - return transformationRulesBuilder_.getMessageOrBuilder(index); + restoreOrderBuilder_.mergeFrom(value); + } + if (restoreOrder_ != null) { + bitField0_ |= 0x00001000; + onChanged(); } + return this; } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * transformation will occur.
+     * Optional. RestoreOrder contains custom ordering to use on a Restore.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder restore_order = 13 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List< - ? extends com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleOrBuilder> - getTransformationRulesOrBuilderList() { - if (transformationRulesBuilder_ != null) { - return transformationRulesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(transformationRules_); + public Builder clearRestoreOrder() { + bitField0_ = (bitField0_ & ~0x00001000); + restoreOrder_ = null; + if (restoreOrderBuilder_ != null) { + restoreOrderBuilder_.dispose(); + restoreOrderBuilder_ = null; } + onChanged(); + return this; } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * transformation will occur.
+     * Optional. RestoreOrder contains custom ordering to use on a Restore.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder restore_order = 13 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.Builder - addTransformationRulesBuilder() { - return getTransformationRulesFieldBuilder() - .addBuilder( - com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.Builder + getRestoreOrderBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getRestoreOrderFieldBuilder().getBuilder(); } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * transformation will occur.
+     * Optional. RestoreOrder contains custom ordering to use on a Restore.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder restore_order = 13 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.Builder - addTransformationRulesBuilder(int index) { - return getTransformationRulesFieldBuilder() - .addBuilder( - index, - com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.getDefaultInstance()); + public com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrderOrBuilder + getRestoreOrderOrBuilder() { + if (restoreOrderBuilder_ != null) { + return restoreOrderBuilder_.getMessageOrBuilder(); + } else { + return restoreOrder_ == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.getDefaultInstance() + : restoreOrder_; + } } /** * * *
-     * Optional. A list of transformation rules to be applied against Kubernetes
-     * resources as they are selected for restoration from a Backup. Rules are
-     * executed in order defined - this order matters, as changes made by a rule
-     * may impact the filtering logic of subsequent rules. An empty list means no
-     * transformation will occur.
+     * Optional. RestoreOrder contains custom ordering to use on a Restore.
      * 
* * - * repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder restore_order = 13 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getTransformationRulesBuilderList() { - return getTransformationRulesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule, - com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.Builder, - com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleOrBuilder> - getTransformationRulesFieldBuilder() { - if (transformationRulesBuilder_ == null) { - transformationRulesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule, - com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRule.Builder, - com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleOrBuilder>( - transformationRules_, - ((bitField0_ & 0x00000400) != 0), - getParentForChildren(), - isClean()); - transformationRules_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrderOrBuilder> + getRestoreOrderFieldBuilder() { + if (restoreOrderBuilder_ == null) { + restoreOrderBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.Builder, + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrderOrBuilder>( + getRestoreOrder(), getParentForChildren(), isClean()); + restoreOrder_ = null; } - return transformationRulesBuilder_; + return restoreOrderBuilder_; } @java.lang.Override diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfigOrBuilder.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfigOrBuilder.java index 9f52a7fec0fc..e1dd14ecab95 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfigOrBuilder.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreConfigOrBuilder.java @@ -518,6 +518,124 @@ public interface RestoreConfigOrBuilder com.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleOrBuilder getTransformationRulesOrBuilder(int index); + /** + * + * + *
+   * Optional. A table that binds volumes by their scope to a restore policy.
+   * Bindings must have a unique scope. Any volumes not scoped in the bindings
+   * are subject to the policy defined in volume_data_restore_policy.
+   * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getVolumeDataRestorePolicyBindingsList(); + /** + * + * + *
+   * Optional. A table that binds volumes by their scope to a restore policy.
+   * Bindings must have a unique scope. Any volumes not scoped in the bindings
+   * are subject to the policy defined in volume_data_restore_policy.
+   * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding + getVolumeDataRestorePolicyBindings(int index); + /** + * + * + *
+   * Optional. A table that binds volumes by their scope to a restore policy.
+   * Bindings must have a unique scope. Any volumes not scoped in the bindings
+   * are subject to the policy defined in volume_data_restore_policy.
+   * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getVolumeDataRestorePolicyBindingsCount(); + /** + * + * + *
+   * Optional. A table that binds volumes by their scope to a restore policy.
+   * Bindings must have a unique scope. Any volumes not scoped in the bindings
+   * are subject to the policy defined in volume_data_restore_policy.
+   * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBindingOrBuilder> + getVolumeDataRestorePolicyBindingsOrBuilderList(); + /** + * + * + *
+   * Optional. A table that binds volumes by their scope to a restore policy.
+   * Bindings must have a unique scope. Any volumes not scoped in the bindings
+   * are subject to the policy defined in volume_data_restore_policy.
+   * 
+ * + * + * repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBindingOrBuilder + getVolumeDataRestorePolicyBindingsOrBuilder(int index); + + /** + * + * + *
+   * Optional. RestoreOrder contains custom ordering to use on a Restore.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder restore_order = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the restoreOrder field is set. + */ + boolean hasRestoreOrder(); + /** + * + * + *
+   * Optional. RestoreOrder contains custom ordering to use on a Restore.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder restore_order = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The restoreOrder. + */ + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder getRestoreOrder(); + /** + * + * + *
+   * Optional. RestoreOrder contains custom ordering to use on a Restore.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder restore_order = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrderOrBuilder getRestoreOrderOrBuilder(); + com.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreScopeCase getNamespacedResourceRestoreScopeCase(); } diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreOrBuilder.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreOrBuilder.java index e5b2df209562..4e26871253dc 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreOrBuilder.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreOrBuilder.java @@ -557,4 +557,136 @@ java.lang.String getLabelsOrDefault( * @return The bytes for etag. */ com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Optional. Immutable. Filters resources for `Restore`. If not specified, the
+   * scope of the restore will remain the same as defined in the `RestorePlan`.
+   * If this is specified, and no resources are matched by the
+   * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
+   * nothing will be restored. This filter can only be specified if the value of
+   * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
+   * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
+   * `MERGE_REPLACE_ON_CONFLICT`.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + /** + * + * + *
+   * Optional. Immutable. Filters resources for `Restore`. If not specified, the
+   * scope of the restore will remain the same as defined in the `RestorePlan`.
+   * If this is specified, and no resources are matched by the
+   * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
+   * nothing will be restored. This filter can only be specified if the value of
+   * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
+   * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
+   * `MERGE_REPLACE_ON_CONFLICT`.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The filter. + */ + com.google.cloud.gkebackup.v1.Restore.Filter getFilter(); + /** + * + * + *
+   * Optional. Immutable. Filters resources for `Restore`. If not specified, the
+   * scope of the restore will remain the same as defined in the `RestorePlan`.
+   * If this is specified, and no resources are matched by the
+   * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
+   * nothing will be restored. This filter can only be specified if the value of
+   * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
+   * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
+   * `MERGE_REPLACE_ON_CONFLICT`.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkebackup.v1.Restore.FilterOrBuilder getFilterOrBuilder(); + + /** + * + * + *
+   * Optional. Immutable. Overrides the volume data restore policies selected in
+   * the Restore Config for override-scoped resources.
+   * 
+ * + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getVolumeDataRestorePolicyOverridesList(); + /** + * + * + *
+   * Optional. Immutable. Overrides the volume data restore policies selected in
+   * the Restore Config for override-scoped resources.
+   * 
+ * + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride getVolumeDataRestorePolicyOverrides( + int index); + /** + * + * + *
+   * Optional. Immutable. Overrides the volume data restore policies selected in
+   * the Restore Config for override-scoped resources.
+   * 
+ * + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + int getVolumeDataRestorePolicyOverridesCount(); + /** + * + * + *
+   * Optional. Immutable. Overrides the volume data restore policies selected in
+   * the Restore Config for override-scoped resources.
+   * 
+ * + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getVolumeDataRestorePolicyOverridesOrBuilderList(); + /** + * + * + *
+   * Optional. Immutable. Overrides the volume data restore policies selected in
+   * the Restore Config for override-scoped resources.
+   * 
+ * + * + * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverrideOrBuilder + getVolumeDataRestorePolicyOverridesOrBuilder(int index); } diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreProto.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreProto.java index dacf7c208397..11e48e846718 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreProto.java +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/RestoreProto.java @@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gkebackup_v1_Restore_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_Restore_Filter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_Restore_Filter_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -64,6 +68,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gkebackup_v1_RestoreConfig_TransformationRule_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gkebackup_v1_RestoreConfig_TransformationRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_RestoreConfig_VolumeDataRestorePolicyBinding_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_RestoreConfig_VolumeDataRestorePolicyBinding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_GroupKindDependency_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_GroupKindDependency_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ResourceSelector_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ResourceSelector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_ResourceSelector_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_ResourceSelector_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkebackup_v1_VolumeDataRestorePolicyOverride_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkebackup_v1_VolumeDataRestorePolicyOverride_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -78,7 +106,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/field_behavior.proto\032\031google/api/resour" + "ce.proto\032&google/cloud/gkebackup/v1/comm" + "on.proto\032\037google/protobuf/timestamp.prot" - + "o\"\377\007\n\007Restore\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030" + + "o\"\331\n\n\007Restore\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030" + "\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.google" + ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" + "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023" @@ -96,85 +124,126 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_count\030\r \001(\005B\003\340A\003\022%\n\030resources_excluded_" + "count\030\016 \001(\005B\003\340A\003\022#\n\026resources_failed_cou" + "nt\030\017 \001(\005B\003\340A\003\022#\n\026volumes_restored_count\030" - + "\020 \001(\005B\003\340A\003\022\021\n\004etag\030\021 \001(\tB\003\340A\003\032-\n\013LabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"f\n\005" - + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING" - + "\020\001\022\017\n\013IN_PROGRESS\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FA" - + "ILED\020\004\022\014\n\010DELETING\020\005:}\352Az\n gkebackup.goo" - + "gleapis.com/Restore\022Vprojects/{project}/" - + "locations/{location}/restorePlans/{resto" - + "re_plan}/restores/{restore}\"\274\024\n\rRestoreC" - + "onfig\022i\n\032volume_data_restore_policy\030\001 \001(" - + "\0162@.google.cloud.gkebackup.v1.RestoreCon" - + "fig.VolumeDataRestorePolicyB\003\340A\001\022u\n clus" - + "ter_resource_conflict_policy\030\002 \001(\0162F.goo" - + "gle.cloud.gkebackup.v1.RestoreConfig.Clu" - + "sterResourceConflictPolicyB\003\340A\001\022u\n names" - + "paced_resource_restore_mode\030\003 \001(\0162F.goog" - + "le.cloud.gkebackup.v1.RestoreConfig.Name" - + "spacedResourceRestoreModeB\003\340A\001\022q\n\036cluste" - + "r_resource_restore_scope\030\004 \001(\0132D.google." - + "cloud.gkebackup.v1.RestoreConfig.Cluster" - + "ResourceRestoreScopeB\003\340A\001\022\030\n\016all_namespa" - + "ces\030\005 \001(\010H\000\022D\n\023selected_namespaces\030\006 \001(\013" - + "2%.google.cloud.gkebackup.v1.NamespacesH" - + "\000\022K\n\025selected_applications\030\007 \001(\0132*.googl" - + "e.cloud.gkebackup.v1.NamespacedNamesH\000\022\027" - + "\n\rno_namespaces\030\t \001(\010H\000\022D\n\023excluded_name" - + "spaces\030\n \001(\0132%.google.cloud.gkebackup.v1" - + ".NamespacesH\000\022Z\n\022substitution_rules\030\010 \003(" - + "\01329.google.cloud.gkebackup.v1.RestoreCon" - + "fig.SubstitutionRuleB\003\340A\001\022^\n\024transformat" - + "ion_rules\030\013 \003(\0132;.google.cloud.gkebackup" - + ".v1.RestoreConfig.TransformationRuleB\003\340A" - + "\001\032D\n\tGroupKind\022\033\n\016resource_group\030\001 \001(\tB\003" - + "\340A\001\022\032\n\rresource_kind\030\002 \001(\tB\003\340A\001\032\206\002\n\033Clus" - + "terResourceRestoreScope\022U\n\024selected_grou" - + "p_kinds\030\001 \003(\01322.google.cloud.gkebackup.v" - + "1.RestoreConfig.GroupKindB\003\340A\001\022U\n\024exclud" - + "ed_group_kinds\030\002 \003(\01322.google.cloud.gkeb" - + "ackup.v1.RestoreConfig.GroupKindB\003\340A\001\022\034\n" - + "\017all_group_kinds\030\003 \001(\010B\003\340A\001\022\033\n\016no_group_" - + "kinds\030\004 \001(\010B\003\340A\001\032\343\001\n\020SubstitutionRule\022\036\n" - + "\021target_namespaces\030\001 \003(\tB\003\340A\001\022S\n\022target_" - + "group_kinds\030\002 \003(\01322.google.cloud.gkeback" - + "up.v1.RestoreConfig.GroupKindB\003\340A\001\022\035\n\020ta" - + "rget_json_path\030\003 \001(\tB\003\340A\002\022#\n\026original_va" - + "lue_pattern\030\004 \001(\tB\003\340A\001\022\026\n\tnew_value\030\005 \001(" - + "\tB\003\340A\001\032\212\002\n\030TransformationRuleAction\022U\n\002o" - + "p\030\001 \001(\0162D.google.cloud.gkebackup.v1.Rest" - + "oreConfig.TransformationRuleAction.OpB\003\340" - + "A\002\022\026\n\tfrom_path\030\002 \001(\tB\003\340A\001\022\021\n\004path\030\003 \001(\t" - + "B\003\340A\001\022\022\n\005value\030\004 \001(\tB\003\340A\001\"X\n\002Op\022\022\n\016OP_UN" - + "SPECIFIED\020\000\022\n\n\006REMOVE\020\001\022\010\n\004MOVE\020\002\022\010\n\004COP" - + "Y\020\003\022\007\n\003ADD\020\004\022\010\n\004TEST\020\005\022\013\n\007REPLACE\020\006\032\217\001\n\016" - + "ResourceFilter\022\027\n\nnamespaces\030\001 \003(\tB\003\340A\001\022" - + "L\n\013group_kinds\030\002 \003(\01322.google.cloud.gkeb" - + "ackup.v1.RestoreConfig.GroupKindB\003\340A\001\022\026\n" - + "\tjson_path\030\003 \001(\tB\003\340A\001\032\344\001\n\022Transformation" - + "Rule\022]\n\rfield_actions\030\001 \003(\0132A.google.clo" - + "ud.gkebackup.v1.RestoreConfig.Transforma" - + "tionRuleActionB\003\340A\002\022U\n\017resource_filter\030\002" - + " \001(\01327.google.cloud.gkebackup.v1.Restore" - + "Config.ResourceFilterB\003\340A\001\022\030\n\013descriptio" - + "n\030\003 \001(\tB\003\340A\001\"\257\001\n\027VolumeDataRestorePolicy" - + "\022*\n&VOLUME_DATA_RESTORE_POLICY_UNSPECIFI" - + "ED\020\000\022#\n\037RESTORE_VOLUME_DATA_FROM_BACKUP\020" - + "\001\022#\n\037REUSE_VOLUME_HANDLE_FROM_BACKUP\020\002\022\036" - + "\n\032NO_VOLUME_DATA_RESTORATION\020\003\"\203\001\n\035Clust" - + "erResourceConflictPolicy\0220\n,CLUSTER_RESO" - + "URCE_CONFLICT_POLICY_UNSPECIFIED\020\000\022\030\n\024US" - + "E_EXISTING_VERSION\020\001\022\026\n\022USE_BACKUP_VERSI" - + "ON\020\002\"\177\n\035NamespacedResourceRestoreMode\0220\n" - + ",NAMESPACED_RESOURCE_RESTORE_MODE_UNSPEC" - + "IFIED\020\000\022\026\n\022DELETE_AND_RESTORE\020\001\022\024\n\020FAIL_" - + "ON_CONFLICT\020\002B#\n!namespaced_resource_res" - + "tore_scopeB\303\001\n\035com.google.cloud.gkebacku" - + "p.v1B\014RestoreProtoP\001Z;cloud.google.com/g" - + "o/gkebackup/apiv1/gkebackuppb;gkebackupp" - + "b\252\002\031Google.Cloud.GkeBackup.V1\312\002\031Google\\C" - + "loud\\GkeBackup\\V1\352\002\034Google::Cloud::GkeBa" - + "ckup::V1b\006proto3" + + "\020 \001(\005B\003\340A\003\022\021\n\004etag\030\021 \001(\tB\003\340A\003\022A\n\006filter\030" + + "\022 \001(\0132).google.cloud.gkebackup.v1.Restor" + + "e.FilterB\006\340A\005\340A\001\022p\n$volume_data_restore_" + + "policy_overrides\030\023 \003(\0132:.google.cloud.gk" + + "ebackup.v1.VolumeDataRestorePolicyOverri" + + "deB\006\340A\005\340A\001\032\242\001\n\006Filter\022K\n\021inclusion_filte" + + "rs\030\001 \003(\0132+.google.cloud.gkebackup.v1.Res" + + "ourceSelectorB\003\340A\001\022K\n\021exclusion_filters\030" + + "\002 \003(\0132+.google.cloud.gkebackup.v1.Resour" + + "ceSelectorB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"f\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\017\n\013IN_PROGR" + + "ESS\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\022\014\n\010DELE" + + "TING\020\005:}\352Az\n gkebackup.googleapis.com/Re" + + "store\022Vprojects/{project}/locations/{loc" + + "ation}/restorePlans/{restore_plan}/resto" + + "res/{restore}\"\357\032\n\rRestoreConfig\022i\n\032volum" + + "e_data_restore_policy\030\001 \001(\0162@.google.clo" + + "ud.gkebackup.v1.RestoreConfig.VolumeData" + + "RestorePolicyB\003\340A\001\022u\n cluster_resource_c" + + "onflict_policy\030\002 \001(\0162F.google.cloud.gkeb" + + "ackup.v1.RestoreConfig.ClusterResourceCo" + + "nflictPolicyB\003\340A\001\022u\n namespaced_resource" + + "_restore_mode\030\003 \001(\0162F.google.cloud.gkeba" + + "ckup.v1.RestoreConfig.NamespacedResource" + + "RestoreModeB\003\340A\001\022q\n\036cluster_resource_res" + + "tore_scope\030\004 \001(\0132D.google.cloud.gkebacku" + + "p.v1.RestoreConfig.ClusterResourceRestor" + + "eScopeB\003\340A\001\022\030\n\016all_namespaces\030\005 \001(\010H\000\022D\n" + + "\023selected_namespaces\030\006 \001(\0132%.google.clou" + + "d.gkebackup.v1.NamespacesH\000\022K\n\025selected_" + + "applications\030\007 \001(\0132*.google.cloud.gkebac" + + "kup.v1.NamespacedNamesH\000\022\027\n\rno_namespace" + + "s\030\t \001(\010H\000\022D\n\023excluded_namespaces\030\n \001(\0132%" + + ".google.cloud.gkebackup.v1.NamespacesH\000\022" + + "Z\n\022substitution_rules\030\010 \003(\01329.google.clo" + + "ud.gkebackup.v1.RestoreConfig.Substituti" + + "onRuleB\003\340A\001\022^\n\024transformation_rules\030\013 \003(" + + "\0132;.google.cloud.gkebackup.v1.RestoreCon" + + "fig.TransformationRuleB\003\340A\001\022y\n#volume_da" + + "ta_restore_policy_bindings\030\014 \003(\0132G.googl" + + "e.cloud.gkebackup.v1.RestoreConfig.Volum" + + "eDataRestorePolicyBindingB\003\340A\001\022Q\n\rrestor" + + "e_order\030\r \001(\01325.google.cloud.gkebackup.v" + + "1.RestoreConfig.RestoreOrderB\003\340A\001\032D\n\tGro" + + "upKind\022\033\n\016resource_group\030\001 \001(\tB\003\340A\001\022\032\n\rr" + + "esource_kind\030\002 \001(\tB\003\340A\001\032\206\002\n\033ClusterResou" + + "rceRestoreScope\022U\n\024selected_group_kinds\030" + + "\001 \003(\01322.google.cloud.gkebackup.v1.Restor" + + "eConfig.GroupKindB\003\340A\001\022U\n\024excluded_group" + + "_kinds\030\002 \003(\01322.google.cloud.gkebackup.v1" + + ".RestoreConfig.GroupKindB\003\340A\001\022\034\n\017all_gro" + + "up_kinds\030\003 \001(\010B\003\340A\001\022\033\n\016no_group_kinds\030\004 " + + "\001(\010B\003\340A\001\032\343\001\n\020SubstitutionRule\022\036\n\021target_" + + "namespaces\030\001 \003(\tB\003\340A\001\022S\n\022target_group_ki" + + "nds\030\002 \003(\01322.google.cloud.gkebackup.v1.Re" + + "storeConfig.GroupKindB\003\340A\001\022\035\n\020target_jso" + + "n_path\030\003 \001(\tB\003\340A\002\022#\n\026original_value_patt" + + "ern\030\004 \001(\tB\003\340A\001\022\026\n\tnew_value\030\005 \001(\tB\003\340A\001\032\212" + + "\002\n\030TransformationRuleAction\022U\n\002op\030\001 \001(\0162" + + "D.google.cloud.gkebackup.v1.RestoreConfi" + + "g.TransformationRuleAction.OpB\003\340A\002\022\026\n\tfr" + + "om_path\030\002 \001(\tB\003\340A\001\022\021\n\004path\030\003 \001(\tB\003\340A\001\022\022\n" + + "\005value\030\004 \001(\tB\003\340A\001\"X\n\002Op\022\022\n\016OP_UNSPECIFIE" + + "D\020\000\022\n\n\006REMOVE\020\001\022\010\n\004MOVE\020\002\022\010\n\004COPY\020\003\022\007\n\003A" + + "DD\020\004\022\010\n\004TEST\020\005\022\013\n\007REPLACE\020\006\032\217\001\n\016Resource" + + "Filter\022\027\n\nnamespaces\030\001 \003(\tB\003\340A\001\022L\n\013group" + + "_kinds\030\002 \003(\01322.google.cloud.gkebackup.v1" + + ".RestoreConfig.GroupKindB\003\340A\001\022\026\n\tjson_pa" + + "th\030\003 \001(\tB\003\340A\001\032\344\001\n\022TransformationRule\022]\n\r" + + "field_actions\030\001 \003(\0132A.google.cloud.gkeba" + + "ckup.v1.RestoreConfig.TransformationRule" + + "ActionB\003\340A\002\022U\n\017resource_filter\030\002 \001(\01327.g" + + "oogle.cloud.gkebackup.v1.RestoreConfig.R" + + "esourceFilterB\003\340A\001\022\030\n\013description\030\003 \001(\tB" + + "\003\340A\001\032\315\001\n\036VolumeDataRestorePolicyBinding\022" + + "U\n\006policy\030\001 \001(\0162@.google.cloud.gkebackup" + + ".v1.RestoreConfig.VolumeDataRestorePolic" + + "yB\003\340A\002\022K\n\013volume_type\030\002 \001(\01624.google.clo" + + "ud.gkebackup.v1.VolumeTypeEnum.VolumeTyp" + + "eH\000B\007\n\005scope\032\260\002\n\014RestoreOrder\022o\n\027group_k" + + "ind_dependencies\030\001 \003(\0132I.google.cloud.gk" + + "ebackup.v1.RestoreConfig.RestoreOrder.Gr" + + "oupKindDependencyB\003\340A\001\032\256\001\n\023GroupKindDepe" + + "ndency\022K\n\nsatisfying\030\001 \001(\01322.google.clou" + + "d.gkebackup.v1.RestoreConfig.GroupKindB\003" + + "\340A\002\022J\n\trequiring\030\002 \001(\01322.google.cloud.gk" + + "ebackup.v1.RestoreConfig.GroupKindB\003\340A\002\"" + + "\257\001\n\027VolumeDataRestorePolicy\022*\n&VOLUME_DA" + + "TA_RESTORE_POLICY_UNSPECIFIED\020\000\022#\n\037RESTO" + + "RE_VOLUME_DATA_FROM_BACKUP\020\001\022#\n\037REUSE_VO" + + "LUME_HANDLE_FROM_BACKUP\020\002\022\036\n\032NO_VOLUME_D" + + "ATA_RESTORATION\020\003\"\203\001\n\035ClusterResourceCon" + + "flictPolicy\0220\n,CLUSTER_RESOURCE_CONFLICT" + + "_POLICY_UNSPECIFIED\020\000\022\030\n\024USE_EXISTING_VE" + + "RSION\020\001\022\026\n\022USE_BACKUP_VERSION\020\002\"\340\001\n\035Name" + + "spacedResourceRestoreMode\0220\n,NAMESPACED_" + + "RESOURCE_RESTORE_MODE_UNSPECIFIED\020\000\022\026\n\022D" + + "ELETE_AND_RESTORE\020\001\022\024\n\020FAIL_ON_CONFLICT\020" + + "\002\022\032\n\026MERGE_SKIP_ON_CONFLICT\020\003\022$\n MERGE_R" + + "EPLACE_VOLUME_ON_CONFLICT\020\004\022\035\n\031MERGE_REP" + + "LACE_ON_CONFLICT\020\005B#\n!namespaced_resourc" + + "e_restore_scope\"\207\002\n\020ResourceSelector\022K\n\n" + + "group_kind\030\001 \001(\01322.google.cloud.gkebacku" + + "p.v1.RestoreConfig.GroupKindB\003\340A\001\022\021\n\004nam" + + "e\030\002 \001(\tB\003\340A\001\022\026\n\tnamespace\030\003 \001(\tB\003\340A\001\022L\n\006" + + "labels\030\004 \003(\01327.google.cloud.gkebackup.v1" + + ".ResourceSelector.LabelsEntryB\003\340A\001\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"\306\001\n\037VolumeDataRestorePolicyOverride\022U\n" + + "\006policy\030\001 \001(\0162@.google.cloud.gkebackup.v" + + "1.RestoreConfig.VolumeDataRestorePolicyB" + + "\003\340A\002\022C\n\rselected_pvcs\030\002 \001(\0132*.google.clo" + + "ud.gkebackup.v1.NamespacedNamesH\000B\007\n\005sco" + + "peB\303\001\n\035com.google.cloud.gkebackup.v1B\014Re" + + "storeProtoP\001Z;cloud.google.com/go/gkebac" + + "kup/apiv1/gkebackuppb;gkebackuppb\252\002\031Goog" + + "le.Cloud.GkeBackup.V1\312\002\031Google\\Cloud\\Gke" + + "Backup\\V1\352\002\034Google::Cloud::GkeBackup::V1" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -208,9 +277,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourcesFailedCount", "VolumesRestoredCount", "Etag", + "Filter", + "VolumeDataRestorePolicyOverrides", }); - internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor = + internal_static_google_cloud_gkebackup_v1_Restore_Filter_descriptor = internal_static_google_cloud_gkebackup_v1_Restore_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkebackup_v1_Restore_Filter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_Restore_Filter_descriptor, + new java.lang.String[] { + "InclusionFilters", "ExclusionFilters", + }); + internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor = + internal_static_google_cloud_gkebackup_v1_Restore_descriptor.getNestedTypes().get(1); internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor, @@ -234,6 +313,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExcludedNamespaces", "SubstitutionRules", "TransformationRules", + "VolumeDataRestorePolicyBindings", + "RestoreOrder", "NamespacedResourceRestoreScope", }); internal_static_google_cloud_gkebackup_v1_RestoreConfig_GroupKind_descriptor = @@ -288,6 +369,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "FieldActions", "ResourceFilter", "Description", }); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_VolumeDataRestorePolicyBinding_descriptor = + internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor.getNestedTypes().get(6); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_VolumeDataRestorePolicyBinding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_RestoreConfig_VolumeDataRestorePolicyBinding_descriptor, + new java.lang.String[] { + "Policy", "VolumeType", "Scope", + }); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_descriptor = + internal_static_google_cloud_gkebackup_v1_RestoreConfig_descriptor.getNestedTypes().get(7); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_descriptor, + new java.lang.String[] { + "GroupKindDependencies", + }); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_GroupKindDependency_descriptor = + internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_GroupKindDependency_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_RestoreConfig_RestoreOrder_GroupKindDependency_descriptor, + new java.lang.String[] { + "Satisfying", "Requiring", + }); + internal_static_google_cloud_gkebackup_v1_ResourceSelector_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkebackup_v1_ResourceSelector_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ResourceSelector_descriptor, + new java.lang.String[] { + "GroupKind", "Name", "Namespace", "Labels", + }); + internal_static_google_cloud_gkebackup_v1_ResourceSelector_LabelsEntry_descriptor = + internal_static_google_cloud_gkebackup_v1_ResourceSelector_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_gkebackup_v1_ResourceSelector_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_ResourceSelector_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkebackup_v1_VolumeDataRestorePolicyOverride_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkebackup_v1_VolumeDataRestorePolicyOverride_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkebackup_v1_VolumeDataRestorePolicyOverride_descriptor, + new java.lang.String[] { + "Policy", "SelectedPvcs", "Scope", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeDataRestorePolicyOverride.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeDataRestorePolicyOverride.java new file mode 100644 index 000000000000..3b6f4fba73ec --- /dev/null +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeDataRestorePolicyOverride.java @@ -0,0 +1,1005 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/restore.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gkebackup.v1; + +/** + * + * + *
+ * Defines an override to apply a VolumeDataRestorePolicy for scoped resources.
+ * 
+ * + * Protobuf type {@code google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride} + */ +public final class VolumeDataRestorePolicyOverride extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride) + VolumeDataRestorePolicyOverrideOrBuilder { + private static final long serialVersionUID = 0L; + // Use VolumeDataRestorePolicyOverride.newBuilder() to construct. + private VolumeDataRestorePolicyOverride( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VolumeDataRestorePolicyOverride() { + policy_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VolumeDataRestorePolicyOverride(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_VolumeDataRestorePolicyOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_VolumeDataRestorePolicyOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.class, + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.Builder.class); + } + + private int scopeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object scope_; + + public enum ScopeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SELECTED_PVCS(2), + SCOPE_NOT_SET(0); + private final int value; + + private ScopeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ScopeCase valueOf(int value) { + return forNumber(value); + } + + public static ScopeCase forNumber(int value) { + switch (value) { + case 2: + return SELECTED_PVCS; + case 0: + return SCOPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ScopeCase getScopeCase() { + return ScopeCase.forNumber(scopeCase_); + } + + public static final int POLICY_FIELD_NUMBER = 1; + private int policy_ = 0; + /** + * + * + *
+   * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
+   * scope.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for policy. + */ + @java.lang.Override + public int getPolicyValue() { + return policy_; + } + /** + * + * + *
+   * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
+   * scope.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policy. + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy getPolicy() { + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy result = + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.forNumber(policy_); + return result == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.UNRECOGNIZED + : result; + } + + public static final int SELECTED_PVCS_FIELD_NUMBER = 2; + /** + * + * + *
+   * A list of PVCs to apply the policy override to.
+   * 
+ * + * .google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2; + * + * @return Whether the selectedPvcs field is set. + */ + @java.lang.Override + public boolean hasSelectedPvcs() { + return scopeCase_ == 2; + } + /** + * + * + *
+   * A list of PVCs to apply the policy override to.
+   * 
+ * + * .google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2; + * + * @return The selectedPvcs. + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedPvcs() { + if (scopeCase_ == 2) { + return (com.google.cloud.gkebackup.v1.NamespacedNames) scope_; + } + return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); + } + /** + * + * + *
+   * A list of PVCs to apply the policy override to.
+   * 
+ * + * .google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2; + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedPvcsOrBuilder() { + if (scopeCase_ == 2) { + return (com.google.cloud.gkebackup.v1.NamespacedNames) scope_; + } + return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (policy_ + != com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy + .VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, policy_); + } + if (scopeCase_ == 2) { + output.writeMessage(2, (com.google.cloud.gkebackup.v1.NamespacedNames) scope_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (policy_ + != com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy + .VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, policy_); + } + if (scopeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.gkebackup.v1.NamespacedNames) scope_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride)) { + return super.equals(obj); + } + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride other = + (com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride) obj; + + if (policy_ != other.policy_) return false; + if (!getScopeCase().equals(other.getScopeCase())) return false; + switch (scopeCase_) { + case 2: + if (!getSelectedPvcs().equals(other.getSelectedPvcs())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + POLICY_FIELD_NUMBER; + hash = (53 * hash) + policy_; + switch (scopeCase_) { + case 2: + hash = (37 * hash) + SELECTED_PVCS_FIELD_NUMBER; + hash = (53 * hash) + getSelectedPvcs().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride 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.gkebackup.v1.VolumeDataRestorePolicyOverride parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride 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.gkebackup.v1.VolumeDataRestorePolicyOverride parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride 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.gkebackup.v1.VolumeDataRestorePolicyOverride parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Defines an override to apply a VolumeDataRestorePolicy for scoped resources.
+   * 
+ * + * Protobuf type {@code google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride) + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverrideOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_VolumeDataRestorePolicyOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_VolumeDataRestorePolicyOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.class, + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.Builder.class); + } + + // Construct using com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + policy_ = 0; + if (selectedPvcsBuilder_ != null) { + selectedPvcsBuilder_.clear(); + } + scopeCase_ = 0; + scope_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.RestoreProto + .internal_static_google_cloud_gkebackup_v1_VolumeDataRestorePolicyOverride_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride + getDefaultInstanceForType() { + return com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride build() { + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride buildPartial() { + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride result = + new com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.policy_ = policy_; + } + } + + private void buildPartialOneofs( + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride result) { + result.scopeCase_ = scopeCase_; + result.scope_ = this.scope_; + if (scopeCase_ == 2 && selectedPvcsBuilder_ != null) { + result.scope_ = selectedPvcsBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride) { + return mergeFrom((com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride other) { + if (other + == com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.getDefaultInstance()) + return this; + if (other.policy_ != 0) { + setPolicyValue(other.getPolicyValue()); + } + switch (other.getScopeCase()) { + case SELECTED_PVCS: + { + mergeSelectedPvcs(other.getSelectedPvcs()); + break; + } + case SCOPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + policy_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getSelectedPvcsFieldBuilder().getBuilder(), extensionRegistry); + scopeCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int scopeCase_ = 0; + private java.lang.Object scope_; + + public ScopeCase getScopeCase() { + return ScopeCase.forNumber(scopeCase_); + } + + public Builder clearScope() { + scopeCase_ = 0; + scope_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private int policy_ = 0; + /** + * + * + *
+     * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
+     * scope.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for policy. + */ + @java.lang.Override + public int getPolicyValue() { + return policy_; + } + /** + * + * + *
+     * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
+     * scope.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for policy to set. + * @return This builder for chaining. + */ + public Builder setPolicyValue(int value) { + policy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
+     * scope.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policy. + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy getPolicy() { + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy result = + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.forNumber(policy_); + return result == null + ? com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
+     * scope.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The policy to set. + * @return This builder for chaining. + */ + public Builder setPolicy( + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + policy_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
+     * scope.
+     * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearPolicy() { + bitField0_ = (bitField0_ & ~0x00000001); + policy_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.NamespacedNames, + com.google.cloud.gkebackup.v1.NamespacedNames.Builder, + com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> + selectedPvcsBuilder_; + /** + * + * + *
+     * A list of PVCs to apply the policy override to.
+     * 
+ * + * .google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2; + * + * @return Whether the selectedPvcs field is set. + */ + @java.lang.Override + public boolean hasSelectedPvcs() { + return scopeCase_ == 2; + } + /** + * + * + *
+     * A list of PVCs to apply the policy override to.
+     * 
+ * + * .google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2; + * + * @return The selectedPvcs. + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.NamespacedNames getSelectedPvcs() { + if (selectedPvcsBuilder_ == null) { + if (scopeCase_ == 2) { + return (com.google.cloud.gkebackup.v1.NamespacedNames) scope_; + } + return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); + } else { + if (scopeCase_ == 2) { + return selectedPvcsBuilder_.getMessage(); + } + return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of PVCs to apply the policy override to.
+     * 
+ * + * .google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2; + */ + public Builder setSelectedPvcs(com.google.cloud.gkebackup.v1.NamespacedNames value) { + if (selectedPvcsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scope_ = value; + onChanged(); + } else { + selectedPvcsBuilder_.setMessage(value); + } + scopeCase_ = 2; + return this; + } + /** + * + * + *
+     * A list of PVCs to apply the policy override to.
+     * 
+ * + * .google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2; + */ + public Builder setSelectedPvcs( + com.google.cloud.gkebackup.v1.NamespacedNames.Builder builderForValue) { + if (selectedPvcsBuilder_ == null) { + scope_ = builderForValue.build(); + onChanged(); + } else { + selectedPvcsBuilder_.setMessage(builderForValue.build()); + } + scopeCase_ = 2; + return this; + } + /** + * + * + *
+     * A list of PVCs to apply the policy override to.
+     * 
+ * + * .google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2; + */ + public Builder mergeSelectedPvcs(com.google.cloud.gkebackup.v1.NamespacedNames value) { + if (selectedPvcsBuilder_ == null) { + if (scopeCase_ == 2 + && scope_ != com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance()) { + scope_ = + com.google.cloud.gkebackup.v1.NamespacedNames.newBuilder( + (com.google.cloud.gkebackup.v1.NamespacedNames) scope_) + .mergeFrom(value) + .buildPartial(); + } else { + scope_ = value; + } + onChanged(); + } else { + if (scopeCase_ == 2) { + selectedPvcsBuilder_.mergeFrom(value); + } else { + selectedPvcsBuilder_.setMessage(value); + } + } + scopeCase_ = 2; + return this; + } + /** + * + * + *
+     * A list of PVCs to apply the policy override to.
+     * 
+ * + * .google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2; + */ + public Builder clearSelectedPvcs() { + if (selectedPvcsBuilder_ == null) { + if (scopeCase_ == 2) { + scopeCase_ = 0; + scope_ = null; + onChanged(); + } + } else { + if (scopeCase_ == 2) { + scopeCase_ = 0; + scope_ = null; + } + selectedPvcsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of PVCs to apply the policy override to.
+     * 
+ * + * .google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2; + */ + public com.google.cloud.gkebackup.v1.NamespacedNames.Builder getSelectedPvcsBuilder() { + return getSelectedPvcsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A list of PVCs to apply the policy override to.
+     * 
+ * + * .google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2; + */ + @java.lang.Override + public com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedPvcsOrBuilder() { + if ((scopeCase_ == 2) && (selectedPvcsBuilder_ != null)) { + return selectedPvcsBuilder_.getMessageOrBuilder(); + } else { + if (scopeCase_ == 2) { + return (com.google.cloud.gkebackup.v1.NamespacedNames) scope_; + } + return com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of PVCs to apply the policy override to.
+     * 
+ * + * .google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.NamespacedNames, + com.google.cloud.gkebackup.v1.NamespacedNames.Builder, + com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder> + getSelectedPvcsFieldBuilder() { + if (selectedPvcsBuilder_ == null) { + if (!(scopeCase_ == 2)) { + scope_ = com.google.cloud.gkebackup.v1.NamespacedNames.getDefaultInstance(); + } + selectedPvcsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkebackup.v1.NamespacedNames, + com.google.cloud.gkebackup.v1.NamespacedNames.Builder, + com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder>( + (com.google.cloud.gkebackup.v1.NamespacedNames) scope_, + getParentForChildren(), + isClean()); + scope_ = null; + } + scopeCase_ = 2; + onChanged(); + return selectedPvcsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride) + private static final com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride(); + } + + public static com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VolumeDataRestorePolicyOverride parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeDataRestorePolicyOverrideOrBuilder.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeDataRestorePolicyOverrideOrBuilder.java new file mode 100644 index 000000000000..a02f0682a9a3 --- /dev/null +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeDataRestorePolicyOverrideOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/restore.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gkebackup.v1; + +public interface VolumeDataRestorePolicyOverrideOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
+   * scope.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for policy. + */ + int getPolicyValue(); + /** + * + * + *
+   * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
+   * scope.
+   * 
+ * + * + * .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The policy. + */ + com.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy getPolicy(); + + /** + * + * + *
+   * A list of PVCs to apply the policy override to.
+   * 
+ * + * .google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2; + * + * @return Whether the selectedPvcs field is set. + */ + boolean hasSelectedPvcs(); + /** + * + * + *
+   * A list of PVCs to apply the policy override to.
+   * 
+ * + * .google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2; + * + * @return The selectedPvcs. + */ + com.google.cloud.gkebackup.v1.NamespacedNames getSelectedPvcs(); + /** + * + * + *
+   * A list of PVCs to apply the policy override to.
+   * 
+ * + * .google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2; + */ + com.google.cloud.gkebackup.v1.NamespacedNamesOrBuilder getSelectedPvcsOrBuilder(); + + com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.ScopeCase getScopeCase(); +} diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeTypeEnum.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeTypeEnum.java new file mode 100644 index 000000000000..2b1a71941564 --- /dev/null +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeTypeEnum.java @@ -0,0 +1,566 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/common.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gkebackup.v1; + +/** + * + * + *
+ * Message to encapsulate VolumeType enum.
+ * 
+ * + * Protobuf type {@code google.cloud.gkebackup.v1.VolumeTypeEnum} + */ +public final class VolumeTypeEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.VolumeTypeEnum) + VolumeTypeEnumOrBuilder { + private static final long serialVersionUID = 0L; + // Use VolumeTypeEnum.newBuilder() to construct. + private VolumeTypeEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VolumeTypeEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VolumeTypeEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.CommonProto + .internal_static_google_cloud_gkebackup_v1_VolumeTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkebackup.v1.CommonProto + .internal_static_google_cloud_gkebackup_v1_VolumeTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkebackup.v1.VolumeTypeEnum.class, + com.google.cloud.gkebackup.v1.VolumeTypeEnum.Builder.class); + } + + /** + * + * + *
+   * Supported volume types.
+   * 
+ * + * Protobuf enum {@code google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType} + */ + public enum VolumeType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default
+     * 
+ * + * VOLUME_TYPE_UNSPECIFIED = 0; + */ + VOLUME_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Compute Engine Persistent Disk volume
+     * 
+ * + * GCE_PERSISTENT_DISK = 1; + */ + GCE_PERSISTENT_DISK(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default
+     * 
+ * + * VOLUME_TYPE_UNSPECIFIED = 0; + */ + public static final int VOLUME_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Compute Engine Persistent Disk volume
+     * 
+ * + * GCE_PERSISTENT_DISK = 1; + */ + public static final int GCE_PERSISTENT_DISK_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static VolumeType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static VolumeType forNumber(int value) { + switch (value) { + case 0: + return VOLUME_TYPE_UNSPECIFIED; + case 1: + return GCE_PERSISTENT_DISK; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public VolumeType findValueByNumber(int number) { + return VolumeType.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() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.VolumeTypeEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final VolumeType[] VALUES = values(); + + public static VolumeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private VolumeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType) + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkebackup.v1.VolumeTypeEnum)) { + return super.equals(obj); + } + com.google.cloud.gkebackup.v1.VolumeTypeEnum other = + (com.google.cloud.gkebackup.v1.VolumeTypeEnum) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkebackup.v1.VolumeTypeEnum parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.VolumeTypeEnum 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.gkebackup.v1.VolumeTypeEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.VolumeTypeEnum parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkebackup.v1.VolumeTypeEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkebackup.v1.VolumeTypeEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkebackup.v1.VolumeTypeEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.VolumeTypeEnum 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.gkebackup.v1.VolumeTypeEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.VolumeTypeEnum 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.gkebackup.v1.VolumeTypeEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkebackup.v1.VolumeTypeEnum 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gkebackup.v1.VolumeTypeEnum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message to encapsulate VolumeType enum.
+   * 
+ * + * Protobuf type {@code google.cloud.gkebackup.v1.VolumeTypeEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.VolumeTypeEnum) + com.google.cloud.gkebackup.v1.VolumeTypeEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkebackup.v1.CommonProto + .internal_static_google_cloud_gkebackup_v1_VolumeTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkebackup.v1.CommonProto + .internal_static_google_cloud_gkebackup_v1_VolumeTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkebackup.v1.VolumeTypeEnum.class, + com.google.cloud.gkebackup.v1.VolumeTypeEnum.Builder.class); + } + + // Construct using com.google.cloud.gkebackup.v1.VolumeTypeEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkebackup.v1.CommonProto + .internal_static_google_cloud_gkebackup_v1_VolumeTypeEnum_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.VolumeTypeEnum getDefaultInstanceForType() { + return com.google.cloud.gkebackup.v1.VolumeTypeEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.VolumeTypeEnum build() { + com.google.cloud.gkebackup.v1.VolumeTypeEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.VolumeTypeEnum buildPartial() { + com.google.cloud.gkebackup.v1.VolumeTypeEnum result = + new com.google.cloud.gkebackup.v1.VolumeTypeEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkebackup.v1.VolumeTypeEnum) { + return mergeFrom((com.google.cloud.gkebackup.v1.VolumeTypeEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkebackup.v1.VolumeTypeEnum other) { + if (other == com.google.cloud.gkebackup.v1.VolumeTypeEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkebackup.v1.VolumeTypeEnum) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.VolumeTypeEnum) + private static final com.google.cloud.gkebackup.v1.VolumeTypeEnum DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.VolumeTypeEnum(); + } + + public static com.google.cloud.gkebackup.v1.VolumeTypeEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VolumeTypeEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkebackup.v1.VolumeTypeEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeTypeEnumOrBuilder.java b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeTypeEnumOrBuilder.java new file mode 100644 index 000000000000..24d934e528cb --- /dev/null +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/java/com/google/cloud/gkebackup/v1/VolumeTypeEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkebackup/v1/common.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gkebackup.v1; + +public interface VolumeTypeEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.VolumeTypeEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup.proto b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup.proto index 1b53af920980..9300857f823f 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup.proto +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup.proto @@ -240,4 +240,13 @@ message Backup { // Output only. The size of the config backup in bytes. int64 config_backup_size_bytes = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If false, Backup will fail when Backup for GKE detects + // Kubernetes configuration that is non-standard or + // requires additional setup to restore. + // + // Inherited from the parent BackupPlan's + // [permissive_mode][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.permissive_mode] + // value. + bool permissive_mode = 28 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup_plan.proto b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup_plan.proto index 9d86dc541ccf..fd2fe0dbd02b 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup_plan.proto +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/backup_plan.proto @@ -156,6 +156,13 @@ message BackupPlan { // // Default (empty): Config backup artifacts will not be encrypted. EncryptionKey encryption_key = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If false, Backups will fail when Backup for GKE detects + // Kubernetes configuration that is non-standard or + // requires additional setup to restore. + // + // Default: False + bool permissive_mode = 7 [(google.api.field_behavior) = OPTIONAL]; } // State @@ -309,8 +316,10 @@ message ExclusionWindow { // UTC. google.type.TimeOfDay start_time = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Specifies duration of the window. Restrictions for duration based - // on the recurrence type to allow some time for backup to happen: + // Required. Specifies duration of the window. + // Duration must be >= 5 minutes and < (target RPO - 20 minutes). + // Additional restrictions based on the recurrence type to allow some time for + // backup to happen: // - single_occurrence_date: no restriction, but UI may warn about this when // duration >= target RPO // - daily window: duration < 24 hours diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/common.proto b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/common.proto index 06cf334a6331..b26e46d1cabb 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/common.proto +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/common.proto @@ -61,3 +61,15 @@ message EncryptionKey { } ]; } + +// Message to encapsulate VolumeType enum. +message VolumeTypeEnum { + // Supported volume types. + enum VolumeType { + // Default + VOLUME_TYPE_UNSPECIFIED = 0; + + // Compute Engine Persistent Disk volume + GCE_PERSISTENT_DISK = 1; + } +} diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/restore.proto b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/restore.proto index f3f3a44f7ee0..5adeb0fc20b0 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/restore.proto +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/src/main/proto/google/cloud/gkebackup/v1/restore.proto @@ -61,6 +61,26 @@ message Restore { DELETING = 5; } + // Defines the filter for `Restore`. This filter can be used to further + // refine the resource selection of the `Restore` beyond the coarse-grained + // scope defined in the `RestorePlan`. `exclusion_filters` take precedence + // over `inclusion_filters`. If a resource matches both `inclusion_filters` + // and `exclusion_filters`, it will not be restored. + message Filter { + // Optional. Selects resources for restoration. If specified, only resources + // which match `inclusion_filters` will be selected for restoration. A + // resource will be selected if it matches any `ResourceSelector` of the + // `inclusion_filters`. + repeated ResourceSelector inclusion_filters = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Excludes resources from restoration. If specified, + // a resource will not be restored if it matches + // any `ResourceSelector` of the `exclusion_filters`. + repeated ResourceSelector exclusion_filters = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + // Output only. The full name of the Restore resource. // Format: `projects/*/locations/*/restorePlans/*/restores/*` string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -153,6 +173,27 @@ message Restore { // `UpdateRestore` or `DeleteRestore` to ensure that their change will be // applied to the same version of the resource. string etag = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Immutable. Filters resources for `Restore`. If not specified, the + // scope of the restore will remain the same as defined in the `RestorePlan`. + // If this is specified, and no resources are matched by the + // `inclusion_filters` or everyting is excluded by the `exclusion_filters`, + // nothing will be restored. This filter can only be specified if the value of + // [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode] + // is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or + // `MERGE_REPLACE_ON_CONFLICT`. + Filter filter = 18 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; + + // Optional. Immutable. Overrides the volume data restore policies selected in + // the Restore Config for override-scoped resources. + repeated VolumeDataRestorePolicyOverride + volume_data_restore_policy_overrides = 19 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; } // Configuration of a restore. @@ -216,6 +257,39 @@ message RestoreConfig { // occurs during the restore process itself (e.g., because an out of band // process creates conflicting resources), a conflict will be reported. FAIL_ON_CONFLICT = 2; + + // This mode merges the backup and the target cluster and skips the + // conflicting resources. If a single resource to restore exists in the + // cluster before restoration, the resource will be skipped, otherwise it + // will be restored. + MERGE_SKIP_ON_CONFLICT = 3; + + // This mode merges the backup and the target cluster and skips the + // conflicting resources except volume data. If a PVC to restore already + // exists, this mode will restore/reconnect the volume without overwriting + // the PVC. It is similar to MERGE_SKIP_ON_CONFLICT except that it will + // apply the volume data policy for the conflicting PVCs: + // - RESTORE_VOLUME_DATA_FROM_BACKUP: restore data only and respect the + // reclaim policy of the original PV; + // - REUSE_VOLUME_HANDLE_FROM_BACKUP: reconnect and respect the reclaim + // policy of the original PV; + // - NO_VOLUME_DATA_RESTORATION: new provision and respect the reclaim + // policy of the original PV. + // Note that this mode could cause data loss as the original PV can be + // retained or deleted depending on its reclaim policy. + MERGE_REPLACE_VOLUME_ON_CONFLICT = 4; + + // This mode merges the backup and the target cluster and replaces the + // conflicting resources with the ones in the backup. If a single resource + // to restore exists in the cluster before restoration, the resource will be + // replaced with the one from the backup. To replace an existing resource, + // the first attempt is to update the resource to match the one from the + // backup; if the update fails, the second attempt is to delete the resource + // and restore it from the backup. + // Note that this mode could cause data loss as it replaces the existing + // resources in the target cluster, and the original PV can be retained or + // deleted depending on its reclaim policy. + MERGE_REPLACE_ON_CONFLICT = 5; } // This is a direct map to the Kubernetes GroupKind type @@ -426,6 +500,40 @@ message RestoreConfig { string description = 3 [(google.api.field_behavior) = OPTIONAL]; } + // Binds resources in the scope to the given VolumeDataRestorePolicy. + message VolumeDataRestorePolicyBinding { + // Required. The VolumeDataRestorePolicy to apply when restoring volumes in + // scope. + VolumeDataRestorePolicy policy = 1 [(google.api.field_behavior) = REQUIRED]; + + oneof scope { + // The volume type, as determined by the PVC's bound PV, + // to apply the policy to. + VolumeTypeEnum.VolumeType volume_type = 2; + } + } + + // Allows customers to specify dependencies between resources + // that Backup for GKE can use to compute a resasonable restore order. + message RestoreOrder { + // Defines a dependency between two group kinds. + message GroupKindDependency { + // Required. The satisfying group kind must be restored first + // in order to satisfy the dependency. + GroupKind satisfying = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The requiring group kind requires that the other + // group kind be restored first. + GroupKind requiring = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Optional. Contains a list of group kind dependency pairs provided + // by the customer, that is used by Backup for GKE to + // generate a group kind restore order. + repeated GroupKindDependency group_kind_dependencies = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + // Optional. Specifies the mechanism to be used to restore volume data. // Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as // NO_VOLUME_DATA_RESTORATION). @@ -500,4 +608,59 @@ message RestoreConfig { // transformation will occur. repeated TransformationRule transformation_rules = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A table that binds volumes by their scope to a restore policy. + // Bindings must have a unique scope. Any volumes not scoped in the bindings + // are subject to the policy defined in volume_data_restore_policy. + repeated VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = + 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. RestoreOrder contains custom ordering to use on a Restore. + RestoreOrder restore_order = 13 [(google.api.field_behavior) = OPTIONAL]; +} + +// Defines a selector to identify a single or a group of resources. +// Conditions in the selector are optional, but at least one field +// should be set to a non-empty value. If a condition is not specified, +// no restrictions will be applied on that dimension. +// If more than one condition is specified, a resource will be selected +// if and only if all conditions are met. +message ResourceSelector { + // Optional. Selects resources using their Kubernetes GroupKinds. If + // specified, only resources of provided GroupKind will be selected. + RestoreConfig.GroupKind group_kind = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Selects resources using their resource names. If specified, + // only resources with the provided name will be selected. + string name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Selects resources using their namespaces. This only applies to + // namespace scoped resources and cannot be used for selecting + // cluster scoped resources. If specified, only resources in the provided + // namespace will be selected. If not specified, the filter will apply to + // both cluster scoped and namespace scoped resources (e.g. name or label). + // The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource + // itself will be restored if and only if any resources within the namespace + // are restored. + string namespace = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Selects resources using Kubernetes + // [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/). + // If specified, a resource will be selected if and only if the resource + // has all of the provided labels and all the label values match. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Defines an override to apply a VolumeDataRestorePolicy for scoped resources. +message VolumeDataRestorePolicyOverride { + // Required. The VolumeDataRestorePolicy to apply when restoring volumes in + // scope. + RestoreConfig.VolumeDataRestorePolicy policy = 1 + [(google.api.field_behavior) = REQUIRED]; + + oneof scope { + // A list of PVCs to apply the policy override to. + NamespacedNames selected_pvcs = 2; + } } diff --git a/java-gkehub/.OwlBot-hermetic.yaml b/java-gkehub/.OwlBot-hermetic.yaml index 4d375372880a..433985e0407a 100644 --- a/java-gkehub/.OwlBot-hermetic.yaml +++ b/java-gkehub/.OwlBot-hermetic.yaml @@ -22,6 +22,8 @@ deep-remove-regex: deep-copy-regex: - source: "/google/cloud/gkehub/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-gkehub/$1/proto-google-cloud-gkehub-$1/src" +- source: "/google/cloud/gkehub/servicemesh/(v.*)/.*-java/proto-google-.*/src" + dest: "/owl-bot-staging/java-gkehub/$1/proto-google-cloud-gkehub-$1/src" - source: "/google/cloud/gkehub/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-gkehub/$1/grpc-google-cloud-gkehub-$1/src" diff --git a/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1beta/reflect-config.json b/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1beta/reflect-config.json index 8702fa3d5941..57fd4666a063 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1beta/reflect-config.json +++ b/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1beta/reflect-config.json @@ -872,6 +872,168 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec$ControlPlaneManagement", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec$Management", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.servicemesh.v1beta.MembershipState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.servicemesh.v1beta.MembershipState$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.servicemesh.v1beta.MembershipState$Condition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.servicemesh.v1beta.MembershipState$Condition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.servicemesh.v1beta.MembershipState$Condition$Code", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.servicemesh.v1beta.MembershipState$Condition$Severity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.servicemesh.v1beta.MembershipState$ControlPlaneManagement", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.servicemesh.v1beta.MembershipState$ControlPlaneManagement$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.servicemesh.v1beta.MembershipState$ControlPlaneManagement$Implementation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.servicemesh.v1beta.MembershipState$DataPlaneManagement", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.servicemesh.v1beta.MembershipState$DataPlaneManagement$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.servicemesh.v1beta.MembershipState$LifecycleState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkehub.v1beta.CommonFeatureSpec", "queryAllDeclaredConstructors": true, diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/MembershipSpec.java b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/MembershipSpec.java new file mode 100644 index 000000000000..a6483a303d4c --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/MembershipSpec.java @@ -0,0 +1,1146 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gkehub.servicemesh.v1beta; + +/** + * + * + *
+ * **Service Mesh**: Spec for a single Membership for the servicemesh feature
+ * 
+ * + * Protobuf type {@code google.cloud.gkehub.servicemesh.v1beta.MembershipSpec} + */ +public final class MembershipSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.servicemesh.v1beta.MembershipSpec) + MembershipSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use MembershipSpec.newBuilder() to construct. + private MembershipSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MembershipSpec() { + controlPlane_ = 0; + management_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MembershipSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.class, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Builder.class); + } + + /** + * + * + *
+   * Whether to automatically manage Service Mesh control planes.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement} + */ + public enum ControlPlaneManagement implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified
+     * 
+ * + * CONTROL_PLANE_MANAGEMENT_UNSPECIFIED = 0; + */ + CONTROL_PLANE_MANAGEMENT_UNSPECIFIED(0), + /** + * + * + *
+     * Google should provision a control plane revision and make it available in
+     * the cluster. Google will enroll this revision in a release channel and
+     * keep it up to date. The control plane revision may be a managed service,
+     * or a managed install.
+     * 
+ * + * AUTOMATIC = 1; + */ + AUTOMATIC(1), + /** + * + * + *
+     * User will manually configure the control plane (e.g. via CLI, or via the
+     * ControlPlaneRevision KRM API)
+     * 
+ * + * MANUAL = 2; + */ + MANUAL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified
+     * 
+ * + * CONTROL_PLANE_MANAGEMENT_UNSPECIFIED = 0; + */ + public static final int CONTROL_PLANE_MANAGEMENT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Google should provision a control plane revision and make it available in
+     * the cluster. Google will enroll this revision in a release channel and
+     * keep it up to date. The control plane revision may be a managed service,
+     * or a managed install.
+     * 
+ * + * AUTOMATIC = 1; + */ + public static final int AUTOMATIC_VALUE = 1; + /** + * + * + *
+     * User will manually configure the control plane (e.g. via CLI, or via the
+     * ControlPlaneRevision KRM API)
+     * 
+ * + * MANUAL = 2; + */ + public static final int MANUAL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ControlPlaneManagement valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ControlPlaneManagement forNumber(int value) { + switch (value) { + case 0: + return CONTROL_PLANE_MANAGEMENT_UNSPECIFIED; + case 1: + return AUTOMATIC; + case 2: + return MANUAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ControlPlaneManagement findValueByNumber(int number) { + return ControlPlaneManagement.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() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ControlPlaneManagement[] VALUES = values(); + + public static ControlPlaneManagement valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ControlPlaneManagement(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement) + } + + /** + * + * + *
+   * Whether to automatically manage Service Mesh.
+   * 
+ * + * Protobuf enum {@code google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management} + */ + public enum Management implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified
+     * 
+ * + * MANAGEMENT_UNSPECIFIED = 0; + */ + MANAGEMENT_UNSPECIFIED(0), + /** + * + * + *
+     * Google should manage my Service Mesh for the cluster.
+     * 
+ * + * MANAGEMENT_AUTOMATIC = 1; + */ + MANAGEMENT_AUTOMATIC(1), + /** + * + * + *
+     * User will manually configure their service mesh components.
+     * 
+ * + * MANAGEMENT_MANUAL = 2; + */ + MANAGEMENT_MANUAL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified
+     * 
+ * + * MANAGEMENT_UNSPECIFIED = 0; + */ + public static final int MANAGEMENT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Google should manage my Service Mesh for the cluster.
+     * 
+ * + * MANAGEMENT_AUTOMATIC = 1; + */ + public static final int MANAGEMENT_AUTOMATIC_VALUE = 1; + /** + * + * + *
+     * User will manually configure their service mesh components.
+     * 
+ * + * MANAGEMENT_MANUAL = 2; + */ + public static final int MANAGEMENT_MANUAL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Management valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Management forNumber(int value) { + switch (value) { + case 0: + return MANAGEMENT_UNSPECIFIED; + case 1: + return MANAGEMENT_AUTOMATIC; + case 2: + return MANAGEMENT_MANUAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Management findValueByNumber(int number) { + return Management.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() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final Management[] VALUES = values(); + + public static Management valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Management(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management) + } + + public static final int CONTROL_PLANE_FIELD_NUMBER = 1; + private int controlPlane_ = 0; + /** + * + * + *
+   * Deprecated: use `management` instead
+   * Enables automatic control plane management.
+   * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement control_plane = 1 [deprecated = true]; + * + * + * @deprecated google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.control_plane is deprecated. + * See google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto;l=60 + * @return The enum numeric value on the wire for controlPlane. + */ + @java.lang.Override + @java.lang.Deprecated + public int getControlPlaneValue() { + return controlPlane_; + } + /** + * + * + *
+   * Deprecated: use `management` instead
+   * Enables automatic control plane management.
+   * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement control_plane = 1 [deprecated = true]; + * + * + * @deprecated google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.control_plane is deprecated. + * See google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto;l=60 + * @return The controlPlane. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement + getControlPlane() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement result = + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement.forNumber( + controlPlane_); + return result == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement + .UNRECOGNIZED + : result; + } + + public static final int MANAGEMENT_FIELD_NUMBER = 4; + private int management_ = 0; + /** + * + * + *
+   * Enables automatic Service Mesh management.
+   * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management management = 4; + * + * @return The enum numeric value on the wire for management. + */ + @java.lang.Override + public int getManagementValue() { + return management_; + } + /** + * + * + *
+   * Enables automatic Service Mesh management.
+   * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management management = 4; + * + * @return The management. + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management getManagement() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management result = + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management.forNumber(management_); + return result == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (controlPlane_ + != com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement + .CONTROL_PLANE_MANAGEMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, controlPlane_); + } + if (management_ + != com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management + .MANAGEMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, management_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (controlPlane_ + != com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement + .CONTROL_PLANE_MANAGEMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, controlPlane_); + } + if (management_ + != com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management + .MANAGEMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, management_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec)) { + return super.equals(obj); + } + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec other = + (com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec) obj; + + if (controlPlane_ != other.controlPlane_) return false; + if (management_ != other.management_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTROL_PLANE_FIELD_NUMBER; + hash = (53 * hash) + controlPlane_; + hash = (37 * hash) + MANAGEMENT_FIELD_NUMBER; + hash = (53 * hash) + management_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec 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.gkehub.servicemesh.v1beta.MembershipSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec 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.gkehub.servicemesh.v1beta.MembershipSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec 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.gkehub.servicemesh.v1beta.MembershipSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * **Service Mesh**: Spec for a single Membership for the servicemesh feature
+   * 
+ * + * Protobuf type {@code google.cloud.gkehub.servicemesh.v1beta.MembershipSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.servicemesh.v1beta.MembershipSpec) + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.class, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Builder.class); + } + + // Construct using com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + controlPlane_ = 0; + management_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec getDefaultInstanceForType() { + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec build() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec buildPartial() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec result = + new com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.controlPlane_ = controlPlane_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.management_ = management_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec) { + return mergeFrom((com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec other) { + if (other == com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.getDefaultInstance()) + return this; + if (other.controlPlane_ != 0) { + setControlPlaneValue(other.getControlPlaneValue()); + } + if (other.management_ != 0) { + setManagementValue(other.getManagementValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + controlPlane_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 32: + { + management_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int controlPlane_ = 0; + /** + * + * + *
+     * Deprecated: use `management` instead
+     * Enables automatic control plane management.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement control_plane = 1 [deprecated = true]; + * + * + * @deprecated google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.control_plane is + * deprecated. See google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto;l=60 + * @return The enum numeric value on the wire for controlPlane. + */ + @java.lang.Override + @java.lang.Deprecated + public int getControlPlaneValue() { + return controlPlane_; + } + /** + * + * + *
+     * Deprecated: use `management` instead
+     * Enables automatic control plane management.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement control_plane = 1 [deprecated = true]; + * + * + * @deprecated google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.control_plane is + * deprecated. See google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto;l=60 + * @param value The enum numeric value on the wire for controlPlane to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setControlPlaneValue(int value) { + controlPlane_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated: use `management` instead
+     * Enables automatic control plane management.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement control_plane = 1 [deprecated = true]; + * + * + * @deprecated google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.control_plane is + * deprecated. See google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto;l=60 + * @return The controlPlane. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement + getControlPlane() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement result = + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement + .forNumber(controlPlane_); + return result == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Deprecated: use `management` instead
+     * Enables automatic control plane management.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement control_plane = 1 [deprecated = true]; + * + * + * @deprecated google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.control_plane is + * deprecated. See google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto;l=60 + * @param value The controlPlane to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setControlPlane( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + controlPlane_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated: use `management` instead
+     * Enables automatic control plane management.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement control_plane = 1 [deprecated = true]; + * + * + * @deprecated google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.control_plane is + * deprecated. See google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto;l=60 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearControlPlane() { + bitField0_ = (bitField0_ & ~0x00000001); + controlPlane_ = 0; + onChanged(); + return this; + } + + private int management_ = 0; + /** + * + * + *
+     * Enables automatic Service Mesh management.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management management = 4; + * + * + * @return The enum numeric value on the wire for management. + */ + @java.lang.Override + public int getManagementValue() { + return management_; + } + /** + * + * + *
+     * Enables automatic Service Mesh management.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management management = 4; + * + * + * @param value The enum numeric value on the wire for management to set. + * @return This builder for chaining. + */ + public Builder setManagementValue(int value) { + management_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Enables automatic Service Mesh management.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management management = 4; + * + * + * @return The management. + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management getManagement() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management result = + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management.forNumber( + management_); + return result == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Enables automatic Service Mesh management.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management management = 4; + * + * + * @param value The management to set. + * @return This builder for chaining. + */ + public Builder setManagement( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + management_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Enables automatic Service Mesh management.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management management = 4; + * + * + * @return This builder for chaining. + */ + public Builder clearManagement() { + bitField0_ = (bitField0_ & ~0x00000002); + management_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.servicemesh.v1beta.MembershipSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.servicemesh.v1beta.MembershipSpec) + private static final com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec(); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/MembershipSpecOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/MembershipSpecOrBuilder.java new file mode 100644 index 000000000000..8b9d7b699c3a --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/MembershipSpecOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gkehub.servicemesh.v1beta; + +public interface MembershipSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.servicemesh.v1beta.MembershipSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Deprecated: use `management` instead
+   * Enables automatic control plane management.
+   * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement control_plane = 1 [deprecated = true]; + * + * + * @deprecated google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.control_plane is deprecated. + * See google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto;l=60 + * @return The enum numeric value on the wire for controlPlane. + */ + @java.lang.Deprecated + int getControlPlaneValue(); + /** + * + * + *
+   * Deprecated: use `management` instead
+   * Enables automatic control plane management.
+   * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement control_plane = 1 [deprecated = true]; + * + * + * @deprecated google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.control_plane is deprecated. + * See google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto;l=60 + * @return The controlPlane. + */ + @java.lang.Deprecated + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement + getControlPlane(); + + /** + * + * + *
+   * Enables automatic Service Mesh management.
+   * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management management = 4; + * + * @return The enum numeric value on the wire for management. + */ + int getManagementValue(); + /** + * + * + *
+   * Enables automatic Service Mesh management.
+   * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management management = 4; + * + * @return The management. + */ + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management getManagement(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/MembershipState.java b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/MembershipState.java new file mode 100644 index 000000000000..0f57b7193bbb --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/MembershipState.java @@ -0,0 +1,6950 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gkehub.servicemesh.v1beta; + +/** + * + * + *
+ * **Service Mesh**: State for a single Membership, as analyzed by the Service
+ * Mesh Hub Controller.
+ * 
+ * + * Protobuf type {@code google.cloud.gkehub.servicemesh.v1beta.MembershipState} + */ +public final class MembershipState extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.servicemesh.v1beta.MembershipState) + MembershipStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use MembershipState.newBuilder() to construct. + private MembershipState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MembershipState() { + conditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MembershipState(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.class, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Builder.class); + } + + /** + * + * + *
+   * Lifecycle state of Service Mesh components.
+   * 
+ * + * Protobuf enum {@code google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState} + */ + public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified
+     * 
+ * + * LIFECYCLE_STATE_UNSPECIFIED = 0; + */ + LIFECYCLE_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * DISABLED means that the component is not enabled.
+     * 
+ * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
+     * FAILED_PRECONDITION means that provisioning cannot proceed because of
+     * some characteristic of the member cluster.
+     * 
+ * + * FAILED_PRECONDITION = 2; + */ + FAILED_PRECONDITION(2), + /** + * + * + *
+     * PROVISIONING means that provisioning is in progress.
+     * 
+ * + * PROVISIONING = 3; + */ + PROVISIONING(3), + /** + * + * + *
+     * ACTIVE means that the component is ready for use.
+     * 
+ * + * ACTIVE = 4; + */ + ACTIVE(4), + /** + * + * + *
+     * STALLED means that provisioning could not be done.
+     * 
+ * + * STALLED = 5; + */ + STALLED(5), + /** + * + * + *
+     * NEEDS_ATTENTION means that the component is ready, but some user
+     * intervention is required. (For example that the user should migrate
+     * workloads to a new control plane revision.)
+     * 
+ * + * NEEDS_ATTENTION = 6; + */ + NEEDS_ATTENTION(6), + /** + * + * + *
+     * DEGRADED means that the component is ready, but operating in a
+     * degraded state.
+     * 
+ * + * DEGRADED = 7; + */ + DEGRADED(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified
+     * 
+ * + * LIFECYCLE_STATE_UNSPECIFIED = 0; + */ + public static final int LIFECYCLE_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * DISABLED means that the component is not enabled.
+     * 
+ * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + * + * + *
+     * FAILED_PRECONDITION means that provisioning cannot proceed because of
+     * some characteristic of the member cluster.
+     * 
+ * + * FAILED_PRECONDITION = 2; + */ + public static final int FAILED_PRECONDITION_VALUE = 2; + /** + * + * + *
+     * PROVISIONING means that provisioning is in progress.
+     * 
+ * + * PROVISIONING = 3; + */ + public static final int PROVISIONING_VALUE = 3; + /** + * + * + *
+     * ACTIVE means that the component is ready for use.
+     * 
+ * + * ACTIVE = 4; + */ + public static final int ACTIVE_VALUE = 4; + /** + * + * + *
+     * STALLED means that provisioning could not be done.
+     * 
+ * + * STALLED = 5; + */ + public static final int STALLED_VALUE = 5; + /** + * + * + *
+     * NEEDS_ATTENTION means that the component is ready, but some user
+     * intervention is required. (For example that the user should migrate
+     * workloads to a new control plane revision.)
+     * 
+ * + * NEEDS_ATTENTION = 6; + */ + public static final int NEEDS_ATTENTION_VALUE = 6; + /** + * + * + *
+     * DEGRADED means that the component is ready, but operating in a
+     * degraded state.
+     * 
+ * + * DEGRADED = 7; + */ + public static final int DEGRADED_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LifecycleState valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static LifecycleState forNumber(int value) { + switch (value) { + case 0: + return LIFECYCLE_STATE_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return FAILED_PRECONDITION; + case 3: + return PROVISIONING; + case 4: + return ACTIVE; + case 5: + return STALLED; + case 6: + return NEEDS_ATTENTION; + case 7: + return DEGRADED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LifecycleState findValueByNumber(int number) { + return LifecycleState.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() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final LifecycleState[] VALUES = values(); + + public static LifecycleState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LifecycleState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState) + } + + public interface ControlPlaneManagementOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Explanation of state.
+     * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + java.util.List getDetailsList(); + /** + * + * + *
+     * Explanation of state.
+     * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails getDetails(int index); + /** + * + * + *
+     * Explanation of state.
+     * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + int getDetailsCount(); + /** + * + * + *
+     * Explanation of state.
+     * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + java.util.List + getDetailsOrBuilderList(); + /** + * + * + *
+     * Explanation of state.
+     * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetailsOrBuilder getDetailsOrBuilder( + int index); + + /** + * + * + *
+     * LifecycleState of control plane management.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState state = 3; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+     * LifecycleState of control plane management.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState state = 3; + * + * + * @return The state. + */ + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState getState(); + + /** + * + * + *
+     * Output only. Implementation of managed control plane.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement.Implementation implementation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for implementation. + */ + int getImplementationValue(); + /** + * + * + *
+     * Output only. Implementation of managed control plane.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement.Implementation implementation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The implementation. + */ + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement.Implementation + getImplementation(); + } + /** + * + * + *
+   * Status of control plane management.
+   * 
+ * + * Protobuf type {@code + * google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement} + */ + public static final class ControlPlaneManagement extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement) + ControlPlaneManagementOrBuilder { + private static final long serialVersionUID = 0L; + // Use ControlPlaneManagement.newBuilder() to construct. + private ControlPlaneManagement(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ControlPlaneManagement() { + details_ = java.util.Collections.emptyList(); + state_ = 0; + implementation_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ControlPlaneManagement(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_ControlPlaneManagement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_ControlPlaneManagement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .class, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .Builder.class); + } + + /** + * + * + *
+     * Implementation of managed control plane.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement.Implementation} + */ + public enum Implementation implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified
+       * 
+ * + * IMPLEMENTATION_UNSPECIFIED = 0; + */ + IMPLEMENTATION_UNSPECIFIED(0), + /** + * + * + *
+       * A Google build of istiod is used for the managed control plane.
+       * 
+ * + * ISTIOD = 1; + */ + ISTIOD(1), + /** + * + * + *
+       * Traffic director is used for the managed control plane.
+       * 
+ * + * TRAFFIC_DIRECTOR = 2; + */ + TRAFFIC_DIRECTOR(2), + /** + * + * + *
+       * The control plane implementation is being updated.
+       * 
+ * + * UPDATING = 3; + */ + UPDATING(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Unspecified
+       * 
+ * + * IMPLEMENTATION_UNSPECIFIED = 0; + */ + public static final int IMPLEMENTATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * A Google build of istiod is used for the managed control plane.
+       * 
+ * + * ISTIOD = 1; + */ + public static final int ISTIOD_VALUE = 1; + /** + * + * + *
+       * Traffic director is used for the managed control plane.
+       * 
+ * + * TRAFFIC_DIRECTOR = 2; + */ + public static final int TRAFFIC_DIRECTOR_VALUE = 2; + /** + * + * + *
+       * The control plane implementation is being updated.
+       * 
+ * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Implementation valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Implementation forNumber(int value) { + switch (value) { + case 0: + return IMPLEMENTATION_UNSPECIFIED; + case 1: + return ISTIOD; + case 2: + return TRAFFIC_DIRECTOR; + case 3: + return UPDATING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Implementation findValueByNumber(int number) { + return Implementation.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() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Implementation[] VALUES = values(); + + public static Implementation valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Implementation(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement.Implementation) + } + + public static final int DETAILS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List details_; + /** + * + * + *
+     * Explanation of state.
+     * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + @java.lang.Override + public java.util.List + getDetailsList() { + return details_; + } + /** + * + * + *
+     * Explanation of state.
+     * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.gkehub.servicemesh.v1beta.StatusDetailsOrBuilder> + getDetailsOrBuilderList() { + return details_; + } + /** + * + * + *
+     * Explanation of state.
+     * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + @java.lang.Override + public int getDetailsCount() { + return details_.size(); + } + /** + * + * + *
+     * Explanation of state.
+     * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails getDetails(int index) { + return details_.get(index); + } + /** + * + * + *
+     * Explanation of state.
+     * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.StatusDetailsOrBuilder getDetailsOrBuilder( + int index) { + return details_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + /** + * + * + *
+     * LifecycleState of control plane management.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState state = 3; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * LifecycleState of control plane management.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState state = 3; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState getState() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState result = + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState.forNumber( + state_); + return result == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState.UNRECOGNIZED + : result; + } + + public static final int IMPLEMENTATION_FIELD_NUMBER = 4; + private int implementation_ = 0; + /** + * + * + *
+     * Output only. Implementation of managed control plane.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement.Implementation implementation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for implementation. + */ + @java.lang.Override + public int getImplementationValue() { + return implementation_; + } + /** + * + * + *
+     * Output only. Implementation of managed control plane.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement.Implementation implementation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The implementation. + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .Implementation + getImplementation() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .Implementation + result = + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .Implementation.forNumber(implementation_); + return result == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .Implementation.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < details_.size(); i++) { + output.writeMessage(2, details_.get(i)); + } + if (state_ + != com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState + .LIFECYCLE_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, state_); + } + if (implementation_ + != com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .Implementation.IMPLEMENTATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, implementation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < details_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, details_.get(i)); + } + if (state_ + != com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState + .LIFECYCLE_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (implementation_ + != com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .Implementation.IMPLEMENTATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, implementation_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement)) { + return super.equals(obj); + } + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement other = + (com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement) obj; + + if (!getDetailsList().equals(other.getDetailsList())) return false; + if (state_ != other.state_) return false; + if (implementation_ != other.implementation_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDetailsCount() > 0) { + hash = (37 * hash) + DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDetailsList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + IMPLEMENTATION_FIELD_NUMBER; + hash = (53 * hash) + implementation_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + 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.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + 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.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + 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.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Status of control plane management.
+     * 
+ * + * Protobuf type {@code + * google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement) + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagementOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_ControlPlaneManagement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_ControlPlaneManagement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .class, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .Builder.class); + } + + // Construct using + // com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (detailsBuilder_ == null) { + details_ = java.util.Collections.emptyList(); + } else { + details_ = null; + detailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + implementation_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_ControlPlaneManagement_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + getDefaultInstanceForType() { + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + build() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + buildPartial() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement result = + new com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + result) { + if (detailsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + details_ = java.util.Collections.unmodifiableList(details_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.details_ = details_; + } else { + result.details_ = detailsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.implementation_ = implementation_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement) { + return mergeFrom( + (com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement other) { + if (other + == com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .getDefaultInstance()) return this; + if (detailsBuilder_ == null) { + if (!other.details_.isEmpty()) { + if (details_.isEmpty()) { + details_ = other.details_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDetailsIsMutable(); + details_.addAll(other.details_); + } + onChanged(); + } + } else { + if (!other.details_.isEmpty()) { + if (detailsBuilder_.isEmpty()) { + detailsBuilder_.dispose(); + detailsBuilder_ = null; + details_ = other.details_; + bitField0_ = (bitField0_ & ~0x00000001); + detailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDetailsFieldBuilder() + : null; + } else { + detailsBuilder_.addAllMessages(other.details_); + } + } + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.implementation_ != 0) { + setImplementationValue(other.getImplementationValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails m = + input.readMessage( + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.parser(), + extensionRegistry); + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.add(m); + } else { + detailsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: + { + implementation_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List details_ = + java.util.Collections.emptyList(); + + private void ensureDetailsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + details_ = + new java.util.ArrayList( + details_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails, + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.Builder, + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetailsOrBuilder> + detailsBuilder_; + + /** + * + * + *
+       * Explanation of state.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public java.util.List + getDetailsList() { + if (detailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(details_); + } else { + return detailsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Explanation of state.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public int getDetailsCount() { + if (detailsBuilder_ == null) { + return details_.size(); + } else { + return detailsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Explanation of state.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails getDetails(int index) { + if (detailsBuilder_ == null) { + return details_.get(index); + } else { + return detailsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Explanation of state.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public Builder setDetails( + int index, com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.set(index, value); + onChanged(); + } else { + detailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Explanation of state.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public Builder setDetails( + int index, + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.Builder builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.set(index, builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Explanation of state.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public Builder addDetails(com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.add(value); + onChanged(); + } else { + detailsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Explanation of state.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public Builder addDetails( + int index, com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.add(index, value); + onChanged(); + } else { + detailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Explanation of state.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public Builder addDetails( + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.Builder builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.add(builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Explanation of state.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public Builder addDetails( + int index, + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.Builder builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.add(index, builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Explanation of state.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public Builder addAllDetails( + java.lang.Iterable + values) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, details_); + onChanged(); + } else { + detailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Explanation of state.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public Builder clearDetails() { + if (detailsBuilder_ == null) { + details_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + detailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Explanation of state.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public Builder removeDetails(int index) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.remove(index); + onChanged(); + } else { + detailsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Explanation of state.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.Builder getDetailsBuilder( + int index) { + return getDetailsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Explanation of state.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public com.google.cloud.gkehub.servicemesh.v1beta.StatusDetailsOrBuilder getDetailsOrBuilder( + int index) { + if (detailsBuilder_ == null) { + return details_.get(index); + } else { + return detailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Explanation of state.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public java.util.List< + ? extends com.google.cloud.gkehub.servicemesh.v1beta.StatusDetailsOrBuilder> + getDetailsOrBuilderList() { + if (detailsBuilder_ != null) { + return detailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(details_); + } + } + /** + * + * + *
+       * Explanation of state.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.Builder addDetailsBuilder() { + return getDetailsFieldBuilder() + .addBuilder( + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.getDefaultInstance()); + } + /** + * + * + *
+       * Explanation of state.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.Builder addDetailsBuilder( + int index) { + return getDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.getDefaultInstance()); + } + /** + * + * + *
+       * Explanation of state.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public java.util.List + getDetailsBuilderList() { + return getDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails, + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.Builder, + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetailsOrBuilder> + getDetailsFieldBuilder() { + if (detailsBuilder_ == null) { + detailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails, + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.Builder, + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetailsOrBuilder>( + details_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + details_ = null; + } + return detailsBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+       * LifecycleState of control plane management.
+       * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState state = 3; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+       * LifecycleState of control plane management.
+       * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState state = 3; + * + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * LifecycleState of control plane management.
+       * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState state = 3; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState getState() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState result = + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState.forNumber( + state_); + return result == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * LifecycleState of control plane management.
+       * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState state = 3; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * LifecycleState of control plane management.
+       * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState state = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + + private int implementation_ = 0; + /** + * + * + *
+       * Output only. Implementation of managed control plane.
+       * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement.Implementation implementation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for implementation. + */ + @java.lang.Override + public int getImplementationValue() { + return implementation_; + } + /** + * + * + *
+       * Output only. Implementation of managed control plane.
+       * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement.Implementation implementation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for implementation to set. + * @return This builder for chaining. + */ + public Builder setImplementationValue(int value) { + implementation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Implementation of managed control plane.
+       * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement.Implementation implementation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The implementation. + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .Implementation + getImplementation() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .Implementation + result = + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .Implementation.forNumber(implementation_); + return result == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .Implementation.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Output only. Implementation of managed control plane.
+       * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement.Implementation implementation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The implementation to set. + * @return This builder for chaining. + */ + public Builder setImplementation( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .Implementation + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + implementation_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Implementation of managed control plane.
+       * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement.Implementation implementation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearImplementation() { + bitField0_ = (bitField0_ & ~0x00000004); + implementation_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement) + private static final com.google.cloud.gkehub.servicemesh.v1beta.MembershipState + .ControlPlaneManagement + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement(); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ControlPlaneManagement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DataPlaneManagementOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Lifecycle status of data plane management.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState state = 1; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+     * Lifecycle status of data plane management.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState state = 1; + * + * + * @return The state. + */ + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState getState(); + + /** + * + * + *
+     * Explanation of the status.
+     * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + java.util.List getDetailsList(); + /** + * + * + *
+     * Explanation of the status.
+     * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails getDetails(int index); + /** + * + * + *
+     * Explanation of the status.
+     * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + int getDetailsCount(); + /** + * + * + *
+     * Explanation of the status.
+     * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + java.util.List + getDetailsOrBuilderList(); + /** + * + * + *
+     * Explanation of the status.
+     * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetailsOrBuilder getDetailsOrBuilder( + int index); + } + /** + * + * + *
+   * Status of data plane management. Only reported per-member.
+   * 
+ * + * Protobuf type {@code + * google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement} + */ + public static final class DataPlaneManagement extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement) + DataPlaneManagementOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataPlaneManagement.newBuilder() to construct. + private DataPlaneManagement(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataPlaneManagement() { + state_ = 0; + details_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataPlaneManagement(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_DataPlaneManagement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_DataPlaneManagement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement.class, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement.Builder + .class); + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + /** + * + * + *
+     * Lifecycle status of data plane management.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState state = 1; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Lifecycle status of data plane management.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState state = 1; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState getState() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState result = + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState.forNumber( + state_); + return result == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState.UNRECOGNIZED + : result; + } + + public static final int DETAILS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List details_; + /** + * + * + *
+     * Explanation of the status.
+     * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + @java.lang.Override + public java.util.List + getDetailsList() { + return details_; + } + /** + * + * + *
+     * Explanation of the status.
+     * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.gkehub.servicemesh.v1beta.StatusDetailsOrBuilder> + getDetailsOrBuilderList() { + return details_; + } + /** + * + * + *
+     * Explanation of the status.
+     * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + @java.lang.Override + public int getDetailsCount() { + return details_.size(); + } + /** + * + * + *
+     * Explanation of the status.
+     * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails getDetails(int index) { + return details_.get(index); + } + /** + * + * + *
+     * Explanation of the status.
+     * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.StatusDetailsOrBuilder getDetailsOrBuilder( + int index) { + return details_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState + .LIFECYCLE_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, state_); + } + for (int i = 0; i < details_.size(); i++) { + output.writeMessage(2, details_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ + != com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState + .LIFECYCLE_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + for (int i = 0; i < details_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, details_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement)) { + return super.equals(obj); + } + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement other = + (com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement) obj; + + if (state_ != other.state_) return false; + if (!getDetailsList().equals(other.getDetailsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (getDetailsCount() > 0) { + hash = (37 * hash) + DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDetailsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + 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.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + 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.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + 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.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Status of data plane management. Only reported per-member.
+     * 
+ * + * Protobuf type {@code + * google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement) + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagementOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_DataPlaneManagement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_DataPlaneManagement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + .class, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + .Builder.class); + } + + // Construct using + // com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + if (detailsBuilder_ == null) { + details_ = java.util.Collections.emptyList(); + } else { + details_ = null; + detailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_DataPlaneManagement_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + getDefaultInstanceForType() { + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + build() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + buildPartial() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement result = + new com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement result) { + if (detailsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + details_ = java.util.Collections.unmodifiableList(details_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.details_ = details_; + } else { + result.details_ = detailsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement) { + return mergeFrom( + (com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement other) { + if (other + == com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + .getDefaultInstance()) return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (detailsBuilder_ == null) { + if (!other.details_.isEmpty()) { + if (details_.isEmpty()) { + details_ = other.details_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDetailsIsMutable(); + details_.addAll(other.details_); + } + onChanged(); + } + } else { + if (!other.details_.isEmpty()) { + if (detailsBuilder_.isEmpty()) { + detailsBuilder_.dispose(); + detailsBuilder_ = null; + details_ = other.details_; + bitField0_ = (bitField0_ & ~0x00000002); + detailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDetailsFieldBuilder() + : null; + } else { + detailsBuilder_.addAllMessages(other.details_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails m = + input.readMessage( + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.parser(), + extensionRegistry); + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.add(m); + } else { + detailsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int state_ = 0; + /** + * + * + *
+       * Lifecycle status of data plane management.
+       * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState state = 1; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+       * Lifecycle status of data plane management.
+       * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Lifecycle status of data plane management.
+       * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState state = 1; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState getState() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState result = + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState.forNumber( + state_); + return result == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Lifecycle status of data plane management.
+       * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState state = 1; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Lifecycle status of data plane management.
+       * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.LifecycleState state = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private java.util.List details_ = + java.util.Collections.emptyList(); + + private void ensureDetailsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + details_ = + new java.util.ArrayList( + details_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails, + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.Builder, + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetailsOrBuilder> + detailsBuilder_; + + /** + * + * + *
+       * Explanation of the status.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public java.util.List + getDetailsList() { + if (detailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(details_); + } else { + return detailsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Explanation of the status.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public int getDetailsCount() { + if (detailsBuilder_ == null) { + return details_.size(); + } else { + return detailsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Explanation of the status.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails getDetails(int index) { + if (detailsBuilder_ == null) { + return details_.get(index); + } else { + return detailsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Explanation of the status.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public Builder setDetails( + int index, com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.set(index, value); + onChanged(); + } else { + detailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Explanation of the status.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public Builder setDetails( + int index, + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.Builder builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.set(index, builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Explanation of the status.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public Builder addDetails(com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.add(value); + onChanged(); + } else { + detailsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Explanation of the status.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public Builder addDetails( + int index, com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDetailsIsMutable(); + details_.add(index, value); + onChanged(); + } else { + detailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Explanation of the status.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public Builder addDetails( + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.Builder builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.add(builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Explanation of the status.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public Builder addDetails( + int index, + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.Builder builderForValue) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.add(index, builderForValue.build()); + onChanged(); + } else { + detailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Explanation of the status.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public Builder addAllDetails( + java.lang.Iterable + values) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, details_); + onChanged(); + } else { + detailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Explanation of the status.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public Builder clearDetails() { + if (detailsBuilder_ == null) { + details_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + detailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Explanation of the status.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public Builder removeDetails(int index) { + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.remove(index); + onChanged(); + } else { + detailsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Explanation of the status.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.Builder getDetailsBuilder( + int index) { + return getDetailsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Explanation of the status.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public com.google.cloud.gkehub.servicemesh.v1beta.StatusDetailsOrBuilder getDetailsOrBuilder( + int index) { + if (detailsBuilder_ == null) { + return details_.get(index); + } else { + return detailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Explanation of the status.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public java.util.List< + ? extends com.google.cloud.gkehub.servicemesh.v1beta.StatusDetailsOrBuilder> + getDetailsOrBuilderList() { + if (detailsBuilder_ != null) { + return detailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(details_); + } + } + /** + * + * + *
+       * Explanation of the status.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.Builder addDetailsBuilder() { + return getDetailsFieldBuilder() + .addBuilder( + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.getDefaultInstance()); + } + /** + * + * + *
+       * Explanation of the status.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.Builder addDetailsBuilder( + int index) { + return getDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.getDefaultInstance()); + } + /** + * + * + *
+       * Explanation of the status.
+       * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1beta.StatusDetails details = 2; + */ + public java.util.List + getDetailsBuilderList() { + return getDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails, + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.Builder, + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetailsOrBuilder> + getDetailsFieldBuilder() { + if (detailsBuilder_ == null) { + detailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails, + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.Builder, + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetailsOrBuilder>( + details_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + details_ = null; + } + return detailsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement) + private static final com.google.cloud.gkehub.servicemesh.v1beta.MembershipState + .DataPlaneManagement + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement(); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataPlaneManagement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConditionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Unique identifier of the condition which describes the condition
+     * recognizable to the user.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code code = 1; + * + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + /** + * + * + *
+     * Unique identifier of the condition which describes the condition
+     * recognizable to the user.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code code = 1; + * + * @return The code. + */ + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code getCode(); + + /** + * + * + *
+     * Links contains actionable information.
+     * 
+ * + * string documentation_link = 2; + * + * @return The documentationLink. + */ + java.lang.String getDocumentationLink(); + /** + * + * + *
+     * Links contains actionable information.
+     * 
+ * + * string documentation_link = 2; + * + * @return The bytes for documentationLink. + */ + com.google.protobuf.ByteString getDocumentationLinkBytes(); + + /** + * + * + *
+     * A short summary about the issue.
+     * 
+ * + * string details = 3; + * + * @return The details. + */ + java.lang.String getDetails(); + /** + * + * + *
+     * A short summary about the issue.
+     * 
+ * + * string details = 3; + * + * @return The bytes for details. + */ + com.google.protobuf.ByteString getDetailsBytes(); + + /** + * + * + *
+     * Severity level of the condition.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity severity = 4; + * + * + * @return The enum numeric value on the wire for severity. + */ + int getSeverityValue(); + /** + * + * + *
+     * Severity level of the condition.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity severity = 4; + * + * + * @return The severity. + */ + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity getSeverity(); + } + /** + * + * + *
+   * Condition being reported.
+   * 
+ * + * Protobuf type {@code google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition} + */ + public static final class Condition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition) + ConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Condition.newBuilder() to construct. + private Condition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Condition() { + code_ = 0; + documentationLink_ = ""; + details_ = ""; + severity_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Condition(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_Condition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_Condition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.class, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Builder.class); + } + + /** + * + * + *
+     * Unique identifier of the condition which describes the condition
+     * recognizable to the user.
+     * 
+ * + * Protobuf enum {@code google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code} + */ + public enum Code implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default Unspecified code
+       * 
+ * + * CODE_UNSPECIFIED = 0; + */ + CODE_UNSPECIFIED(0), + /** + * + * + *
+       * Mesh IAM permission denied error code
+       * 
+ * + * MESH_IAM_PERMISSION_DENIED = 100; + */ + MESH_IAM_PERMISSION_DENIED(100), + /** + * + * + *
+       * CNI config unsupported error code
+       * 
+ * + * CNI_CONFIG_UNSUPPORTED = 201; + */ + CNI_CONFIG_UNSUPPORTED(201), + /** + * + * + *
+       * GKE sandbox unsupported error code
+       * 
+ * + * GKE_SANDBOX_UNSUPPORTED = 202; + */ + GKE_SANDBOX_UNSUPPORTED(202), + /** + * + * + *
+       * Nodepool workload identity federation required error code
+       * 
+ * + * NODEPOOL_WORKLOAD_IDENTITY_FEDERATION_REQUIRED = 203; + */ + NODEPOOL_WORKLOAD_IDENTITY_FEDERATION_REQUIRED(203), + /** + * + * + *
+       * CNI installation failed error code
+       * 
+ * + * CNI_INSTALLATION_FAILED = 204; + */ + CNI_INSTALLATION_FAILED(204), + /** + * + * + *
+       * CNI pod unschedulable error code
+       * 
+ * + * CNI_POD_UNSCHEDULABLE = 205; + */ + CNI_POD_UNSCHEDULABLE(205), + /** + * + * + *
+       * Multiple control planes unsupported error code
+       * 
+ * + * UNSUPPORTED_MULTIPLE_CONTROL_PLANES = 301; + */ + UNSUPPORTED_MULTIPLE_CONTROL_PLANES(301), + /** + * + * + *
+       * VPC-SC GA is supported for this control plane.
+       * 
+ * + * VPCSC_GA_SUPPORTED = 302; + */ + VPCSC_GA_SUPPORTED(302), + /** + * + * + *
+       * Configuration (Istio/k8s resources) failed to apply due to internal
+       * error.
+       * 
+ * + * CONFIG_APPLY_INTERNAL_ERROR = 401; + */ + CONFIG_APPLY_INTERNAL_ERROR(401), + /** + * + * + *
+       * Configuration failed to be applied due to being invalid.
+       * 
+ * + * CONFIG_VALIDATION_ERROR = 402; + */ + CONFIG_VALIDATION_ERROR(402), + /** + * + * + *
+       * Encountered configuration(s) with possible unintended behavior or
+       * invalid configuration. These configs may not have been applied.
+       * 
+ * + * CONFIG_VALIDATION_WARNING = 403; + */ + CONFIG_VALIDATION_WARNING(403), + /** + * + * + *
+       * BackendService quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_BACKEND_SERVICES = 404; + */ + QUOTA_EXCEEDED_BACKEND_SERVICES(404), + /** + * + * + *
+       * HealthCheck quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_HEALTH_CHECKS = 405; + */ + QUOTA_EXCEEDED_HEALTH_CHECKS(405), + /** + * + * + *
+       * HTTPRoute quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_HTTP_ROUTES = 406; + */ + QUOTA_EXCEEDED_HTTP_ROUTES(406), + /** + * + * + *
+       * TCPRoute quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_TCP_ROUTES = 407; + */ + QUOTA_EXCEEDED_TCP_ROUTES(407), + /** + * + * + *
+       * TLS routes quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_TLS_ROUTES = 408; + */ + QUOTA_EXCEEDED_TLS_ROUTES(408), + /** + * + * + *
+       * TrafficPolicy quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_TRAFFIC_POLICIES = 409; + */ + QUOTA_EXCEEDED_TRAFFIC_POLICIES(409), + /** + * + * + *
+       * EndpointPolicy quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_ENDPOINT_POLICIES = 410; + */ + QUOTA_EXCEEDED_ENDPOINT_POLICIES(410), + /** + * + * + *
+       * Gateway quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_GATEWAYS = 411; + */ + QUOTA_EXCEEDED_GATEWAYS(411), + /** + * + * + *
+       * Mesh quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_MESHES = 412; + */ + QUOTA_EXCEEDED_MESHES(412), + /** + * + * + *
+       * ServerTLSPolicy quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_SERVER_TLS_POLICIES = 413; + */ + QUOTA_EXCEEDED_SERVER_TLS_POLICIES(413), + /** + * + * + *
+       * ClientTLSPolicy quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_CLIENT_TLS_POLICIES = 414; + */ + QUOTA_EXCEEDED_CLIENT_TLS_POLICIES(414), + /** + * + * + *
+       * ServiceLBPolicy quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_SERVICE_LB_POLICIES = 415; + */ + QUOTA_EXCEEDED_SERVICE_LB_POLICIES(415), + /** + * + * + *
+       * HTTPFilter quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_HTTP_FILTERS = 416; + */ + QUOTA_EXCEEDED_HTTP_FILTERS(416), + /** + * + * + *
+       * TCPFilter quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_TCP_FILTERS = 417; + */ + QUOTA_EXCEEDED_TCP_FILTERS(417), + /** + * + * + *
+       * NetworkEndpointGroup quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS = 418; + */ + QUOTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS(418), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Default Unspecified code
+       * 
+ * + * CODE_UNSPECIFIED = 0; + */ + public static final int CODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Mesh IAM permission denied error code
+       * 
+ * + * MESH_IAM_PERMISSION_DENIED = 100; + */ + public static final int MESH_IAM_PERMISSION_DENIED_VALUE = 100; + /** + * + * + *
+       * CNI config unsupported error code
+       * 
+ * + * CNI_CONFIG_UNSUPPORTED = 201; + */ + public static final int CNI_CONFIG_UNSUPPORTED_VALUE = 201; + /** + * + * + *
+       * GKE sandbox unsupported error code
+       * 
+ * + * GKE_SANDBOX_UNSUPPORTED = 202; + */ + public static final int GKE_SANDBOX_UNSUPPORTED_VALUE = 202; + /** + * + * + *
+       * Nodepool workload identity federation required error code
+       * 
+ * + * NODEPOOL_WORKLOAD_IDENTITY_FEDERATION_REQUIRED = 203; + */ + public static final int NODEPOOL_WORKLOAD_IDENTITY_FEDERATION_REQUIRED_VALUE = 203; + /** + * + * + *
+       * CNI installation failed error code
+       * 
+ * + * CNI_INSTALLATION_FAILED = 204; + */ + public static final int CNI_INSTALLATION_FAILED_VALUE = 204; + /** + * + * + *
+       * CNI pod unschedulable error code
+       * 
+ * + * CNI_POD_UNSCHEDULABLE = 205; + */ + public static final int CNI_POD_UNSCHEDULABLE_VALUE = 205; + /** + * + * + *
+       * Multiple control planes unsupported error code
+       * 
+ * + * UNSUPPORTED_MULTIPLE_CONTROL_PLANES = 301; + */ + public static final int UNSUPPORTED_MULTIPLE_CONTROL_PLANES_VALUE = 301; + /** + * + * + *
+       * VPC-SC GA is supported for this control plane.
+       * 
+ * + * VPCSC_GA_SUPPORTED = 302; + */ + public static final int VPCSC_GA_SUPPORTED_VALUE = 302; + /** + * + * + *
+       * Configuration (Istio/k8s resources) failed to apply due to internal
+       * error.
+       * 
+ * + * CONFIG_APPLY_INTERNAL_ERROR = 401; + */ + public static final int CONFIG_APPLY_INTERNAL_ERROR_VALUE = 401; + /** + * + * + *
+       * Configuration failed to be applied due to being invalid.
+       * 
+ * + * CONFIG_VALIDATION_ERROR = 402; + */ + public static final int CONFIG_VALIDATION_ERROR_VALUE = 402; + /** + * + * + *
+       * Encountered configuration(s) with possible unintended behavior or
+       * invalid configuration. These configs may not have been applied.
+       * 
+ * + * CONFIG_VALIDATION_WARNING = 403; + */ + public static final int CONFIG_VALIDATION_WARNING_VALUE = 403; + /** + * + * + *
+       * BackendService quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_BACKEND_SERVICES = 404; + */ + public static final int QUOTA_EXCEEDED_BACKEND_SERVICES_VALUE = 404; + /** + * + * + *
+       * HealthCheck quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_HEALTH_CHECKS = 405; + */ + public static final int QUOTA_EXCEEDED_HEALTH_CHECKS_VALUE = 405; + /** + * + * + *
+       * HTTPRoute quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_HTTP_ROUTES = 406; + */ + public static final int QUOTA_EXCEEDED_HTTP_ROUTES_VALUE = 406; + /** + * + * + *
+       * TCPRoute quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_TCP_ROUTES = 407; + */ + public static final int QUOTA_EXCEEDED_TCP_ROUTES_VALUE = 407; + /** + * + * + *
+       * TLS routes quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_TLS_ROUTES = 408; + */ + public static final int QUOTA_EXCEEDED_TLS_ROUTES_VALUE = 408; + /** + * + * + *
+       * TrafficPolicy quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_TRAFFIC_POLICIES = 409; + */ + public static final int QUOTA_EXCEEDED_TRAFFIC_POLICIES_VALUE = 409; + /** + * + * + *
+       * EndpointPolicy quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_ENDPOINT_POLICIES = 410; + */ + public static final int QUOTA_EXCEEDED_ENDPOINT_POLICIES_VALUE = 410; + /** + * + * + *
+       * Gateway quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_GATEWAYS = 411; + */ + public static final int QUOTA_EXCEEDED_GATEWAYS_VALUE = 411; + /** + * + * + *
+       * Mesh quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_MESHES = 412; + */ + public static final int QUOTA_EXCEEDED_MESHES_VALUE = 412; + /** + * + * + *
+       * ServerTLSPolicy quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_SERVER_TLS_POLICIES = 413; + */ + public static final int QUOTA_EXCEEDED_SERVER_TLS_POLICIES_VALUE = 413; + /** + * + * + *
+       * ClientTLSPolicy quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_CLIENT_TLS_POLICIES = 414; + */ + public static final int QUOTA_EXCEEDED_CLIENT_TLS_POLICIES_VALUE = 414; + /** + * + * + *
+       * ServiceLBPolicy quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_SERVICE_LB_POLICIES = 415; + */ + public static final int QUOTA_EXCEEDED_SERVICE_LB_POLICIES_VALUE = 415; + /** + * + * + *
+       * HTTPFilter quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_HTTP_FILTERS = 416; + */ + public static final int QUOTA_EXCEEDED_HTTP_FILTERS_VALUE = 416; + /** + * + * + *
+       * TCPFilter quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_TCP_FILTERS = 417; + */ + public static final int QUOTA_EXCEEDED_TCP_FILTERS_VALUE = 417; + /** + * + * + *
+       * NetworkEndpointGroup quota exceeded error code.
+       * 
+ * + * QUOTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS = 418; + */ + public static final int QUOTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS_VALUE = 418; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Code valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Code forNumber(int value) { + switch (value) { + case 0: + return CODE_UNSPECIFIED; + case 100: + return MESH_IAM_PERMISSION_DENIED; + case 201: + return CNI_CONFIG_UNSUPPORTED; + case 202: + return GKE_SANDBOX_UNSUPPORTED; + case 203: + return NODEPOOL_WORKLOAD_IDENTITY_FEDERATION_REQUIRED; + case 204: + return CNI_INSTALLATION_FAILED; + case 205: + return CNI_POD_UNSCHEDULABLE; + case 301: + return UNSUPPORTED_MULTIPLE_CONTROL_PLANES; + case 302: + return VPCSC_GA_SUPPORTED; + case 401: + return CONFIG_APPLY_INTERNAL_ERROR; + case 402: + return CONFIG_VALIDATION_ERROR; + case 403: + return CONFIG_VALIDATION_WARNING; + case 404: + return QUOTA_EXCEEDED_BACKEND_SERVICES; + case 405: + return QUOTA_EXCEEDED_HEALTH_CHECKS; + case 406: + return QUOTA_EXCEEDED_HTTP_ROUTES; + case 407: + return QUOTA_EXCEEDED_TCP_ROUTES; + case 408: + return QUOTA_EXCEEDED_TLS_ROUTES; + case 409: + return QUOTA_EXCEEDED_TRAFFIC_POLICIES; + case 410: + return QUOTA_EXCEEDED_ENDPOINT_POLICIES; + case 411: + return QUOTA_EXCEEDED_GATEWAYS; + case 412: + return QUOTA_EXCEEDED_MESHES; + case 413: + return QUOTA_EXCEEDED_SERVER_TLS_POLICIES; + case 414: + return QUOTA_EXCEEDED_CLIENT_TLS_POLICIES; + case 415: + return QUOTA_EXCEEDED_SERVICE_LB_POLICIES; + case 416: + return QUOTA_EXCEEDED_HTTP_FILTERS; + case 417: + return QUOTA_EXCEEDED_TCP_FILTERS; + case 418: + return QUOTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.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() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Code[] VALUES = values(); + + public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Code(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code) + } + + /** + * + * + *
+     * Severity level of the reported condition
+     * 
+ * + * Protobuf enum {@code + * google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity} + */ + public enum Severity implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified severity
+       * 
+ * + * SEVERITY_UNSPECIFIED = 0; + */ + SEVERITY_UNSPECIFIED(0), + /** + * + * + *
+       * Indicates an issue that prevents the mesh from operating correctly
+       * 
+ * + * ERROR = 1; + */ + ERROR(1), + /** + * + * + *
+       * Indicates a setting is likely wrong, but the mesh is still able to
+       * operate
+       * 
+ * + * WARNING = 2; + */ + WARNING(2), + /** + * + * + *
+       * An informational message, not requiring any action
+       * 
+ * + * INFO = 3; + */ + INFO(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Unspecified severity
+       * 
+ * + * SEVERITY_UNSPECIFIED = 0; + */ + public static final int SEVERITY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Indicates an issue that prevents the mesh from operating correctly
+       * 
+ * + * ERROR = 1; + */ + public static final int ERROR_VALUE = 1; + /** + * + * + *
+       * Indicates a setting is likely wrong, but the mesh is still able to
+       * operate
+       * 
+ * + * WARNING = 2; + */ + public static final int WARNING_VALUE = 2; + /** + * + * + *
+       * An informational message, not requiring any action
+       * 
+ * + * INFO = 3; + */ + public static final int INFO_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Severity valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Severity forNumber(int value) { + switch (value) { + case 0: + return SEVERITY_UNSPECIFIED; + case 1: + return ERROR; + case 2: + return WARNING; + case 3: + return INFO; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + 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() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final Severity[] VALUES = values(); + + 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."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Severity(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity) + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_ = 0; + /** + * + * + *
+     * Unique identifier of the condition which describes the condition
+     * recognizable to the user.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code code = 1; + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + /** + * + * + *
+     * Unique identifier of the condition which describes the condition
+     * recognizable to the user.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code code = 1; + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code getCode() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code result = + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code.forNumber( + code_); + return result == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code.UNRECOGNIZED + : result; + } + + public static final int DOCUMENTATION_LINK_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object documentationLink_ = ""; + /** + * + * + *
+     * Links contains actionable information.
+     * 
+ * + * string documentation_link = 2; + * + * @return The documentationLink. + */ + @java.lang.Override + public java.lang.String getDocumentationLink() { + java.lang.Object ref = documentationLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentationLink_ = s; + return s; + } + } + /** + * + * + *
+     * Links contains actionable information.
+     * 
+ * + * string documentation_link = 2; + * + * @return The bytes for documentationLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDocumentationLinkBytes() { + java.lang.Object ref = documentationLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + documentationLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DETAILS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object details_ = ""; + /** + * + * + *
+     * A short summary about the issue.
+     * 
+ * + * string details = 3; + * + * @return The details. + */ + @java.lang.Override + public java.lang.String getDetails() { + java.lang.Object ref = details_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + details_ = s; + return s; + } + } + /** + * + * + *
+     * A short summary about the issue.
+     * 
+ * + * string details = 3; + * + * @return The bytes for details. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDetailsBytes() { + java.lang.Object ref = details_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + details_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SEVERITY_FIELD_NUMBER = 4; + private int severity_ = 0; + /** + * + * + *
+     * Severity level of the condition.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity severity = 4; + * + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + /** + * + * + *
+     * Severity level of the condition.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity severity = 4; + * + * + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity + getSeverity() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity result = + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity.forNumber( + severity_); + return result == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ + != com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code + .CODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, code_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentationLink_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, documentationLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, details_); + } + if (severity_ + != com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity + .SEVERITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, severity_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ + != com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code + .CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentationLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, documentationLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, details_); + } + if (severity_ + != com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity + .SEVERITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, severity_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition)) { + return super.equals(obj); + } + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition other = + (com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition) obj; + + if (code_ != other.code_) return false; + if (!getDocumentationLink().equals(other.getDocumentationLink())) return false; + if (!getDetails().equals(other.getDetails())) return false; + if (severity_ != other.severity_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + code_; + hash = (37 * hash) + DOCUMENTATION_LINK_FIELD_NUMBER; + hash = (53 * hash) + getDocumentationLink().hashCode(); + hash = (37 * hash) + DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDetails().hashCode(); + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + severity_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition 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.gkehub.servicemesh.v1beta.MembershipState.Condition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition 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.gkehub.servicemesh.v1beta.MembershipState.Condition + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition + 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.gkehub.servicemesh.v1beta.MembershipState.Condition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Condition being reported.
+     * 
+ * + * Protobuf type {@code google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition) + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_Condition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_Condition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.class, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Builder.class); + } + + // Construct using + // com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + code_ = 0; + documentationLink_ = ""; + details_ = ""; + severity_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_Condition_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition + getDefaultInstanceForType() { + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition build() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition buildPartial() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition result = + new com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.code_ = code_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.documentationLink_ = documentationLink_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.details_ = details_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.severity_ = severity_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition) { + return mergeFrom( + (com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition other) { + if (other + == com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition + .getDefaultInstance()) return this; + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + if (!other.getDocumentationLink().isEmpty()) { + documentationLink_ = other.documentationLink_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDetails().isEmpty()) { + details_ = other.details_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.severity_ != 0) { + setSeverityValue(other.getSeverityValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + code_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + documentationLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + details_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + severity_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int code_ = 0; + /** + * + * + *
+       * Unique identifier of the condition which describes the condition
+       * recognizable to the user.
+       * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code code = 1; + * + * + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override + public int getCodeValue() { + return code_; + } + /** + * + * + *
+       * Unique identifier of the condition which describes the condition
+       * recognizable to the user.
+       * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code code = 1; + * + * + * @param value The enum numeric value on the wire for code to set. + * @return This builder for chaining. + */ + public Builder setCodeValue(int value) { + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Unique identifier of the condition which describes the condition
+       * recognizable to the user.
+       * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code code = 1; + * + * + * @return The code. + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code getCode() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code result = + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code.forNumber( + code_); + return result == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Unique identifier of the condition which describes the condition
+       * recognizable to the user.
+       * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code code = 1; + * + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + code_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Unique identifier of the condition which describes the condition
+       * recognizable to the user.
+       * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Code code = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearCode() { + bitField0_ = (bitField0_ & ~0x00000001); + code_ = 0; + onChanged(); + return this; + } + + private java.lang.Object documentationLink_ = ""; + /** + * + * + *
+       * Links contains actionable information.
+       * 
+ * + * string documentation_link = 2; + * + * @return The documentationLink. + */ + public java.lang.String getDocumentationLink() { + java.lang.Object ref = documentationLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentationLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Links contains actionable information.
+       * 
+ * + * string documentation_link = 2; + * + * @return The bytes for documentationLink. + */ + public com.google.protobuf.ByteString getDocumentationLinkBytes() { + java.lang.Object ref = documentationLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + documentationLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Links contains actionable information.
+       * 
+ * + * string documentation_link = 2; + * + * @param value The documentationLink to set. + * @return This builder for chaining. + */ + public Builder setDocumentationLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + documentationLink_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Links contains actionable information.
+       * 
+ * + * string documentation_link = 2; + * + * @return This builder for chaining. + */ + public Builder clearDocumentationLink() { + documentationLink_ = getDefaultInstance().getDocumentationLink(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Links contains actionable information.
+       * 
+ * + * string documentation_link = 2; + * + * @param value The bytes for documentationLink to set. + * @return This builder for chaining. + */ + public Builder setDocumentationLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentationLink_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object details_ = ""; + /** + * + * + *
+       * A short summary about the issue.
+       * 
+ * + * string details = 3; + * + * @return The details. + */ + public java.lang.String getDetails() { + java.lang.Object ref = details_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + details_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * A short summary about the issue.
+       * 
+ * + * string details = 3; + * + * @return The bytes for details. + */ + public com.google.protobuf.ByteString getDetailsBytes() { + java.lang.Object ref = details_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + details_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * A short summary about the issue.
+       * 
+ * + * string details = 3; + * + * @param value The details to set. + * @return This builder for chaining. + */ + public Builder setDetails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * A short summary about the issue.
+       * 
+ * + * string details = 3; + * + * @return This builder for chaining. + */ + public Builder clearDetails() { + details_ = getDefaultInstance().getDetails(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * A short summary about the issue.
+       * 
+ * + * string details = 3; + * + * @param value The bytes for details to set. + * @return This builder for chaining. + */ + public Builder setDetailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + details_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int severity_ = 0; + /** + * + * + *
+       * Severity level of the condition.
+       * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity severity = 4; + * + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + /** + * + * + *
+       * Severity level of the condition.
+       * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity severity = 4; + * + * + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Severity level of the condition.
+       * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity severity = 4; + * + * + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity + getSeverity() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity result = + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity.forNumber( + severity_); + return result == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Severity level of the condition.
+       * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity severity = 4; + * + * + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + severity_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Severity level of the condition.
+       * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Severity severity = 4; + * + * + * @return This builder for chaining. + */ + public Builder clearSeverity() { + bitField0_ = (bitField0_ & ~0x00000008); + severity_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition) + private static final com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition(); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Condition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int CONTROL_PLANE_MANAGEMENT_FIELD_NUMBER = 2; + private com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + controlPlaneManagement_; + /** + * + * + *
+   * Output only. Status of control plane management
+   * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement control_plane_management = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the controlPlaneManagement field is set. + */ + @java.lang.Override + public boolean hasControlPlaneManagement() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. Status of control plane management
+   * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement control_plane_management = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The controlPlaneManagement. + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + getControlPlaneManagement() { + return controlPlaneManagement_ == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .getDefaultInstance() + : controlPlaneManagement_; + } + /** + * + * + *
+   * Output only. Status of control plane management
+   * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement control_plane_management = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagementOrBuilder + getControlPlaneManagementOrBuilder() { + return controlPlaneManagement_ == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .getDefaultInstance() + : controlPlaneManagement_; + } + + public static final int DATA_PLANE_MANAGEMENT_FIELD_NUMBER = 4; + private com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + dataPlaneManagement_; + /** + * + * + *
+   * Output only. Status of data plane management.
+   * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement data_plane_management = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataPlaneManagement field is set. + */ + @java.lang.Override + public boolean hasDataPlaneManagement() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. Status of data plane management.
+   * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement data_plane_management = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataPlaneManagement. + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + getDataPlaneManagement() { + return dataPlaneManagement_ == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + .getDefaultInstance() + : dataPlaneManagement_; + } + /** + * + * + *
+   * Output only. Status of data plane management.
+   * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement data_plane_management = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagementOrBuilder + getDataPlaneManagementOrBuilder() { + return dataPlaneManagement_ == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + .getDefaultInstance() + : dataPlaneManagement_; + } + + public static final int CONDITIONS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List + conditions_; + /** + * + * + *
+   * Output only. List of conditions reported for this membership.
+   * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getConditionsList() { + return conditions_; + } + /** + * + * + *
+   * Output only. List of conditions reported for this membership.
+   * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ConditionOrBuilder> + getConditionsOrBuilderList() { + return conditions_; + } + /** + * + * + *
+   * Output only. List of conditions reported for this membership.
+   * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getConditionsCount() { + return conditions_.size(); + } + /** + * + * + *
+   * Output only. List of conditions reported for this membership.
+   * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition getConditions( + int index) { + return conditions_.get(index); + } + /** + * + * + *
+   * Output only. List of conditions reported for this membership.
+   * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ConditionOrBuilder + getConditionsOrBuilder(int index) { + return conditions_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getControlPlaneManagement()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getDataPlaneManagement()); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(8, conditions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getControlPlaneManagement()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDataPlaneManagement()); + } + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, conditions_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.servicemesh.v1beta.MembershipState)) { + return super.equals(obj); + } + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState other = + (com.google.cloud.gkehub.servicemesh.v1beta.MembershipState) obj; + + if (hasControlPlaneManagement() != other.hasControlPlaneManagement()) return false; + if (hasControlPlaneManagement()) { + if (!getControlPlaneManagement().equals(other.getControlPlaneManagement())) return false; + } + if (hasDataPlaneManagement() != other.hasDataPlaneManagement()) return false; + if (hasDataPlaneManagement()) { + if (!getDataPlaneManagement().equals(other.getDataPlaneManagement())) return false; + } + if (!getConditionsList().equals(other.getConditionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasControlPlaneManagement()) { + hash = (37 * hash) + CONTROL_PLANE_MANAGEMENT_FIELD_NUMBER; + hash = (53 * hash) + getControlPlaneManagement().hashCode(); + } + if (hasDataPlaneManagement()) { + hash = (37 * hash) + DATA_PLANE_MANAGEMENT_FIELD_NUMBER; + hash = (53 * hash) + getDataPlaneManagement().hashCode(); + } + if (getConditionsCount() > 0) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState 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.gkehub.servicemesh.v1beta.MembershipState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState 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.gkehub.servicemesh.v1beta.MembershipState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState 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.gkehub.servicemesh.v1beta.MembershipState parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * **Service Mesh**: State for a single Membership, as analyzed by the Service
+   * Mesh Hub Controller.
+   * 
+ * + * Protobuf type {@code google.cloud.gkehub.servicemesh.v1beta.MembershipState} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.servicemesh.v1beta.MembershipState) + com.google.cloud.gkehub.servicemesh.v1beta.MembershipStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.class, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Builder.class); + } + + // Construct using com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getControlPlaneManagementFieldBuilder(); + getDataPlaneManagementFieldBuilder(); + getConditionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + controlPlaneManagement_ = null; + if (controlPlaneManagementBuilder_ != null) { + controlPlaneManagementBuilder_.dispose(); + controlPlaneManagementBuilder_ = null; + } + dataPlaneManagement_ = null; + if (dataPlaneManagementBuilder_ != null) { + dataPlaneManagementBuilder_.dispose(); + dataPlaneManagementBuilder_ = null; + } + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + } else { + conditions_ = null; + conditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState getDefaultInstanceForType() { + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState build() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState buildPartial() { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState result = + new com.google.cloud.gkehub.servicemesh.v1beta.MembershipState(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState result) { + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gkehub.servicemesh.v1beta.MembershipState result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.controlPlaneManagement_ = + controlPlaneManagementBuilder_ == null + ? controlPlaneManagement_ + : controlPlaneManagementBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataPlaneManagement_ = + dataPlaneManagementBuilder_ == null + ? dataPlaneManagement_ + : dataPlaneManagementBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.servicemesh.v1beta.MembershipState) { + return mergeFrom((com.google.cloud.gkehub.servicemesh.v1beta.MembershipState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.servicemesh.v1beta.MembershipState other) { + if (other == com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.getDefaultInstance()) + return this; + if (other.hasControlPlaneManagement()) { + mergeControlPlaneManagement(other.getControlPlaneManagement()); + } + if (other.hasDataPlaneManagement()) { + mergeDataPlaneManagement(other.getDataPlaneManagement()); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000004); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConditionsFieldBuilder() + : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + input.readMessage( + getControlPlaneManagementFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 34: + { + input.readMessage( + getDataPlaneManagementFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 66: + { + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition m = + input.readMessage( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition + .parser(), + extensionRegistry); + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(m); + } else { + conditionsBuilder_.addMessage(m); + } + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + controlPlaneManagement_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .Builder, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState + .ControlPlaneManagementOrBuilder> + controlPlaneManagementBuilder_; + /** + * + * + *
+     * Output only. Status of control plane management
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement control_plane_management = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the controlPlaneManagement field is set. + */ + public boolean hasControlPlaneManagement() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Output only. Status of control plane management
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement control_plane_management = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The controlPlaneManagement. + */ + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + getControlPlaneManagement() { + if (controlPlaneManagementBuilder_ == null) { + return controlPlaneManagement_ == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .getDefaultInstance() + : controlPlaneManagement_; + } else { + return controlPlaneManagementBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Status of control plane management
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement control_plane_management = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setControlPlaneManagement( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement value) { + if (controlPlaneManagementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + controlPlaneManagement_ = value; + } else { + controlPlaneManagementBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Status of control plane management
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement control_plane_management = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setControlPlaneManagement( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement.Builder + builderForValue) { + if (controlPlaneManagementBuilder_ == null) { + controlPlaneManagement_ = builderForValue.build(); + } else { + controlPlaneManagementBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Status of control plane management
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement control_plane_management = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeControlPlaneManagement( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement value) { + if (controlPlaneManagementBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && controlPlaneManagement_ != null + && controlPlaneManagement_ + != com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .getDefaultInstance()) { + getControlPlaneManagementBuilder().mergeFrom(value); + } else { + controlPlaneManagement_ = value; + } + } else { + controlPlaneManagementBuilder_.mergeFrom(value); + } + if (controlPlaneManagement_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Status of control plane management
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement control_plane_management = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearControlPlaneManagement() { + bitField0_ = (bitField0_ & ~0x00000001); + controlPlaneManagement_ = null; + if (controlPlaneManagementBuilder_ != null) { + controlPlaneManagementBuilder_.dispose(); + controlPlaneManagementBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Status of control plane management
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement control_plane_management = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement.Builder + getControlPlaneManagementBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getControlPlaneManagementFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Status of control plane management
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement control_plane_management = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState + .ControlPlaneManagementOrBuilder + getControlPlaneManagementOrBuilder() { + if (controlPlaneManagementBuilder_ != null) { + return controlPlaneManagementBuilder_.getMessageOrBuilder(); + } else { + return controlPlaneManagement_ == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .getDefaultInstance() + : controlPlaneManagement_; + } + } + /** + * + * + *
+     * Output only. Status of control plane management
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement control_plane_management = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .Builder, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState + .ControlPlaneManagementOrBuilder> + getControlPlaneManagementFieldBuilder() { + if (controlPlaneManagementBuilder_ == null) { + controlPlaneManagementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + .Builder, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState + .ControlPlaneManagementOrBuilder>( + getControlPlaneManagement(), getParentForChildren(), isClean()); + controlPlaneManagement_ = null; + } + return controlPlaneManagementBuilder_; + } + + private com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + dataPlaneManagement_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement.Builder, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagementOrBuilder> + dataPlaneManagementBuilder_; + /** + * + * + *
+     * Output only. Status of data plane management.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement data_plane_management = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataPlaneManagement field is set. + */ + public boolean hasDataPlaneManagement() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Output only. Status of data plane management.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement data_plane_management = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataPlaneManagement. + */ + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + getDataPlaneManagement() { + if (dataPlaneManagementBuilder_ == null) { + return dataPlaneManagement_ == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + .getDefaultInstance() + : dataPlaneManagement_; + } else { + return dataPlaneManagementBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Status of data plane management.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement data_plane_management = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataPlaneManagement( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement value) { + if (dataPlaneManagementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataPlaneManagement_ = value; + } else { + dataPlaneManagementBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Status of data plane management.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement data_plane_management = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataPlaneManagement( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement.Builder + builderForValue) { + if (dataPlaneManagementBuilder_ == null) { + dataPlaneManagement_ = builderForValue.build(); + } else { + dataPlaneManagementBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Status of data plane management.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement data_plane_management = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDataPlaneManagement( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement value) { + if (dataPlaneManagementBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && dataPlaneManagement_ != null + && dataPlaneManagement_ + != com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + .getDefaultInstance()) { + getDataPlaneManagementBuilder().mergeFrom(value); + } else { + dataPlaneManagement_ = value; + } + } else { + dataPlaneManagementBuilder_.mergeFrom(value); + } + if (dataPlaneManagement_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Status of data plane management.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement data_plane_management = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDataPlaneManagement() { + bitField0_ = (bitField0_ & ~0x00000002); + dataPlaneManagement_ = null; + if (dataPlaneManagementBuilder_ != null) { + dataPlaneManagementBuilder_.dispose(); + dataPlaneManagementBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Status of data plane management.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement data_plane_management = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement.Builder + getDataPlaneManagementBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDataPlaneManagementFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Status of data plane management.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement data_plane_management = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagementOrBuilder + getDataPlaneManagementOrBuilder() { + if (dataPlaneManagementBuilder_ != null) { + return dataPlaneManagementBuilder_.getMessageOrBuilder(); + } else { + return dataPlaneManagement_ == null + ? com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + .getDefaultInstance() + : dataPlaneManagement_; + } + } + /** + * + * + *
+     * Output only. Status of data plane management.
+     * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement data_plane_management = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement.Builder, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagementOrBuilder> + getDataPlaneManagementFieldBuilder() { + if (dataPlaneManagementBuilder_ == null) { + dataPlaneManagementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + .Builder, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState + .DataPlaneManagementOrBuilder>( + getDataPlaneManagement(), getParentForChildren(), isClean()); + dataPlaneManagement_ = null; + } + return dataPlaneManagementBuilder_; + } + + private java.util.List + conditions_ = java.util.Collections.emptyList(); + + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + conditions_ = + new java.util.ArrayList< + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition>(conditions_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Builder, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ConditionOrBuilder> + conditionsBuilder_; + + /** + * + * + *
+     * Output only. List of conditions reported for this membership.
+     * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. List of conditions reported for this membership.
+     * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. List of conditions reported for this membership.
+     * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition getConditions( + int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. List of conditions reported for this membership.
+     * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConditions( + int index, com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. List of conditions reported for this membership.
+     * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConditions( + int index, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Builder + builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. List of conditions reported for this membership.
+     * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConditions( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. List of conditions reported for this membership.
+     * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConditions( + int index, com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. List of conditions reported for this membership.
+     * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConditions( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Builder + builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. List of conditions reported for this membership.
+     * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConditions( + int index, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Builder + builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. List of conditions reported for this membership.
+     * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllConditions( + java.lang.Iterable< + ? extends com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition> + values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. List of conditions reported for this membership.
+     * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. List of conditions reported for this membership.
+     * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. List of conditions reported for this membership.
+     * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Builder + getConditionsBuilder(int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. List of conditions reported for this membership.
+     * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ConditionOrBuilder + getConditionsOrBuilder(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. List of conditions reported for this membership.
+     * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ConditionOrBuilder> + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + * + * + *
+     * Output only. List of conditions reported for this membership.
+     * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Builder + addConditionsBuilder() { + return getConditionsFieldBuilder() + .addBuilder( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. List of conditions reported for this membership.
+     * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Builder + addConditionsBuilder(int index) { + return getConditionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. List of conditions reported for this membership.
+     * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Builder> + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Builder, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition.Builder, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ConditionOrBuilder>( + conditions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.servicemesh.v1beta.MembershipState) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.servicemesh.v1beta.MembershipState) + private static final com.google.cloud.gkehub.servicemesh.v1beta.MembershipState DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.servicemesh.v1beta.MembershipState(); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.MembershipState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/MembershipStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/MembershipStateOrBuilder.java new file mode 100644 index 000000000000..4972bec1342b --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/MembershipStateOrBuilder.java @@ -0,0 +1,177 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gkehub.servicemesh.v1beta; + +public interface MembershipStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.servicemesh.v1beta.MembershipState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Status of control plane management
+   * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement control_plane_management = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the controlPlaneManagement field is set. + */ + boolean hasControlPlaneManagement(); + /** + * + * + *
+   * Output only. Status of control plane management
+   * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement control_plane_management = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The controlPlaneManagement. + */ + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement + getControlPlaneManagement(); + /** + * + * + *
+   * Output only. Status of control plane management
+   * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagement control_plane_management = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ControlPlaneManagementOrBuilder + getControlPlaneManagementOrBuilder(); + + /** + * + * + *
+   * Output only. Status of data plane management.
+   * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement data_plane_management = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataPlaneManagement field is set. + */ + boolean hasDataPlaneManagement(); + /** + * + * + *
+   * Output only. Status of data plane management.
+   * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement data_plane_management = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataPlaneManagement. + */ + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement + getDataPlaneManagement(); + /** + * + * + *
+   * Output only. Status of data plane management.
+   * 
+ * + * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagement data_plane_management = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.DataPlaneManagementOrBuilder + getDataPlaneManagementOrBuilder(); + + /** + * + * + *
+   * Output only. List of conditions reported for this membership.
+   * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getConditionsList(); + /** + * + * + *
+   * Output only. List of conditions reported for this membership.
+   * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition getConditions(int index); + /** + * + * + *
+   * Output only. List of conditions reported for this membership.
+   * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getConditionsCount(); + /** + * + * + *
+   * Output only. List of conditions reported for this membership.
+   * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ConditionOrBuilder> + getConditionsOrBuilderList(); + /** + * + * + *
+   * Output only. List of conditions reported for this membership.
+   * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1beta.MembershipState.Condition conditions = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.ConditionOrBuilder + getConditionsOrBuilder(int index); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/ServiceMeshProto.java b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/ServiceMeshProto.java new file mode 100644 index 000000000000..09072a2dc004 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/ServiceMeshProto.java @@ -0,0 +1,215 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gkehub.servicemesh.v1beta; + +public final class ServiceMeshProto { + private ServiceMeshProto() {} + + 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_gkehub_servicemesh_v1beta_MembershipSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_ControlPlaneManagement_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_ControlPlaneManagement_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_DataPlaneManagement_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_DataPlaneManagement_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_Condition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_Condition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_servicemesh_v1beta_StatusDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_servicemesh_v1beta_StatusDetails_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/gkehub/servicemesh/v1beta" + + "/servicemesh.proto\022&google.cloud.gkehub." + + "servicemesh.v1beta\032\037google/api/field_beh" + + "avior.proto\"\213\003\n\016MembershipSpec\022h\n\rcontro" + + "l_plane\030\001 \001(\0162M.google.cloud.gkehub.serv" + + "icemesh.v1beta.MembershipSpec.ControlPla" + + "neManagementB\002\030\001\022U\n\nmanagement\030\004 \001(\0162A.g" + + "oogle.cloud.gkehub.servicemesh.v1beta.Me" + + "mbershipSpec.Management\"]\n\026ControlPlaneM" + + "anagement\022(\n$CONTROL_PLANE_MANAGEMENT_UN" + + "SPECIFIED\020\000\022\r\n\tAUTOMATIC\020\001\022\n\n\006MANUAL\020\002\"Y" + + "\n\nManagement\022\032\n\026MANAGEMENT_UNSPECIFIED\020\000" + + "\022\030\n\024MANAGEMENT_AUTOMATIC\020\001\022\025\n\021MANAGEMENT" + + "_MANUAL\020\002\"\254\022\n\017MembershipState\022u\n\030control" + + "_plane_management\030\002 \001(\0132N.google.cloud.g" + + "kehub.servicemesh.v1beta.MembershipState" + + ".ControlPlaneManagementB\003\340A\003\022o\n\025data_pla" + + "ne_management\030\004 \001(\0132K.google.cloud.gkehu" + + "b.servicemesh.v1beta.MembershipState.Dat" + + "aPlaneManagementB\003\340A\003\022Z\n\nconditions\030\010 \003(" + + "\0132A.google.cloud.gkehub.servicemesh.v1be" + + "ta.MembershipState.ConditionB\003\340A\003\032\225\003\n\026Co" + + "ntrolPlaneManagement\022F\n\007details\030\002 \003(\01325." + + "google.cloud.gkehub.servicemesh.v1beta.S" + + "tatusDetails\022U\n\005state\030\003 \001(\0162F.google.clo" + + "ud.gkehub.servicemesh.v1beta.MembershipS" + + "tate.LifecycleState\022z\n\016implementation\030\004 " + + "\001(\0162].google.cloud.gkehub.servicemesh.v1" + + "beta.MembershipState.ControlPlaneManagem" + + "ent.ImplementationB\003\340A\003\"`\n\016Implementatio" + + "n\022\036\n\032IMPLEMENTATION_UNSPECIFIED\020\000\022\n\n\006IST" + + "IOD\020\001\022\024\n\020TRAFFIC_DIRECTOR\020\002\022\014\n\010UPDATING\020" + + "\003\032\264\001\n\023DataPlaneManagement\022U\n\005state\030\001 \001(\016" + + "2F.google.cloud.gkehub.servicemesh.v1bet" + + "a.MembershipState.LifecycleState\022F\n\007deta" + + "ils\030\002 \003(\01325.google.cloud.gkehub.servicem" + + "esh.v1beta.StatusDetails\032\334\t\n\tCondition\022T" + + "\n\004code\030\001 \001(\0162F.google.cloud.gkehub.servi" + + "cemesh.v1beta.MembershipState.Condition." + + "Code\022\032\n\022documentation_link\030\002 \001(\t\022\017\n\007deta" + + "ils\030\003 \001(\t\022\\\n\010severity\030\004 \001(\0162J.google.clo" + + "ud.gkehub.servicemesh.v1beta.MembershipS" + + "tate.Condition.Severity\"\245\007\n\004Code\022\024\n\020CODE" + + "_UNSPECIFIED\020\000\022\036\n\032MESH_IAM_PERMISSION_DE" + + "NIED\020d\022\033\n\026CNI_CONFIG_UNSUPPORTED\020\311\001\022\034\n\027G" + + "KE_SANDBOX_UNSUPPORTED\020\312\001\0223\n.NODEPOOL_WO" + + "RKLOAD_IDENTITY_FEDERATION_REQUIRED\020\313\001\022\034" + + "\n\027CNI_INSTALLATION_FAILED\020\314\001\022\032\n\025CNI_POD_" + + "UNSCHEDULABLE\020\315\001\022(\n#UNSUPPORTED_MULTIPLE" + + "_CONTROL_PLANES\020\255\002\022\027\n\022VPCSC_GA_SUPPORTED" + + "\020\256\002\022 \n\033CONFIG_APPLY_INTERNAL_ERROR\020\221\003\022\034\n" + + "\027CONFIG_VALIDATION_ERROR\020\222\003\022\036\n\031CONFIG_VA" + + "LIDATION_WARNING\020\223\003\022$\n\037QUOTA_EXCEEDED_BA" + + "CKEND_SERVICES\020\224\003\022!\n\034QUOTA_EXCEEDED_HEAL" + + "TH_CHECKS\020\225\003\022\037\n\032QUOTA_EXCEEDED_HTTP_ROUT" + + "ES\020\226\003\022\036\n\031QUOTA_EXCEEDED_TCP_ROUTES\020\227\003\022\036\n" + + "\031QUOTA_EXCEEDED_TLS_ROUTES\020\230\003\022$\n\037QUOTA_E" + + "XCEEDED_TRAFFIC_POLICIES\020\231\003\022%\n QUOTA_EXC" + + "EEDED_ENDPOINT_POLICIES\020\232\003\022\034\n\027QUOTA_EXCE" + + "EDED_GATEWAYS\020\233\003\022\032\n\025QUOTA_EXCEEDED_MESHE" + + "S\020\234\003\022\'\n\"QUOTA_EXCEEDED_SERVER_TLS_POLICI" + + "ES\020\235\003\022\'\n\"QUOTA_EXCEEDED_CLIENT_TLS_POLIC" + + "IES\020\236\003\022\'\n\"QUOTA_EXCEEDED_SERVICE_LB_POLI" + + "CIES\020\237\003\022 \n\033QUOTA_EXCEEDED_HTTP_FILTERS\020\240" + + "\003\022\037\n\032QUOTA_EXCEEDED_TCP_FILTERS\020\241\003\022+\n&QU" + + "OTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS\020\242\003\"" + + "F\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\t\n" + + "\005ERROR\020\001\022\013\n\007WARNING\020\002\022\010\n\004INFO\020\003\"\246\001\n\016Life" + + "cycleState\022\037\n\033LIFECYCLE_STATE_UNSPECIFIE" + + "D\020\000\022\014\n\010DISABLED\020\001\022\027\n\023FAILED_PRECONDITION" + + "\020\002\022\020\n\014PROVISIONING\020\003\022\n\n\006ACTIVE\020\004\022\013\n\007STAL" + + "LED\020\005\022\023\n\017NEEDS_ATTENTION\020\006\022\014\n\010DEGRADED\020\007" + + "\".\n\rStatusDetails\022\014\n\004code\030\001 \001(\t\022\017\n\007detai" + + "ls\030\002 \001(\tB\215\002\n*com.google.cloud.gkehub.ser" + + "vicemesh.v1betaB\020ServiceMeshProtoP\001ZLclo" + + "ud.google.com/go/gkehub/servicemesh/apiv" + + "1beta/servicemeshpb;servicemeshpb\252\002&Goog" + + "le.Cloud.GkeHub.ServiceMesh.V1Beta\312\002&Goo" + + "gle\\Cloud\\GkeHub\\ServiceMesh\\V1beta\352\002*Go" + + "ogle::Cloud::GkeHub::ServiceMesh::V1beta" + + "b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipSpec_descriptor, + new java.lang.String[] { + "ControlPlane", "Management", + }); + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_descriptor, + new java.lang.String[] { + "ControlPlaneManagement", "DataPlaneManagement", "Conditions", + }); + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_ControlPlaneManagement_descriptor = + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_ControlPlaneManagement_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_ControlPlaneManagement_descriptor, + new java.lang.String[] { + "Details", "State", "Implementation", + }); + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_DataPlaneManagement_descriptor = + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_DataPlaneManagement_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_DataPlaneManagement_descriptor, + new java.lang.String[] { + "State", "Details", + }); + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_Condition_descriptor = + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_Condition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_servicemesh_v1beta_MembershipState_Condition_descriptor, + new java.lang.String[] { + "Code", "DocumentationLink", "Details", "Severity", + }); + internal_static_google_cloud_gkehub_servicemesh_v1beta_StatusDetails_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_servicemesh_v1beta_StatusDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_servicemesh_v1beta_StatusDetails_descriptor, + new java.lang.String[] { + "Code", "Details", + }); + 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(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/StatusDetails.java b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/StatusDetails.java new file mode 100644 index 000000000000..ef38b96d2314 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/StatusDetails.java @@ -0,0 +1,808 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gkehub.servicemesh.v1beta; + +/** + * + * + *
+ * Structured and human-readable details for a status.
+ * 
+ * + * Protobuf type {@code google.cloud.gkehub.servicemesh.v1beta.StatusDetails} + */ +public final class StatusDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.servicemesh.v1beta.StatusDetails) + StatusDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use StatusDetails.newBuilder() to construct. + private StatusDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StatusDetails() { + code_ = ""; + details_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StatusDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_StatusDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_StatusDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.class, + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.Builder.class); + } + + public static final int CODE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object code_ = ""; + /** + * + * + *
+   * A machine-readable code that further describes a broad status.
+   * 
+ * + * string code = 1; + * + * @return The code. + */ + @java.lang.Override + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } + } + /** + * + * + *
+   * A machine-readable code that further describes a broad status.
+   * 
+ * + * string code = 1; + * + * @return The bytes for code. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DETAILS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object details_ = ""; + /** + * + * + *
+   * Human-readable explanation of code.
+   * 
+ * + * string details = 2; + * + * @return The details. + */ + @java.lang.Override + public java.lang.String getDetails() { + java.lang.Object ref = details_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + details_ = s; + return s; + } + } + /** + * + * + *
+   * Human-readable explanation of code.
+   * 
+ * + * string details = 2; + * + * @return The bytes for details. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDetailsBytes() { + java.lang.Object ref = details_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + details_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, details_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, details_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails)) { + return super.equals(obj); + } + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails other = + (com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails) obj; + + if (!getCode().equals(other.getCode())) return false; + if (!getDetails().equals(other.getDetails())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (37 * hash) + DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDetails().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails 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.gkehub.servicemesh.v1beta.StatusDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails 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.gkehub.servicemesh.v1beta.StatusDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails 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.gkehub.servicemesh.v1beta.StatusDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Structured and human-readable details for a status.
+   * 
+ * + * Protobuf type {@code google.cloud.gkehub.servicemesh.v1beta.StatusDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.servicemesh.v1beta.StatusDetails) + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_StatusDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_StatusDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.class, + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.Builder.class); + } + + // Construct using com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + code_ = ""; + details_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto + .internal_static_google_cloud_gkehub_servicemesh_v1beta_StatusDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails getDefaultInstanceForType() { + return com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails build() { + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails buildPartial() { + com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails result = + new com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.code_ = code_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.details_ = details_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails) { + return mergeFrom((com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails other) { + if (other == com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails.getDefaultInstance()) + return this; + if (!other.getCode().isEmpty()) { + code_ = other.code_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDetails().isEmpty()) { + details_ = other.details_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + code_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + details_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object code_ = ""; + /** + * + * + *
+     * A machine-readable code that further describes a broad status.
+     * 
+ * + * string code = 1; + * + * @return The code. + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A machine-readable code that further describes a broad status.
+     * 
+ * + * string code = 1; + * + * @return The bytes for code. + */ + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A machine-readable code that further describes a broad status.
+     * 
+ * + * string code = 1; + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * A machine-readable code that further describes a broad status.
+     * 
+ * + * string code = 1; + * + * @return This builder for chaining. + */ + public Builder clearCode() { + code_ = getDefaultInstance().getCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * A machine-readable code that further describes a broad status.
+     * 
+ * + * string code = 1; + * + * @param value The bytes for code to set. + * @return This builder for chaining. + */ + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object details_ = ""; + /** + * + * + *
+     * Human-readable explanation of code.
+     * 
+ * + * string details = 2; + * + * @return The details. + */ + public java.lang.String getDetails() { + java.lang.Object ref = details_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + details_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Human-readable explanation of code.
+     * 
+ * + * string details = 2; + * + * @return The bytes for details. + */ + public com.google.protobuf.ByteString getDetailsBytes() { + java.lang.Object ref = details_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + details_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Human-readable explanation of code.
+     * 
+ * + * string details = 2; + * + * @param value The details to set. + * @return This builder for chaining. + */ + public Builder setDetails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Human-readable explanation of code.
+     * 
+ * + * string details = 2; + * + * @return This builder for chaining. + */ + public Builder clearDetails() { + details_ = getDefaultInstance().getDetails(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Human-readable explanation of code.
+     * 
+ * + * string details = 2; + * + * @param value The bytes for details to set. + * @return This builder for chaining. + */ + public Builder setDetailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + details_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.servicemesh.v1beta.StatusDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.servicemesh.v1beta.StatusDetails) + private static final com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails(); + } + + public static com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StatusDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.StatusDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/StatusDetailsOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/StatusDetailsOrBuilder.java new file mode 100644 index 000000000000..7a9cb4322735 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/servicemesh/v1beta/StatusDetailsOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gkehub.servicemesh.v1beta; + +public interface StatusDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.servicemesh.v1beta.StatusDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A machine-readable code that further describes a broad status.
+   * 
+ * + * string code = 1; + * + * @return The code. + */ + java.lang.String getCode(); + /** + * + * + *
+   * A machine-readable code that further describes a broad status.
+   * 
+ * + * string code = 1; + * + * @return The bytes for code. + */ + com.google.protobuf.ByteString getCodeBytes(); + + /** + * + * + *
+   * Human-readable explanation of code.
+   * 
+ * + * string details = 2; + * + * @return The details. + */ + java.lang.String getDetails(); + /** + * + * + *
+   * Human-readable explanation of code.
+   * 
+ * + * string details = 2; + * + * @return The bytes for details. + */ + com.google.protobuf.ByteString getDetailsBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/Feature.java b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/Feature.java index 1df467ad9c56..4d94a59e907e 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/Feature.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/Feature.java @@ -163,7 +163,7 @@ public int getLabelsCount() { * * *
-   * GCP labels for this Feature.
+   * Labels for this Feature.
    * 
* * map<string, string> labels = 2; @@ -185,7 +185,7 @@ public java.util.Map getLabels() { * * *
-   * GCP labels for this Feature.
+   * Labels for this Feature.
    * 
* * map<string, string> labels = 2; @@ -198,7 +198,7 @@ public java.util.Map getLabelsMap() { * * *
-   * GCP labels for this Feature.
+   * Labels for this Feature.
    * 
* * map<string, string> labels = 2; @@ -218,7 +218,7 @@ public java.util.Map getLabelsMap() { * * *
-   * GCP labels for this Feature.
+   * Labels for this Feature.
    * 
* * map<string, string> labels = 2; @@ -297,8 +297,8 @@ public com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder getResourceS * * *
-   * Optional. Hub-wide Feature configuration. If this Feature does not support any
-   * Hub-wide configuration, this field may be unused.
+   * Optional. Hub-wide Feature configuration. If this Feature does not support
+   * any Hub-wide configuration, this field may be unused.
    * 
* * @@ -315,8 +315,8 @@ public boolean hasSpec() { * * *
-   * Optional. Hub-wide Feature configuration. If this Feature does not support any
-   * Hub-wide configuration, this field may be unused.
+   * Optional. Hub-wide Feature configuration. If this Feature does not support
+   * any Hub-wide configuration, this field may be unused.
    * 
* * @@ -335,8 +335,8 @@ public com.google.cloud.gkehub.v1beta.CommonFeatureSpec getSpec() { * * *
-   * Optional. Hub-wide Feature configuration. If this Feature does not support any
-   * Hub-wide configuration, this field may be unused.
+   * Optional. Hub-wide Feature configuration. If this Feature does not support
+   * any Hub-wide configuration, this field may be unused.
    * 
* * @@ -389,12 +389,13 @@ public int getMembershipSpecsCount() { * * *
-   * Optional. Membership-specific configuration for this Feature. If this Feature does
-   * not support any per-Membership configuration, this field may be unused.
+   * Optional. Membership-specific configuration for this Feature. If this
+   * Feature does not support any per-Membership configuration, this field may
+   * be unused.
    *
    * The keys indicate which Membership the configuration is for, in the form:
    *
-   *     projects/{p}/locations/{l}/memberships/{m}
+   * `projects/{p}/locations/{l}/memberships/{m}`
    *
    * Where {p} is the project, {l} is a valid location and {m} is a valid
    * Membership in this project at that location. {p} WILL match the Feature's
@@ -430,12 +431,13 @@ public boolean containsMembershipSpecs(java.lang.String key) {
    *
    *
    * 
-   * Optional. Membership-specific configuration for this Feature. If this Feature does
-   * not support any per-Membership configuration, this field may be unused.
+   * Optional. Membership-specific configuration for this Feature. If this
+   * Feature does not support any per-Membership configuration, this field may
+   * be unused.
    *
    * The keys indicate which Membership the configuration is for, in the form:
    *
-   *     projects/{p}/locations/{l}/memberships/{m}
+   * `projects/{p}/locations/{l}/memberships/{m}`
    *
    * Where {p} is the project, {l} is a valid location and {m} is a valid
    * Membership in this project at that location. {p} WILL match the Feature's
@@ -462,12 +464,13 @@ public boolean containsMembershipSpecs(java.lang.String key) {
    *
    *
    * 
-   * Optional. Membership-specific configuration for this Feature. If this Feature does
-   * not support any per-Membership configuration, this field may be unused.
+   * Optional. Membership-specific configuration for this Feature. If this
+   * Feature does not support any per-Membership configuration, this field may
+   * be unused.
    *
    * The keys indicate which Membership the configuration is for, in the form:
    *
-   *     projects/{p}/locations/{l}/memberships/{m}
+   * `projects/{p}/locations/{l}/memberships/{m}`
    *
    * Where {p} is the project, {l} is a valid location and {m} is a valid
    * Membership in this project at that location. {p} WILL match the Feature's
@@ -502,12 +505,13 @@ public boolean containsMembershipSpecs(java.lang.String key) {
    *
    *
    * 
-   * Optional. Membership-specific configuration for this Feature. If this Feature does
-   * not support any per-Membership configuration, this field may be unused.
+   * Optional. Membership-specific configuration for this Feature. If this
+   * Feature does not support any per-Membership configuration, this field may
+   * be unused.
    *
    * The keys indicate which Membership the configuration is for, in the form:
    *
-   *     projects/{p}/locations/{l}/memberships/{m}
+   * `projects/{p}/locations/{l}/memberships/{m}`
    *
    * Where {p} is the project, {l} is a valid location and {m} is a valid
    * Membership in this project at that location. {p} WILL match the Feature's
@@ -639,7 +643,7 @@ public int getMembershipStatesCount() {
    *
    * The keys indicate which Membership the state is for, in the form:
    *
-   *     projects/{p}/locations/{l}/memberships/{m}
+   * `projects/{p}/locations/{l}/memberships/{m}`
    *
    * Where {p} is the project number, {l} is a valid location and {m} is a valid
    * Membership in this project at that location. {p} MUST match the Feature's
@@ -673,7 +677,7 @@ public boolean containsMembershipStates(java.lang.String key) {
    *
    * The keys indicate which Membership the state is for, in the form:
    *
-   *     projects/{p}/locations/{l}/memberships/{m}
+   * `projects/{p}/locations/{l}/memberships/{m}`
    *
    * Where {p} is the project number, {l} is a valid location and {m} is a valid
    * Membership in this project at that location. {p} MUST match the Feature's
@@ -698,7 +702,7 @@ public boolean containsMembershipStates(java.lang.String key) {
    *
    * The keys indicate which Membership the state is for, in the form:
    *
-   *     projects/{p}/locations/{l}/memberships/{m}
+   * `projects/{p}/locations/{l}/memberships/{m}`
    *
    * Where {p} is the project number, {l} is a valid location and {m} is a valid
    * Membership in this project at that location. {p} MUST match the Feature's
@@ -731,7 +735,7 @@ public boolean containsMembershipStates(java.lang.String key) {
    *
    * The keys indicate which Membership the state is for, in the form:
    *
-   *     projects/{p}/locations/{l}/memberships/{m}
+   * `projects/{p}/locations/{l}/memberships/{m}`
    *
    * Where {p} is the project number, {l} is a valid location and {m} is a valid
    * Membership in this project at that location. {p} MUST match the Feature's
@@ -1739,7 +1743,7 @@ public int getLabelsCount() {
      *
      *
      * 
-     * GCP labels for this Feature.
+     * Labels for this Feature.
      * 
* * map<string, string> labels = 2; @@ -1761,7 +1765,7 @@ public java.util.Map getLabels() { * * *
-     * GCP labels for this Feature.
+     * Labels for this Feature.
      * 
* * map<string, string> labels = 2; @@ -1774,7 +1778,7 @@ public java.util.Map getLabelsMap() { * * *
-     * GCP labels for this Feature.
+     * Labels for this Feature.
      * 
* * map<string, string> labels = 2; @@ -1794,7 +1798,7 @@ public java.util.Map getLabelsMap() { * * *
-     * GCP labels for this Feature.
+     * Labels for this Feature.
      * 
* * map<string, string> labels = 2; @@ -1820,7 +1824,7 @@ public Builder clearLabels() { * * *
-     * GCP labels for this Feature.
+     * Labels for this Feature.
      * 
* * map<string, string> labels = 2; @@ -1842,7 +1846,7 @@ public java.util.Map getMutableLabels() { * * *
-     * GCP labels for this Feature.
+     * Labels for this Feature.
      * 
* * map<string, string> labels = 2; @@ -1862,7 +1866,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
-     * GCP labels for this Feature.
+     * Labels for this Feature.
      * 
* * map<string, string> labels = 2; @@ -2089,8 +2093,8 @@ public com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder getResourceSt * * *
-     * Optional. Hub-wide Feature configuration. If this Feature does not support any
-     * Hub-wide configuration, this field may be unused.
+     * Optional. Hub-wide Feature configuration. If this Feature does not support
+     * any Hub-wide configuration, this field may be unused.
      * 
* * @@ -2106,8 +2110,8 @@ public boolean hasSpec() { * * *
-     * Optional. Hub-wide Feature configuration. If this Feature does not support any
-     * Hub-wide configuration, this field may be unused.
+     * Optional. Hub-wide Feature configuration. If this Feature does not support
+     * any Hub-wide configuration, this field may be unused.
      * 
* * @@ -2129,8 +2133,8 @@ public com.google.cloud.gkehub.v1beta.CommonFeatureSpec getSpec() { * * *
-     * Optional. Hub-wide Feature configuration. If this Feature does not support any
-     * Hub-wide configuration, this field may be unused.
+     * Optional. Hub-wide Feature configuration. If this Feature does not support
+     * any Hub-wide configuration, this field may be unused.
      * 
* * @@ -2154,8 +2158,8 @@ public Builder setSpec(com.google.cloud.gkehub.v1beta.CommonFeatureSpec value) { * * *
-     * Optional. Hub-wide Feature configuration. If this Feature does not support any
-     * Hub-wide configuration, this field may be unused.
+     * Optional. Hub-wide Feature configuration. If this Feature does not support
+     * any Hub-wide configuration, this field may be unused.
      * 
* * @@ -2177,8 +2181,8 @@ public Builder setSpec( * * *
-     * Optional. Hub-wide Feature configuration. If this Feature does not support any
-     * Hub-wide configuration, this field may be unused.
+     * Optional. Hub-wide Feature configuration. If this Feature does not support
+     * any Hub-wide configuration, this field may be unused.
      * 
* * @@ -2207,8 +2211,8 @@ public Builder mergeSpec(com.google.cloud.gkehub.v1beta.CommonFeatureSpec value) * * *
-     * Optional. Hub-wide Feature configuration. If this Feature does not support any
-     * Hub-wide configuration, this field may be unused.
+     * Optional. Hub-wide Feature configuration. If this Feature does not support
+     * any Hub-wide configuration, this field may be unused.
      * 
* * @@ -2229,8 +2233,8 @@ public Builder clearSpec() { * * *
-     * Optional. Hub-wide Feature configuration. If this Feature does not support any
-     * Hub-wide configuration, this field may be unused.
+     * Optional. Hub-wide Feature configuration. If this Feature does not support
+     * any Hub-wide configuration, this field may be unused.
      * 
* * @@ -2246,8 +2250,8 @@ public com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder getSpecBuilder() * * *
-     * Optional. Hub-wide Feature configuration. If this Feature does not support any
-     * Hub-wide configuration, this field may be unused.
+     * Optional. Hub-wide Feature configuration. If this Feature does not support
+     * any Hub-wide configuration, this field may be unused.
      * 
* * @@ -2267,8 +2271,8 @@ public com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder getSpecOrBuilde * * *
-     * Optional. Hub-wide Feature configuration. If this Feature does not support any
-     * Hub-wide configuration, this field may be unused.
+     * Optional. Hub-wide Feature configuration. If this Feature does not support
+     * any Hub-wide configuration, this field may be unused.
      * 
* * @@ -2357,12 +2361,13 @@ public int getMembershipSpecsCount() { * * *
-     * Optional. Membership-specific configuration for this Feature. If this Feature does
-     * not support any per-Membership configuration, this field may be unused.
+     * Optional. Membership-specific configuration for this Feature. If this
+     * Feature does not support any per-Membership configuration, this field may
+     * be unused.
      *
      * The keys indicate which Membership the configuration is for, in the form:
      *
-     *     projects/{p}/locations/{l}/memberships/{m}
+     * `projects/{p}/locations/{l}/memberships/{m}`
      *
      * Where {p} is the project, {l} is a valid location and {m} is a valid
      * Membership in this project at that location. {p} WILL match the Feature's
@@ -2398,12 +2403,13 @@ public boolean containsMembershipSpecs(java.lang.String key) {
      *
      *
      * 
-     * Optional. Membership-specific configuration for this Feature. If this Feature does
-     * not support any per-Membership configuration, this field may be unused.
+     * Optional. Membership-specific configuration for this Feature. If this
+     * Feature does not support any per-Membership configuration, this field may
+     * be unused.
      *
      * The keys indicate which Membership the configuration is for, in the form:
      *
-     *     projects/{p}/locations/{l}/memberships/{m}
+     * `projects/{p}/locations/{l}/memberships/{m}`
      *
      * Where {p} is the project, {l} is a valid location and {m} is a valid
      * Membership in this project at that location. {p} WILL match the Feature's
@@ -2430,12 +2436,13 @@ public boolean containsMembershipSpecs(java.lang.String key) {
      *
      *
      * 
-     * Optional. Membership-specific configuration for this Feature. If this Feature does
-     * not support any per-Membership configuration, this field may be unused.
+     * Optional. Membership-specific configuration for this Feature. If this
+     * Feature does not support any per-Membership configuration, this field may
+     * be unused.
      *
      * The keys indicate which Membership the configuration is for, in the form:
      *
-     *     projects/{p}/locations/{l}/memberships/{m}
+     * `projects/{p}/locations/{l}/memberships/{m}`
      *
      * Where {p} is the project, {l} is a valid location and {m} is a valid
      * Membership in this project at that location. {p} WILL match the Feature's
@@ -2470,12 +2477,13 @@ public boolean containsMembershipSpecs(java.lang.String key) {
      *
      *
      * 
-     * Optional. Membership-specific configuration for this Feature. If this Feature does
-     * not support any per-Membership configuration, this field may be unused.
+     * Optional. Membership-specific configuration for this Feature. If this
+     * Feature does not support any per-Membership configuration, this field may
+     * be unused.
      *
      * The keys indicate which Membership the configuration is for, in the form:
      *
-     *     projects/{p}/locations/{l}/memberships/{m}
+     * `projects/{p}/locations/{l}/memberships/{m}`
      *
      * Where {p} is the project, {l} is a valid location and {m} is a valid
      * Membership in this project at that location. {p} WILL match the Feature's
@@ -2516,12 +2524,13 @@ public Builder clearMembershipSpecs() {
      *
      *
      * 
-     * Optional. Membership-specific configuration for this Feature. If this Feature does
-     * not support any per-Membership configuration, this field may be unused.
+     * Optional. Membership-specific configuration for this Feature. If this
+     * Feature does not support any per-Membership configuration, this field may
+     * be unused.
      *
      * The keys indicate which Membership the configuration is for, in the form:
      *
-     *     projects/{p}/locations/{l}/memberships/{m}
+     * `projects/{p}/locations/{l}/memberships/{m}`
      *
      * Where {p} is the project, {l} is a valid location and {m} is a valid
      * Membership in this project at that location. {p} WILL match the Feature's
@@ -2557,12 +2566,13 @@ public Builder removeMembershipSpecs(java.lang.String key) {
      *
      *
      * 
-     * Optional. Membership-specific configuration for this Feature. If this Feature does
-     * not support any per-Membership configuration, this field may be unused.
+     * Optional. Membership-specific configuration for this Feature. If this
+     * Feature does not support any per-Membership configuration, this field may
+     * be unused.
      *
      * The keys indicate which Membership the configuration is for, in the form:
      *
-     *     projects/{p}/locations/{l}/memberships/{m}
+     * `projects/{p}/locations/{l}/memberships/{m}`
      *
      * Where {p} is the project, {l} is a valid location and {m} is a valid
      * Membership in this project at that location. {p} WILL match the Feature's
@@ -2596,12 +2606,13 @@ public Builder putMembershipSpecs(
      *
      *
      * 
-     * Optional. Membership-specific configuration for this Feature. If this Feature does
-     * not support any per-Membership configuration, this field may be unused.
+     * Optional. Membership-specific configuration for this Feature. If this
+     * Feature does not support any per-Membership configuration, this field may
+     * be unused.
      *
      * The keys indicate which Membership the configuration is for, in the form:
      *
-     *     projects/{p}/locations/{l}/memberships/{m}
+     * `projects/{p}/locations/{l}/memberships/{m}`
      *
      * Where {p} is the project, {l} is a valid location and {m} is a valid
      * Membership in this project at that location. {p} WILL match the Feature's
@@ -2637,12 +2648,13 @@ public Builder putAllMembershipSpecs(
      *
      *
      * 
-     * Optional. Membership-specific configuration for this Feature. If this Feature does
-     * not support any per-Membership configuration, this field may be unused.
+     * Optional. Membership-specific configuration for this Feature. If this
+     * Feature does not support any per-Membership configuration, this field may
+     * be unused.
      *
      * The keys indicate which Membership the configuration is for, in the form:
      *
-     *     projects/{p}/locations/{l}/memberships/{m}
+     * `projects/{p}/locations/{l}/memberships/{m}`
      *
      * Where {p} is the project, {l} is a valid location and {m} is a valid
      * Membership in this project at that location. {p} WILL match the Feature's
@@ -2950,7 +2962,7 @@ public int getMembershipStatesCount() {
      *
      * The keys indicate which Membership the state is for, in the form:
      *
-     *     projects/{p}/locations/{l}/memberships/{m}
+     * `projects/{p}/locations/{l}/memberships/{m}`
      *
      * Where {p} is the project number, {l} is a valid location and {m} is a valid
      * Membership in this project at that location. {p} MUST match the Feature's
@@ -2984,7 +2996,7 @@ public boolean containsMembershipStates(java.lang.String key) {
      *
      * The keys indicate which Membership the state is for, in the form:
      *
-     *     projects/{p}/locations/{l}/memberships/{m}
+     * `projects/{p}/locations/{l}/memberships/{m}`
      *
      * Where {p} is the project number, {l} is a valid location and {m} is a valid
      * Membership in this project at that location. {p} MUST match the Feature's
@@ -3009,7 +3021,7 @@ public boolean containsMembershipStates(java.lang.String key) {
      *
      * The keys indicate which Membership the state is for, in the form:
      *
-     *     projects/{p}/locations/{l}/memberships/{m}
+     * `projects/{p}/locations/{l}/memberships/{m}`
      *
      * Where {p} is the project number, {l} is a valid location and {m} is a valid
      * Membership in this project at that location. {p} MUST match the Feature's
@@ -3043,7 +3055,7 @@ public boolean containsMembershipStates(java.lang.String key) {
      *
      * The keys indicate which Membership the state is for, in the form:
      *
-     *     projects/{p}/locations/{l}/memberships/{m}
+     * `projects/{p}/locations/{l}/memberships/{m}`
      *
      * Where {p} is the project number, {l} is a valid location and {m} is a valid
      * Membership in this project at that location. {p} MUST match the Feature's
@@ -3083,7 +3095,7 @@ public Builder clearMembershipStates() {
      *
      * The keys indicate which Membership the state is for, in the form:
      *
-     *     projects/{p}/locations/{l}/memberships/{m}
+     * `projects/{p}/locations/{l}/memberships/{m}`
      *
      * Where {p} is the project number, {l} is a valid location and {m} is a valid
      * Membership in this project at that location. {p} MUST match the Feature's
@@ -3117,7 +3129,7 @@ public Builder removeMembershipStates(java.lang.String key) {
      *
      * The keys indicate which Membership the state is for, in the form:
      *
-     *     projects/{p}/locations/{l}/memberships/{m}
+     * `projects/{p}/locations/{l}/memberships/{m}`
      *
      * Where {p} is the project number, {l} is a valid location and {m} is a valid
      * Membership in this project at that location. {p} MUST match the Feature's
@@ -3149,7 +3161,7 @@ public Builder putMembershipStates(
      *
      * The keys indicate which Membership the state is for, in the form:
      *
-     *     projects/{p}/locations/{l}/memberships/{m}
+     * `projects/{p}/locations/{l}/memberships/{m}`
      *
      * Where {p} is the project number, {l} is a valid location and {m} is a valid
      * Membership in this project at that location. {p} MUST match the Feature's
@@ -3183,7 +3195,7 @@ public Builder putAllMembershipStates(
      *
      * The keys indicate which Membership the state is for, in the form:
      *
-     *     projects/{p}/locations/{l}/memberships/{m}
+     * `projects/{p}/locations/{l}/memberships/{m}`
      *
      * Where {p} is the project number, {l} is a valid location and {m} is a valid
      * Membership in this project at that location. {p} MUST match the Feature's
diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureOrBuilder.java
index d031514066da..e92d32b1f7d1 100644
--- a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureOrBuilder.java
+++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureOrBuilder.java
@@ -55,7 +55,7 @@ public interface FeatureOrBuilder
    *
    *
    * 
-   * GCP labels for this Feature.
+   * Labels for this Feature.
    * 
* * map<string, string> labels = 2; @@ -65,7 +65,7 @@ public interface FeatureOrBuilder * * *
-   * GCP labels for this Feature.
+   * Labels for this Feature.
    * 
* * map<string, string> labels = 2; @@ -78,7 +78,7 @@ public interface FeatureOrBuilder * * *
-   * GCP labels for this Feature.
+   * Labels for this Feature.
    * 
* * map<string, string> labels = 2; @@ -88,7 +88,7 @@ public interface FeatureOrBuilder * * *
-   * GCP labels for this Feature.
+   * Labels for this Feature.
    * 
* * map<string, string> labels = 2; @@ -102,7 +102,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * GCP labels for this Feature.
+   * Labels for this Feature.
    * 
* * map<string, string> labels = 2; @@ -154,8 +154,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Hub-wide Feature configuration. If this Feature does not support any
-   * Hub-wide configuration, this field may be unused.
+   * Optional. Hub-wide Feature configuration. If this Feature does not support
+   * any Hub-wide configuration, this field may be unused.
    * 
* * @@ -169,8 +169,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Hub-wide Feature configuration. If this Feature does not support any
-   * Hub-wide configuration, this field may be unused.
+   * Optional. Hub-wide Feature configuration. If this Feature does not support
+   * any Hub-wide configuration, this field may be unused.
    * 
* * @@ -184,8 +184,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Hub-wide Feature configuration. If this Feature does not support any
-   * Hub-wide configuration, this field may be unused.
+   * Optional. Hub-wide Feature configuration. If this Feature does not support
+   * any Hub-wide configuration, this field may be unused.
    * 
* * @@ -198,12 +198,13 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Membership-specific configuration for this Feature. If this Feature does
-   * not support any per-Membership configuration, this field may be unused.
+   * Optional. Membership-specific configuration for this Feature. If this
+   * Feature does not support any per-Membership configuration, this field may
+   * be unused.
    *
    * The keys indicate which Membership the configuration is for, in the form:
    *
-   *     projects/{p}/locations/{l}/memberships/{m}
+   * `projects/{p}/locations/{l}/memberships/{m}`
    *
    * Where {p} is the project, {l} is a valid location and {m} is a valid
    * Membership in this project at that location. {p} WILL match the Feature's
@@ -226,12 +227,13 @@ java.lang.String getLabelsOrDefault(
    *
    *
    * 
-   * Optional. Membership-specific configuration for this Feature. If this Feature does
-   * not support any per-Membership configuration, this field may be unused.
+   * Optional. Membership-specific configuration for this Feature. If this
+   * Feature does not support any per-Membership configuration, this field may
+   * be unused.
    *
    * The keys indicate which Membership the configuration is for, in the form:
    *
-   *     projects/{p}/locations/{l}/memberships/{m}
+   * `projects/{p}/locations/{l}/memberships/{m}`
    *
    * Where {p} is the project, {l} is a valid location and {m} is a valid
    * Membership in this project at that location. {p} WILL match the Feature's
@@ -258,12 +260,13 @@ java.lang.String getLabelsOrDefault(
    *
    *
    * 
-   * Optional. Membership-specific configuration for this Feature. If this Feature does
-   * not support any per-Membership configuration, this field may be unused.
+   * Optional. Membership-specific configuration for this Feature. If this
+   * Feature does not support any per-Membership configuration, this field may
+   * be unused.
    *
    * The keys indicate which Membership the configuration is for, in the form:
    *
-   *     projects/{p}/locations/{l}/memberships/{m}
+   * `projects/{p}/locations/{l}/memberships/{m}`
    *
    * Where {p} is the project, {l} is a valid location and {m} is a valid
    * Membership in this project at that location. {p} WILL match the Feature's
@@ -287,12 +290,13 @@ java.lang.String getLabelsOrDefault(
    *
    *
    * 
-   * Optional. Membership-specific configuration for this Feature. If this Feature does
-   * not support any per-Membership configuration, this field may be unused.
+   * Optional. Membership-specific configuration for this Feature. If this
+   * Feature does not support any per-Membership configuration, this field may
+   * be unused.
    *
    * The keys indicate which Membership the configuration is for, in the form:
    *
-   *     projects/{p}/locations/{l}/memberships/{m}
+   * `projects/{p}/locations/{l}/memberships/{m}`
    *
    * Where {p} is the project, {l} is a valid location and {m} is a valid
    * Membership in this project at that location. {p} WILL match the Feature's
@@ -319,12 +323,13 @@ com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrDefault
    *
    *
    * 
-   * Optional. Membership-specific configuration for this Feature. If this Feature does
-   * not support any per-Membership configuration, this field may be unused.
+   * Optional. Membership-specific configuration for this Feature. If this
+   * Feature does not support any per-Membership configuration, this field may
+   * be unused.
    *
    * The keys indicate which Membership the configuration is for, in the form:
    *
-   *     projects/{p}/locations/{l}/memberships/{m}
+   * `projects/{p}/locations/{l}/memberships/{m}`
    *
    * Where {p} is the project, {l} is a valid location and {m} is a valid
    * Membership in this project at that location. {p} WILL match the Feature's
@@ -395,7 +400,7 @@ com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrThrow(
    *
    * The keys indicate which Membership the state is for, in the form:
    *
-   *     projects/{p}/locations/{l}/memberships/{m}
+   * `projects/{p}/locations/{l}/memberships/{m}`
    *
    * Where {p} is the project number, {l} is a valid location and {m} is a valid
    * Membership in this project at that location. {p} MUST match the Feature's
@@ -416,7 +421,7 @@ com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrThrow(
    *
    * The keys indicate which Membership the state is for, in the form:
    *
-   *     projects/{p}/locations/{l}/memberships/{m}
+   * `projects/{p}/locations/{l}/memberships/{m}`
    *
    * Where {p} is the project number, {l} is a valid location and {m} is a valid
    * Membership in this project at that location. {p} MUST match the Feature's
@@ -441,7 +446,7 @@ com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrThrow(
    *
    * The keys indicate which Membership the state is for, in the form:
    *
-   *     projects/{p}/locations/{l}/memberships/{m}
+   * `projects/{p}/locations/{l}/memberships/{m}`
    *
    * Where {p} is the project number, {l} is a valid location and {m} is a valid
    * Membership in this project at that location. {p} MUST match the Feature's
@@ -463,7 +468,7 @@ com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrThrow(
    *
    * The keys indicate which Membership the state is for, in the form:
    *
-   *     projects/{p}/locations/{l}/memberships/{m}
+   * `projects/{p}/locations/{l}/memberships/{m}`
    *
    * Where {p} is the project number, {l} is a valid location and {m} is a valid
    * Membership in this project at that location. {p} MUST match the Feature's
@@ -488,7 +493,7 @@ com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStatesOrDefau
    *
    * The keys indicate which Membership the state is for, in the form:
    *
-   *     projects/{p}/locations/{l}/memberships/{m}
+   * `projects/{p}/locations/{l}/memberships/{m}`
    *
    * Where {p} is the project number, {l} is a valid location and {m} is a valid
    * Membership in this project at that location. {p} MUST match the Feature's
diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureProto.java b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureProto.java
index a64e23c4290c..ddd36a99288d 100644
--- a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureProto.java
+++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureProto.java
@@ -80,68 +80,74 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
       "\n(google/cloud/gkehub/v1beta/feature.pro"
           + "to\022\032google.cloud.gkehub.v1beta\032\037google/a"
           + "pi/field_behavior.proto\032\031google/api/reso"
-          + "urce.proto\032Bgoogle/cloud/gkehub/v1beta/c"
-          + "onfigmanagement/configmanagement.proto\0322"
-          + "google/cloud/gkehub/v1beta/metering/mete"
-          + "ring.proto\032Hgoogle/cloud/gkehub/v1beta/m"
-          + "ulticlusteringress/multiclusteringress.p"
-          + "roto\032\037google/protobuf/timestamp.proto\"\357\007"
-          + "\n\007Feature\022\021\n\004name\030\001 \001(\tB\003\340A\003\022?\n\006labels\030\002"
-          + " \003(\0132/.google.cloud.gkehub.v1beta.Featur"
-          + "e.LabelsEntry\022M\n\016resource_state\030\003 \001(\01320."
-          + "google.cloud.gkehub.v1beta.FeatureResour"
-          + "ceStateB\003\340A\003\022@\n\004spec\030\004 \001(\0132-.google.clou"
-          + "d.gkehub.v1beta.CommonFeatureSpecB\003\340A\001\022W"
-          + "\n\020membership_specs\030\005 \003(\01328.google.cloud."
-          + "gkehub.v1beta.Feature.MembershipSpecsEnt"
-          + "ryB\003\340A\001\022B\n\005state\030\006 \001(\0132..google.cloud.gk"
-          + "ehub.v1beta.CommonFeatureStateB\003\340A\003\022Y\n\021m"
-          + "embership_states\030\007 \003(\01329.google.cloud.gk"
-          + "ehub.v1beta.Feature.MembershipStatesEntr"
-          + "yB\003\340A\003\0224\n\013create_time\030\010 \001(\0132\032.google.pro"
-          + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\t \001("
-          + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013de"
-          + "lete_time\030\n \001(\0132\032.google.protobuf.Timest"
-          + "ampB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005"
-          + "value\030\002 \001(\t:\0028\001\032i\n\024MembershipSpecsEntry\022"
-          + "\013\n\003key\030\001 \001(\t\022@\n\005value\030\002 \001(\01321.google.clo"
-          + "ud.gkehub.v1beta.MembershipFeatureSpec:\002"
-          + "8\001\032k\n\025MembershipStatesEntry\022\013\n\003key\030\001 \001(\t"
-          + "\022A\n\005value\030\002 \001(\01322.google.cloud.gkehub.v1"
-          + "beta.MembershipFeatureState:\0028\001:^\352A[\n\035gk"
-          + "ehub.googleapis.com/Feature\022:projects/{p"
-          + "roject}/locations/{location}/features/{f"
-          + "eature}\"\312\001\n\024FeatureResourceState\022E\n\005stat"
-          + "e\030\001 \001(\01626.google.cloud.gkehub.v1beta.Fea"
-          + "tureResourceState.State\"k\n\005State\022\025\n\021STAT"
-          + "E_UNSPECIFIED\020\000\022\014\n\010ENABLING\020\001\022\n\n\006ACTIVE\020"
-          + "\002\022\r\n\tDISABLING\020\003\022\014\n\010UPDATING\020\004\022\024\n\020SERVIC"
-          + "E_UPDATING\020\005\"\317\001\n\014FeatureState\022;\n\004code\030\001 "
-          + "\001(\0162-.google.cloud.gkehub.v1beta.Feature"
-          + "State.Code\022\023\n\013description\030\002 \001(\t\022/\n\013updat"
-          + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp"
-          + "\"<\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\006\n\002OK\020\001\022\013"
-          + "\n\007WARNING\020\002\022\t\n\005ERROR\020\003\"\177\n\021CommonFeatureS"
-          + "pec\022Z\n\023multiclusteringress\030f \001(\0132;.googl"
-          + "e.cloud.gkehub.multiclusteringress.v1bet"
-          + "a.FeatureSpecH\000B\016\n\014feature_spec\"R\n\022Commo"
-          + "nFeatureState\022<\n\005state\030\001 \001(\0132(.google.cl"
-          + "oud.gkehub.v1beta.FeatureStateB\003\340A\003\"\200\001\n\025"
-          + "MembershipFeatureSpec\022W\n\020configmanagemen"
-          + "t\030j \001(\0132;.google.cloud.gkehub.configmana"
-          + "gement.v1beta.MembershipSpecH\000B\016\n\014featur"
-          + "e_spec\"\206\002\n\026MembershipFeatureState\022H\n\010met"
-          + "ering\030h \001(\01324.google.cloud.gkehub.meteri"
-          + "ng.v1beta.MembershipStateH\000\022X\n\020configman"
-          + "agement\030j \001(\0132<.google.cloud.gkehub.conf"
-          + "igmanagement.v1beta.MembershipStateH\000\0227\n"
-          + "\005state\030\001 \001(\0132(.google.cloud.gkehub.v1bet"
-          + "a.FeatureStateB\017\n\rfeature_stateB\302\001\n\036com."
-          + "google.cloud.gkehub.v1betaB\014FeatureProto"
-          + "P\001Z6cloud.google.com/go/gkehub/apiv1beta"
-          + "/gkehubpb;gkehubpb\252\002\032Google.Cloud.GkeHub"
-          + ".V1Beta\312\002\032Google\\Cloud\\GkeHub\\V1beta\352\002\035G"
-          + "oogle::Cloud::GkeHub::V1betab\006proto3"
+          + "urce.proto\0328google/cloud/gkehub/servicem"
+          + "esh/v1beta/servicemesh.proto\032Bgoogle/clo"
+          + "ud/gkehub/v1beta/configmanagement/config"
+          + "management.proto\0322google/cloud/gkehub/v1"
+          + "beta/metering/metering.proto\032Hgoogle/clo"
+          + "ud/gkehub/v1beta/multiclusteringress/mul"
+          + "ticlusteringress.proto\032\037google/protobuf/"
+          + "timestamp.proto\"\357\007\n\007Feature\022\021\n\004name\030\001 \001("
+          + "\tB\003\340A\003\022?\n\006labels\030\002 \003(\0132/.google.cloud.gk"
+          + "ehub.v1beta.Feature.LabelsEntry\022M\n\016resou"
+          + "rce_state\030\003 \001(\01320.google.cloud.gkehub.v1"
+          + "beta.FeatureResourceStateB\003\340A\003\022@\n\004spec\030\004"
+          + " \001(\0132-.google.cloud.gkehub.v1beta.Common"
+          + "FeatureSpecB\003\340A\001\022W\n\020membership_specs\030\005 \003"
+          + "(\01328.google.cloud.gkehub.v1beta.Feature."
+          + "MembershipSpecsEntryB\003\340A\001\022B\n\005state\030\006 \001(\013"
+          + "2..google.cloud.gkehub.v1beta.CommonFeat"
+          + "ureStateB\003\340A\003\022Y\n\021membership_states\030\007 \003(\013"
+          + "29.google.cloud.gkehub.v1beta.Feature.Me"
+          + "mbershipStatesEntryB\003\340A\003\0224\n\013create_time\030"
+          + "\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224"
+          + "\n\013update_time\030\t \001(\0132\032.google.protobuf.Ti"
+          + "mestampB\003\340A\003\0224\n\013delete_time\030\n \001(\0132\032.goog"
+          + "le.protobuf.TimestampB\003\340A\003\032-\n\013LabelsEntr"
+          + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032i\n\024Mem"
+          + "bershipSpecsEntry\022\013\n\003key\030\001 \001(\t\022@\n\005value\030"
+          + "\002 \001(\01321.google.cloud.gkehub.v1beta.Membe"
+          + "rshipFeatureSpec:\0028\001\032k\n\025MembershipStates"
+          + "Entry\022\013\n\003key\030\001 \001(\t\022A\n\005value\030\002 \001(\01322.goog"
+          + "le.cloud.gkehub.v1beta.MembershipFeature"
+          + "State:\0028\001:^\352A[\n\035gkehub.googleapis.com/Fe"
+          + "ature\022:projects/{project}/locations/{loc"
+          + "ation}/features/{feature}\"\312\001\n\024FeatureRes"
+          + "ourceState\022E\n\005state\030\001 \001(\01626.google.cloud"
+          + ".gkehub.v1beta.FeatureResourceState.Stat"
+          + "e\"k\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010ENA"
+          + "BLING\020\001\022\n\n\006ACTIVE\020\002\022\r\n\tDISABLING\020\003\022\014\n\010UP"
+          + "DATING\020\004\022\024\n\020SERVICE_UPDATING\020\005\"\317\001\n\014Featu"
+          + "reState\022;\n\004code\030\001 \001(\0162-.google.cloud.gke"
+          + "hub.v1beta.FeatureState.Code\022\023\n\013descript"
+          + "ion\030\002 \001(\t\022/\n\013update_time\030\003 \001(\0132\032.google."
+          + "protobuf.Timestamp\"<\n\004Code\022\024\n\020CODE_UNSPE"
+          + "CIFIED\020\000\022\006\n\002OK\020\001\022\013\n\007WARNING\020\002\022\t\n\005ERROR\020\003"
+          + "\"\177\n\021CommonFeatureSpec\022Z\n\023multiclustering"
+          + "ress\030f \001(\0132;.google.cloud.gkehub.multicl"
+          + "usteringress.v1beta.FeatureSpecH\000B\016\n\014fea"
+          + "ture_spec\"R\n\022CommonFeatureState\022<\n\005state"
+          + "\030\001 \001(\0132(.google.cloud.gkehub.v1beta.Feat"
+          + "ureStateB\003\340A\003\"\310\001\n\025MembershipFeatureSpec\022"
+          + "W\n\020configmanagement\030j \001(\0132;.google.cloud"
+          + ".gkehub.configmanagement.v1beta.Membersh"
+          + "ipSpecH\000\022F\n\004mesh\030t \001(\01326.google.cloud.gk"
+          + "ehub.servicemesh.v1beta.MembershipSpecH\000"
+          + "B\016\n\014feature_spec\"\326\002\n\026MembershipFeatureSt"
+          + "ate\022N\n\013servicemesh\030d \001(\01327.google.cloud."
+          + "gkehub.servicemesh.v1beta.MembershipStat"
+          + "eH\000\022H\n\010metering\030h \001(\01324.google.cloud.gke"
+          + "hub.metering.v1beta.MembershipStateH\000\022X\n"
+          + "\020configmanagement\030j \001(\0132<.google.cloud.g"
+          + "kehub.configmanagement.v1beta.Membership"
+          + "StateH\000\0227\n\005state\030\001 \001(\0132(.google.cloud.gk"
+          + "ehub.v1beta.FeatureStateB\017\n\rfeature_stat"
+          + "eB\302\001\n\036com.google.cloud.gkehub.v1betaB\014Fe"
+          + "atureProtoP\001Z6cloud.google.com/go/gkehub"
+          + "/apiv1beta/gkehubpb;gkehubpb\252\002\032Google.Cl"
+          + "oud.GkeHub.V1Beta\312\002\032Google\\Cloud\\GkeHub\\"
+          + "V1beta\352\002\035Google::Cloud::GkeHub::V1betab\006"
+          + "proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -149,6 +155,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
             new com.google.protobuf.Descriptors.FileDescriptor[] {
               com.google.api.FieldBehaviorProto.getDescriptor(),
               com.google.api.ResourceProto.getDescriptor(),
+              com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto.getDescriptor(),
               com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.getDescriptor(),
               com.google.cloud.gkehub.metering.v1beta.MeteringProto.getDescriptor(),
               com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto
@@ -234,7 +241,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
             internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor,
             new java.lang.String[] {
-              "Configmanagement", "FeatureSpec",
+              "Configmanagement", "Mesh", "FeatureSpec",
             });
     internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor =
         getDescriptor().getMessageTypes().get(6);
@@ -242,7 +249,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
         new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
             internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor,
             new java.lang.String[] {
-              "Metering", "Configmanagement", "State", "FeatureState",
+              "Servicemesh", "Metering", "Configmanagement", "State", "FeatureState",
             });
     com.google.protobuf.ExtensionRegistry registry =
         com.google.protobuf.ExtensionRegistry.newInstance();
@@ -252,6 +259,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
         descriptor, registry);
     com.google.api.FieldBehaviorProto.getDescriptor();
     com.google.api.ResourceProto.getDescriptor();
+    com.google.cloud.gkehub.servicemesh.v1beta.ServiceMeshProto.getDescriptor();
     com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.getDescriptor();
     com.google.cloud.gkehub.metering.v1beta.MeteringProto.getDescriptor();
     com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto.getDescriptor();
diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpec.java b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpec.java
index e416905811aa..dccbc8ec402b 100644
--- a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpec.java
+++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpec.java
@@ -25,6 +25,7 @@
  * 
  * MembershipFeatureSpec contains configuration information for a single
  * Membership.
+ * NOTE: Please use snake case in your feature name.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.MembershipFeatureSpec} @@ -72,6 +73,7 @@ public enum FeatureSpecCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONFIGMANAGEMENT(106), + MESH(116), FEATURESPEC_NOT_SET(0); private final int value; @@ -92,6 +94,8 @@ public static FeatureSpecCase forNumber(int value) { switch (value) { case 106: return CONFIGMANAGEMENT; + case 116: + return MESH; case 0: return FEATURESPEC_NOT_SET; default: @@ -163,6 +167,57 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getConfigm return com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance(); } + public static final int MESH_FIELD_NUMBER = 116; + /** + * + * + *
+   * Anthos Service Mesh-specific spec
+   * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec mesh = 116; + * + * @return Whether the mesh field is set. + */ + @java.lang.Override + public boolean hasMesh() { + return featureSpecCase_ == 116; + } + /** + * + * + *
+   * Anthos Service Mesh-specific spec
+   * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec mesh = 116; + * + * @return The mesh. + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec getMesh() { + if (featureSpecCase_ == 116) { + return (com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec) featureSpec_; + } + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.getDefaultInstance(); + } + /** + * + * + *
+   * Anthos Service Mesh-specific spec
+   * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec mesh = 116; + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpecOrBuilder getMeshOrBuilder() { + if (featureSpecCase_ == 116) { + return (com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec) featureSpec_; + } + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -181,6 +236,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 106, (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_); } + if (featureSpecCase_ == 116) { + output.writeMessage( + 116, (com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec) featureSpec_); + } getUnknownFields().writeTo(output); } @@ -195,6 +254,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 106, (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_); } + if (featureSpecCase_ == 116) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 116, (com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec) featureSpec_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -216,6 +280,9 @@ public boolean equals(final java.lang.Object obj) { case 106: if (!getConfigmanagement().equals(other.getConfigmanagement())) return false; break; + case 116: + if (!getMesh().equals(other.getMesh())) return false; + break; case 0: default: } @@ -235,6 +302,10 @@ public int hashCode() { hash = (37 * hash) + CONFIGMANAGEMENT_FIELD_NUMBER; hash = (53 * hash) + getConfigmanagement().hashCode(); break; + case 116: + hash = (37 * hash) + MESH_FIELD_NUMBER; + hash = (53 * hash) + getMesh().hashCode(); + break; case 0: default: } @@ -344,6 +415,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * MembershipFeatureSpec contains configuration information for a single
    * Membership.
+   * NOTE: Please use snake case in your feature name.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.MembershipFeatureSpec} @@ -381,6 +453,9 @@ public Builder clear() { if (configmanagementBuilder_ != null) { configmanagementBuilder_.clear(); } + if (meshBuilder_ != null) { + meshBuilder_.clear(); + } featureSpecCase_ = 0; featureSpec_ = null; return this; @@ -428,6 +503,9 @@ private void buildPartialOneofs(com.google.cloud.gkehub.v1beta.MembershipFeature if (featureSpecCase_ == 106 && configmanagementBuilder_ != null) { result.featureSpec_ = configmanagementBuilder_.build(); } + if (featureSpecCase_ == 116 && meshBuilder_ != null) { + result.featureSpec_ = meshBuilder_.build(); + } } @java.lang.Override @@ -482,6 +560,11 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1beta.MembershipFeatureSpec ot mergeConfigmanagement(other.getConfigmanagement()); break; } + case MESH: + { + mergeMesh(other.getMesh()); + break; + } case FEATURESPEC_NOT_SET: { break; @@ -520,6 +603,12 @@ public Builder mergeFrom( featureSpecCase_ = 106; break; } // case 850 + case 930: + { + input.readMessage(getMeshFieldBuilder().getBuilder(), extensionRegistry); + featureSpecCase_ = 116; + break; + } // case 930 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -778,6 +867,217 @@ public Builder clearConfigmanagement() { return configmanagementBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Builder, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpecOrBuilder> + meshBuilder_; + /** + * + * + *
+     * Anthos Service Mesh-specific spec
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec mesh = 116; + * + * @return Whether the mesh field is set. + */ + @java.lang.Override + public boolean hasMesh() { + return featureSpecCase_ == 116; + } + /** + * + * + *
+     * Anthos Service Mesh-specific spec
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec mesh = 116; + * + * @return The mesh. + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec getMesh() { + if (meshBuilder_ == null) { + if (featureSpecCase_ == 116) { + return (com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec) featureSpec_; + } + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.getDefaultInstance(); + } else { + if (featureSpecCase_ == 116) { + return meshBuilder_.getMessage(); + } + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.getDefaultInstance(); + } + } + /** + * + * + *
+     * Anthos Service Mesh-specific spec
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec mesh = 116; + */ + public Builder setMesh(com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec value) { + if (meshBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + featureSpec_ = value; + onChanged(); + } else { + meshBuilder_.setMessage(value); + } + featureSpecCase_ = 116; + return this; + } + /** + * + * + *
+     * Anthos Service Mesh-specific spec
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec mesh = 116; + */ + public Builder setMesh( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Builder builderForValue) { + if (meshBuilder_ == null) { + featureSpec_ = builderForValue.build(); + onChanged(); + } else { + meshBuilder_.setMessage(builderForValue.build()); + } + featureSpecCase_ = 116; + return this; + } + /** + * + * + *
+     * Anthos Service Mesh-specific spec
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec mesh = 116; + */ + public Builder mergeMesh(com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec value) { + if (meshBuilder_ == null) { + if (featureSpecCase_ == 116 + && featureSpec_ + != com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.getDefaultInstance()) { + featureSpec_ = + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.newBuilder( + (com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec) featureSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + featureSpec_ = value; + } + onChanged(); + } else { + if (featureSpecCase_ == 116) { + meshBuilder_.mergeFrom(value); + } else { + meshBuilder_.setMessage(value); + } + } + featureSpecCase_ = 116; + return this; + } + /** + * + * + *
+     * Anthos Service Mesh-specific spec
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec mesh = 116; + */ + public Builder clearMesh() { + if (meshBuilder_ == null) { + if (featureSpecCase_ == 116) { + featureSpecCase_ = 0; + featureSpec_ = null; + onChanged(); + } + } else { + if (featureSpecCase_ == 116) { + featureSpecCase_ = 0; + featureSpec_ = null; + } + meshBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Anthos Service Mesh-specific spec
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec mesh = 116; + */ + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Builder getMeshBuilder() { + return getMeshFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Anthos Service Mesh-specific spec
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec mesh = 116; + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpecOrBuilder getMeshOrBuilder() { + if ((featureSpecCase_ == 116) && (meshBuilder_ != null)) { + return meshBuilder_.getMessageOrBuilder(); + } else { + if (featureSpecCase_ == 116) { + return (com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec) featureSpec_; + } + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.getDefaultInstance(); + } + } + /** + * + * + *
+     * Anthos Service Mesh-specific spec
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec mesh = 116; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Builder, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpecOrBuilder> + getMeshFieldBuilder() { + if (meshBuilder_ == null) { + if (!(featureSpecCase_ == 116)) { + featureSpec_ = + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.getDefaultInstance(); + } + meshBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Builder, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpecOrBuilder>( + (com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec) featureSpec_, + getParentForChildren(), + isClean()); + featureSpec_ = null; + } + featureSpecCase_ = 116; + onChanged(); + return meshBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpecOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpecOrBuilder.java index 755ee56d9e79..0c2842ff3c15 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpecOrBuilder.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpecOrBuilder.java @@ -63,5 +63,40 @@ public interface MembershipFeatureSpecOrBuilder com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder getConfigmanagementOrBuilder(); + /** + * + * + *
+   * Anthos Service Mesh-specific spec
+   * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec mesh = 116; + * + * @return Whether the mesh field is set. + */ + boolean hasMesh(); + /** + * + * + *
+   * Anthos Service Mesh-specific spec
+   * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec mesh = 116; + * + * @return The mesh. + */ + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec getMesh(); + /** + * + * + *
+   * Anthos Service Mesh-specific spec
+   * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipSpec mesh = 116; + */ + com.google.cloud.gkehub.servicemesh.v1beta.MembershipSpecOrBuilder getMeshOrBuilder(); + com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.FeatureSpecCase getFeatureSpecCase(); } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureState.java b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureState.java index e4d3e0e6bc8e..14fe6705ad33 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureState.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureState.java @@ -72,6 +72,7 @@ public enum FeatureStateCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SERVICEMESH(100), METERING(104), CONFIGMANAGEMENT(106), FEATURESTATE_NOT_SET(0); @@ -92,6 +93,8 @@ public static FeatureStateCase valueOf(int value) { public static FeatureStateCase forNumber(int value) { switch (value) { + case 100: + return SERVICEMESH; case 104: return METERING; case 106: @@ -112,12 +115,64 @@ public FeatureStateCase getFeatureStateCase() { return FeatureStateCase.forNumber(featureStateCase_); } + public static final int SERVICEMESH_FIELD_NUMBER = 100; + /** + * + * + *
+   * Service Mesh-specific state.
+   * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState servicemesh = 100; + * + * @return Whether the servicemesh field is set. + */ + @java.lang.Override + public boolean hasServicemesh() { + return featureStateCase_ == 100; + } + /** + * + * + *
+   * Service Mesh-specific state.
+   * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState servicemesh = 100; + * + * @return The servicemesh. + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState getServicemesh() { + if (featureStateCase_ == 100) { + return (com.google.cloud.gkehub.servicemesh.v1beta.MembershipState) featureState_; + } + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.getDefaultInstance(); + } + /** + * + * + *
+   * Service Mesh-specific state.
+   * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState servicemesh = 100; + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipStateOrBuilder + getServicemeshOrBuilder() { + if (featureStateCase_ == 100) { + return (com.google.cloud.gkehub.servicemesh.v1beta.MembershipState) featureState_; + } + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.getDefaultInstance(); + } + public static final int METERING_FIELD_NUMBER = 104; /** * * *
-   * Metering-specific spec.
+   * Metering-specific state.
    * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; @@ -132,7 +187,7 @@ public boolean hasMetering() { * * *
-   * Metering-specific spec.
+   * Metering-specific state.
    * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; @@ -150,7 +205,7 @@ public com.google.cloud.gkehub.metering.v1beta.MembershipState getMetering() { * * *
-   * Metering-specific spec.
+   * Metering-specific state.
    * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; @@ -285,6 +340,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getState()); } + if (featureStateCase_ == 100) { + output.writeMessage( + 100, (com.google.cloud.gkehub.servicemesh.v1beta.MembershipState) featureState_); + } if (featureStateCase_ == 104) { output.writeMessage( 104, (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_); @@ -305,6 +364,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getState()); } + if (featureStateCase_ == 100) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.gkehub.servicemesh.v1beta.MembershipState) featureState_); + } if (featureStateCase_ == 104) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -337,6 +401,9 @@ public boolean equals(final java.lang.Object obj) { } if (!getFeatureStateCase().equals(other.getFeatureStateCase())) return false; switch (featureStateCase_) { + case 100: + if (!getServicemesh().equals(other.getServicemesh())) return false; + break; case 104: if (!getMetering().equals(other.getMetering())) return false; break; @@ -362,6 +429,10 @@ public int hashCode() { hash = (53 * hash) + getState().hashCode(); } switch (featureStateCase_) { + case 100: + hash = (37 * hash) + SERVICEMESH_FIELD_NUMBER; + hash = (53 * hash) + getServicemesh().hashCode(); + break; case 104: hash = (37 * hash) + METERING_FIELD_NUMBER; hash = (53 * hash) + getMetering().hashCode(); @@ -523,6 +594,9 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + if (servicemeshBuilder_ != null) { + servicemeshBuilder_.clear(); + } if (meteringBuilder_ != null) { meteringBuilder_.clear(); } @@ -574,7 +648,7 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureState buildPartial() { private void buildPartial0(com.google.cloud.gkehub.v1beta.MembershipFeatureState result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); to_bitField0_ |= 0x00000001; } @@ -584,6 +658,9 @@ private void buildPartial0(com.google.cloud.gkehub.v1beta.MembershipFeatureState private void buildPartialOneofs(com.google.cloud.gkehub.v1beta.MembershipFeatureState result) { result.featureStateCase_ = featureStateCase_; result.featureState_ = this.featureState_; + if (featureStateCase_ == 100 && servicemeshBuilder_ != null) { + result.featureState_ = servicemeshBuilder_.build(); + } if (featureStateCase_ == 104 && meteringBuilder_ != null) { result.featureState_ = meteringBuilder_.build(); } @@ -642,6 +719,11 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1beta.MembershipFeatureState o mergeState(other.getState()); } switch (other.getFeatureStateCase()) { + case SERVICEMESH: + { + mergeServicemesh(other.getServicemesh()); + break; + } case METERING: { mergeMetering(other.getMetering()); @@ -686,9 +768,15 @@ public Builder mergeFrom( case 10: { input.readMessage(getStateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 10 + case 802: + { + input.readMessage(getServicemeshFieldBuilder().getBuilder(), extensionRegistry); + featureStateCase_ = 100; + break; + } // case 802 case 834: { input.readMessage(getMeteringFieldBuilder().getBuilder(), extensionRegistry); @@ -735,6 +823,222 @@ public Builder clearFeatureState() { private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Builder, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipStateOrBuilder> + servicemeshBuilder_; + /** + * + * + *
+     * Service Mesh-specific state.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState servicemesh = 100; + * + * @return Whether the servicemesh field is set. + */ + @java.lang.Override + public boolean hasServicemesh() { + return featureStateCase_ == 100; + } + /** + * + * + *
+     * Service Mesh-specific state.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState servicemesh = 100; + * + * @return The servicemesh. + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState getServicemesh() { + if (servicemeshBuilder_ == null) { + if (featureStateCase_ == 100) { + return (com.google.cloud.gkehub.servicemesh.v1beta.MembershipState) featureState_; + } + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.getDefaultInstance(); + } else { + if (featureStateCase_ == 100) { + return servicemeshBuilder_.getMessage(); + } + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.getDefaultInstance(); + } + } + /** + * + * + *
+     * Service Mesh-specific state.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState servicemesh = 100; + */ + public Builder setServicemesh( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState value) { + if (servicemeshBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + featureState_ = value; + onChanged(); + } else { + servicemeshBuilder_.setMessage(value); + } + featureStateCase_ = 100; + return this; + } + /** + * + * + *
+     * Service Mesh-specific state.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState servicemesh = 100; + */ + public Builder setServicemesh( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Builder builderForValue) { + if (servicemeshBuilder_ == null) { + featureState_ = builderForValue.build(); + onChanged(); + } else { + servicemeshBuilder_.setMessage(builderForValue.build()); + } + featureStateCase_ = 100; + return this; + } + /** + * + * + *
+     * Service Mesh-specific state.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState servicemesh = 100; + */ + public Builder mergeServicemesh( + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState value) { + if (servicemeshBuilder_ == null) { + if (featureStateCase_ == 100 + && featureState_ + != com.google.cloud.gkehub.servicemesh.v1beta.MembershipState + .getDefaultInstance()) { + featureState_ = + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.newBuilder( + (com.google.cloud.gkehub.servicemesh.v1beta.MembershipState) featureState_) + .mergeFrom(value) + .buildPartial(); + } else { + featureState_ = value; + } + onChanged(); + } else { + if (featureStateCase_ == 100) { + servicemeshBuilder_.mergeFrom(value); + } else { + servicemeshBuilder_.setMessage(value); + } + } + featureStateCase_ = 100; + return this; + } + /** + * + * + *
+     * Service Mesh-specific state.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState servicemesh = 100; + */ + public Builder clearServicemesh() { + if (servicemeshBuilder_ == null) { + if (featureStateCase_ == 100) { + featureStateCase_ = 0; + featureState_ = null; + onChanged(); + } + } else { + if (featureStateCase_ == 100) { + featureStateCase_ = 0; + featureState_ = null; + } + servicemeshBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Service Mesh-specific state.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState servicemesh = 100; + */ + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Builder + getServicemeshBuilder() { + return getServicemeshFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Service Mesh-specific state.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState servicemesh = 100; + */ + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1beta.MembershipStateOrBuilder + getServicemeshOrBuilder() { + if ((featureStateCase_ == 100) && (servicemeshBuilder_ != null)) { + return servicemeshBuilder_.getMessageOrBuilder(); + } else { + if (featureStateCase_ == 100) { + return (com.google.cloud.gkehub.servicemesh.v1beta.MembershipState) featureState_; + } + return com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.getDefaultInstance(); + } + } + /** + * + * + *
+     * Service Mesh-specific state.
+     * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState servicemesh = 100; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Builder, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipStateOrBuilder> + getServicemeshFieldBuilder() { + if (servicemeshBuilder_ == null) { + if (!(featureStateCase_ == 100)) { + featureState_ = + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.getDefaultInstance(); + } + servicemeshBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState.Builder, + com.google.cloud.gkehub.servicemesh.v1beta.MembershipStateOrBuilder>( + (com.google.cloud.gkehub.servicemesh.v1beta.MembershipState) featureState_, + getParentForChildren(), + isClean()); + featureState_ = null; + } + featureStateCase_ = 100; + onChanged(); + return servicemeshBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.gkehub.metering.v1beta.MembershipState, com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder, @@ -744,7 +1048,7 @@ public Builder clearFeatureState() { * * *
-     * Metering-specific spec.
+     * Metering-specific state.
      * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; @@ -759,7 +1063,7 @@ public boolean hasMetering() { * * *
-     * Metering-specific spec.
+     * Metering-specific state.
      * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; @@ -784,7 +1088,7 @@ public com.google.cloud.gkehub.metering.v1beta.MembershipState getMetering() { * * *
-     * Metering-specific spec.
+     * Metering-specific state.
      * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; @@ -806,7 +1110,7 @@ public Builder setMetering(com.google.cloud.gkehub.metering.v1beta.MembershipSta * * *
-     * Metering-specific spec.
+     * Metering-specific state.
      * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; @@ -826,7 +1130,7 @@ public Builder setMetering( * * *
-     * Metering-specific spec.
+     * Metering-specific state.
      * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; @@ -859,7 +1163,7 @@ public Builder mergeMetering(com.google.cloud.gkehub.metering.v1beta.MembershipS * * *
-     * Metering-specific spec.
+     * Metering-specific state.
      * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; @@ -884,7 +1188,7 @@ public Builder clearMetering() { * * *
-     * Metering-specific spec.
+     * Metering-specific state.
      * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; @@ -896,7 +1200,7 @@ public com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder getMeteri * * *
-     * Metering-specific spec.
+     * Metering-specific state.
      * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; @@ -916,7 +1220,7 @@ public com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder getMeter * * *
-     * Metering-specific spec.
+     * Metering-specific state.
      * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; @@ -1190,7 +1494,7 @@ public Builder clearConfigmanagement() { * @return Whether the state field is set. */ public boolean hasState() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1230,7 +1534,7 @@ public Builder setState(com.google.cloud.gkehub.v1beta.FeatureState value) { } else { stateBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1249,7 +1553,7 @@ public Builder setState(com.google.cloud.gkehub.v1beta.FeatureState.Builder buil } else { stateBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1264,7 +1568,7 @@ public Builder setState(com.google.cloud.gkehub.v1beta.FeatureState.Builder buil */ public Builder mergeState(com.google.cloud.gkehub.v1beta.FeatureState value) { if (stateBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && state_ != null && state_ != com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance()) { getStateBuilder().mergeFrom(value); @@ -1275,7 +1579,7 @@ public Builder mergeState(com.google.cloud.gkehub.v1beta.FeatureState value) { stateBuilder_.mergeFrom(value); } if (state_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -1290,7 +1594,7 @@ public Builder mergeState(com.google.cloud.gkehub.v1beta.FeatureState value) { * .google.cloud.gkehub.v1beta.FeatureState state = 1; */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); state_ = null; if (stateBuilder_ != null) { stateBuilder_.dispose(); @@ -1309,7 +1613,7 @@ public Builder clearState() { * .google.cloud.gkehub.v1beta.FeatureState state = 1; */ public com.google.cloud.gkehub.v1beta.FeatureState.Builder getStateBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return getStateFieldBuilder().getBuilder(); } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureStateOrBuilder.java index 2a33f6a76b79..0755bf560ed7 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureStateOrBuilder.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureStateOrBuilder.java @@ -28,7 +28,42 @@ public interface MembershipFeatureStateOrBuilder * * *
-   * Metering-specific spec.
+   * Service Mesh-specific state.
+   * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState servicemesh = 100; + * + * @return Whether the servicemesh field is set. + */ + boolean hasServicemesh(); + /** + * + * + *
+   * Service Mesh-specific state.
+   * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState servicemesh = 100; + * + * @return The servicemesh. + */ + com.google.cloud.gkehub.servicemesh.v1beta.MembershipState getServicemesh(); + /** + * + * + *
+   * Service Mesh-specific state.
+   * 
+ * + * .google.cloud.gkehub.servicemesh.v1beta.MembershipState servicemesh = 100; + */ + com.google.cloud.gkehub.servicemesh.v1beta.MembershipStateOrBuilder getServicemeshOrBuilder(); + + /** + * + * + *
+   * Metering-specific state.
    * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; @@ -40,7 +75,7 @@ public interface MembershipFeatureStateOrBuilder * * *
-   * Metering-specific spec.
+   * Metering-specific state.
    * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; @@ -52,7 +87,7 @@ public interface MembershipFeatureStateOrBuilder * * *
-   * Metering-specific spec.
+   * Metering-specific state.
    * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto new file mode 100644 index 000000000000..6c5634b98aa1 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto @@ -0,0 +1,276 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.gkehub.servicemesh.v1beta; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.GkeHub.ServiceMesh.V1Beta"; +option go_package = "cloud.google.com/go/gkehub/servicemesh/apiv1beta/servicemeshpb;servicemeshpb"; +option java_multiple_files = true; +option java_outer_classname = "ServiceMeshProto"; +option java_package = "com.google.cloud.gkehub.servicemesh.v1beta"; +option php_namespace = "Google\\Cloud\\GkeHub\\ServiceMesh\\V1beta"; +option ruby_package = "Google::Cloud::GkeHub::ServiceMesh::V1beta"; + +// **Service Mesh**: Spec for a single Membership for the servicemesh feature +message MembershipSpec { + // Whether to automatically manage Service Mesh control planes. + enum ControlPlaneManagement { + // Unspecified + CONTROL_PLANE_MANAGEMENT_UNSPECIFIED = 0; + + // Google should provision a control plane revision and make it available in + // the cluster. Google will enroll this revision in a release channel and + // keep it up to date. The control plane revision may be a managed service, + // or a managed install. + AUTOMATIC = 1; + + // User will manually configure the control plane (e.g. via CLI, or via the + // ControlPlaneRevision KRM API) + MANUAL = 2; + } + + // Whether to automatically manage Service Mesh. + enum Management { + // Unspecified + MANAGEMENT_UNSPECIFIED = 0; + + // Google should manage my Service Mesh for the cluster. + MANAGEMENT_AUTOMATIC = 1; + + // User will manually configure their service mesh components. + MANAGEMENT_MANUAL = 2; + } + + // Deprecated: use `management` instead + // Enables automatic control plane management. + ControlPlaneManagement control_plane = 1 [deprecated = true]; + + // Enables automatic Service Mesh management. + Management management = 4; +} + +// **Service Mesh**: State for a single Membership, as analyzed by the Service +// Mesh Hub Controller. +message MembershipState { + // Status of control plane management. + message ControlPlaneManagement { + // Implementation of managed control plane. + enum Implementation { + // Unspecified + IMPLEMENTATION_UNSPECIFIED = 0; + + // A Google build of istiod is used for the managed control plane. + ISTIOD = 1; + + // Traffic director is used for the managed control plane. + TRAFFIC_DIRECTOR = 2; + + // The control plane implementation is being updated. + UPDATING = 3; + } + + // Explanation of state. + repeated StatusDetails details = 2; + + // LifecycleState of control plane management. + LifecycleState state = 3; + + // Output only. Implementation of managed control plane. + Implementation implementation = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Status of data plane management. Only reported per-member. + message DataPlaneManagement { + // Lifecycle status of data plane management. + LifecycleState state = 1; + + // Explanation of the status. + repeated StatusDetails details = 2; + } + + // Condition being reported. + message Condition { + // Unique identifier of the condition which describes the condition + // recognizable to the user. + enum Code { + // Default Unspecified code + CODE_UNSPECIFIED = 0; + + // Mesh IAM permission denied error code + MESH_IAM_PERMISSION_DENIED = 100; + + // CNI config unsupported error code + CNI_CONFIG_UNSUPPORTED = 201; + + // GKE sandbox unsupported error code + GKE_SANDBOX_UNSUPPORTED = 202; + + // Nodepool workload identity federation required error code + NODEPOOL_WORKLOAD_IDENTITY_FEDERATION_REQUIRED = 203; + + // CNI installation failed error code + CNI_INSTALLATION_FAILED = 204; + + // CNI pod unschedulable error code + CNI_POD_UNSCHEDULABLE = 205; + + // Multiple control planes unsupported error code + UNSUPPORTED_MULTIPLE_CONTROL_PLANES = 301; + + // VPC-SC GA is supported for this control plane. + VPCSC_GA_SUPPORTED = 302; + + // Configuration (Istio/k8s resources) failed to apply due to internal + // error. + CONFIG_APPLY_INTERNAL_ERROR = 401; + + // Configuration failed to be applied due to being invalid. + CONFIG_VALIDATION_ERROR = 402; + + // Encountered configuration(s) with possible unintended behavior or + // invalid configuration. These configs may not have been applied. + CONFIG_VALIDATION_WARNING = 403; + + // BackendService quota exceeded error code. + QUOTA_EXCEEDED_BACKEND_SERVICES = 404; + + // HealthCheck quota exceeded error code. + QUOTA_EXCEEDED_HEALTH_CHECKS = 405; + + // HTTPRoute quota exceeded error code. + QUOTA_EXCEEDED_HTTP_ROUTES = 406; + + // TCPRoute quota exceeded error code. + QUOTA_EXCEEDED_TCP_ROUTES = 407; + + // TLS routes quota exceeded error code. + QUOTA_EXCEEDED_TLS_ROUTES = 408; + + // TrafficPolicy quota exceeded error code. + QUOTA_EXCEEDED_TRAFFIC_POLICIES = 409; + + // EndpointPolicy quota exceeded error code. + QUOTA_EXCEEDED_ENDPOINT_POLICIES = 410; + + // Gateway quota exceeded error code. + QUOTA_EXCEEDED_GATEWAYS = 411; + + // Mesh quota exceeded error code. + QUOTA_EXCEEDED_MESHES = 412; + + // ServerTLSPolicy quota exceeded error code. + QUOTA_EXCEEDED_SERVER_TLS_POLICIES = 413; + + // ClientTLSPolicy quota exceeded error code. + QUOTA_EXCEEDED_CLIENT_TLS_POLICIES = 414; + + // ServiceLBPolicy quota exceeded error code. + QUOTA_EXCEEDED_SERVICE_LB_POLICIES = 415; + + // HTTPFilter quota exceeded error code. + QUOTA_EXCEEDED_HTTP_FILTERS = 416; + + // TCPFilter quota exceeded error code. + QUOTA_EXCEEDED_TCP_FILTERS = 417; + + // NetworkEndpointGroup quota exceeded error code. + QUOTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS = 418; + } + + // Severity level of the reported condition + enum Severity { + // Unspecified severity + SEVERITY_UNSPECIFIED = 0; + + // Indicates an issue that prevents the mesh from operating correctly + ERROR = 1; + + // Indicates a setting is likely wrong, but the mesh is still able to + // operate + WARNING = 2; + + // An informational message, not requiring any action + INFO = 3; + } + + // Unique identifier of the condition which describes the condition + // recognizable to the user. + Code code = 1; + + // Links contains actionable information. + string documentation_link = 2; + + // A short summary about the issue. + string details = 3; + + // Severity level of the condition. + Severity severity = 4; + } + + // Lifecycle state of Service Mesh components. + enum LifecycleState { + // Unspecified + LIFECYCLE_STATE_UNSPECIFIED = 0; + + // DISABLED means that the component is not enabled. + DISABLED = 1; + + // FAILED_PRECONDITION means that provisioning cannot proceed because of + // some characteristic of the member cluster. + FAILED_PRECONDITION = 2; + + // PROVISIONING means that provisioning is in progress. + PROVISIONING = 3; + + // ACTIVE means that the component is ready for use. + ACTIVE = 4; + + // STALLED means that provisioning could not be done. + STALLED = 5; + + // NEEDS_ATTENTION means that the component is ready, but some user + // intervention is required. (For example that the user should migrate + // workloads to a new control plane revision.) + NEEDS_ATTENTION = 6; + + // DEGRADED means that the component is ready, but operating in a + // degraded state. + DEGRADED = 7; + } + + // Output only. Status of control plane management + ControlPlaneManagement control_plane_management = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Status of data plane management. + DataPlaneManagement data_plane_management = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of conditions reported for this membership. + repeated Condition conditions = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Structured and human-readable details for a status. +message StatusDetails { + // A machine-readable code that further describes a broad status. + string code = 1; + + // Human-readable explanation of code. + string details = 2; +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/v1beta/feature.proto b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/v1beta/feature.proto index c1c1b562366c..7ba1bbbf66ae 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/v1beta/feature.proto +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/v1beta/feature.proto @@ -18,6 +18,7 @@ package google.cloud.gkehub.v1beta; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto"; import "google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto"; import "google/cloud/gkehub/v1beta/metering/metering.proto"; import "google/cloud/gkehub/v1beta/multiclusteringress/multiclusteringress.proto"; @@ -42,22 +43,24 @@ message Feature { // `projects/*/locations/*/features/*`. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // GCP labels for this Feature. + // Labels for this Feature. map labels = 2; // Output only. State of the Feature resource itself. - FeatureResourceState resource_state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + FeatureResourceState resource_state = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Hub-wide Feature configuration. If this Feature does not support any - // Hub-wide configuration, this field may be unused. + // Optional. Hub-wide Feature configuration. If this Feature does not support + // any Hub-wide configuration, this field may be unused. CommonFeatureSpec spec = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Membership-specific configuration for this Feature. If this Feature does - // not support any per-Membership configuration, this field may be unused. + // Optional. Membership-specific configuration for this Feature. If this + // Feature does not support any per-Membership configuration, this field may + // be unused. // // The keys indicate which Membership the configuration is for, in the form: // - // projects/{p}/locations/{l}/memberships/{m} + // `projects/{p}/locations/{l}/memberships/{m}` // // Where {p} is the project, {l} is a valid location and {m} is a valid // Membership in this project at that location. {p} WILL match the Feature's @@ -69,7 +72,8 @@ message Feature { // ONE of the entries will be saved, with no guarantees as to which. For this // reason, it is recommended the same format be used for all entries when // mutating a Feature. - map membership_specs = 5 [(google.api.field_behavior) = OPTIONAL]; + map membership_specs = 5 + [(google.api.field_behavior) = OPTIONAL]; // Output only. The Hub-wide Feature state. CommonFeatureState state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -79,21 +83,25 @@ message Feature { // // The keys indicate which Membership the state is for, in the form: // - // projects/{p}/locations/{l}/memberships/{m} + // `projects/{p}/locations/{l}/memberships/{m}` // // Where {p} is the project number, {l} is a valid location and {m} is a valid // Membership in this project at that location. {p} MUST match the Feature's // project number. - map membership_states = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + map membership_states = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. When the Feature resource was created. - google.protobuf.Timestamp create_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. When the Feature resource was last updated. - google.protobuf.Timestamp update_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. When the Feature resource was deleted. - google.protobuf.Timestamp delete_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp delete_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // FeatureResourceState describes the state of a Feature *resource* in the @@ -167,7 +175,8 @@ message FeatureState { message CommonFeatureSpec { oneof feature_spec { // Multicluster Ingress-specific spec. - google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec + multiclusteringress = 102; } } @@ -179,10 +188,15 @@ message CommonFeatureState { // MembershipFeatureSpec contains configuration information for a single // Membership. +// NOTE: Please use snake case in your feature name. message MembershipFeatureSpec { oneof feature_spec { // Config Management-specific spec. - google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + google.cloud.gkehub.configmanagement.v1beta.MembershipSpec + configmanagement = 106; + + // Anthos Service Mesh-specific spec + google.cloud.gkehub.servicemesh.v1beta.MembershipSpec mesh = 116; } } @@ -190,11 +204,15 @@ message MembershipFeatureSpec { // Membership. message MembershipFeatureState { oneof feature_state { - // Metering-specific spec. + // Service Mesh-specific state. + google.cloud.gkehub.servicemesh.v1beta.MembershipState servicemesh = 100; + + // Metering-specific state. google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; // Config Management-specific state. - google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + google.cloud.gkehub.configmanagement.v1beta.MembershipState + configmanagement = 106; } // The high-level state of this Feature for a single membership. diff --git a/java-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json b/java-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json index 9b10d17190d3..af41b30c3dd6 100644 --- a/java-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json +++ b/java-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json @@ -611,6 +611,132 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.maps.places.v1.ContentBlock", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.ContentBlock$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.ContextualContent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.ContextualContent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.ContextualContent$Justification", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.ContextualContent$Justification$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.ContextualContent$Justification$BusinessAvailabilityAttributesJustification", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.ContextualContent$Justification$BusinessAvailabilityAttributesJustification$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.ContextualContent$Justification$ReviewJustification", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.ContextualContent$Justification$ReviewJustification$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.ContextualContent$Justification$ReviewJustification$HighlightedText", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.ContextualContent$Justification$ReviewJustification$HighlightedText$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.ContextualContent$Justification$ReviewJustification$HighlightedText$HighlightedTextRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.ContextualContent$Justification$ReviewJustification$HighlightedText$HighlightedTextRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.maps.places.v1.EVChargeOptions", "queryAllDeclaredConstructors": true, @@ -818,6 +944,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.maps.places.v1.Place$AreaSummary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.Place$AreaSummary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.maps.places.v1.Place$Attribution", "queryAllDeclaredConstructors": true, @@ -854,6 +998,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.maps.places.v1.Place$GenerativeSummary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.Place$GenerativeSummary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.maps.places.v1.Place$OpeningHours", "queryAllDeclaredConstructors": true, @@ -1016,6 +1178,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.maps.places.v1.References", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.References$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.maps.places.v1.Review", "queryAllDeclaredConstructors": true, diff --git a/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientHttpJsonTest.java b/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientHttpJsonTest.java index 5b7e5ca1f291..43bb483201f0 100644 --- a/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientHttpJsonTest.java +++ b/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientHttpJsonTest.java @@ -139,7 +139,10 @@ public void searchNearbyExceptionTest() throws Exception { @Test public void searchTextTest() throws Exception { SearchTextResponse expectedResponse = - SearchTextResponse.newBuilder().addAllPlaces(new ArrayList()).build(); + SearchTextResponse.newBuilder() + .addAllPlaces(new ArrayList()) + .addAllContextualContents(new ArrayList()) + .build(); mockService.addResponse(expectedResponse); SearchTextRequest request = @@ -360,6 +363,8 @@ public void getPlaceTest() throws Exception { .setAccessibilityOptions(Place.AccessibilityOptions.newBuilder().build()) .setFuelOptions(FuelOptions.newBuilder().build()) .setEvChargeOptions(EVChargeOptions.newBuilder().build()) + .setGenerativeSummary(Place.GenerativeSummary.newBuilder().build()) + .setAreaSummary(Place.AreaSummary.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -463,6 +468,8 @@ public void getPlaceTest2() throws Exception { .setAccessibilityOptions(Place.AccessibilityOptions.newBuilder().build()) .setFuelOptions(FuelOptions.newBuilder().build()) .setEvChargeOptions(EVChargeOptions.newBuilder().build()) + .setGenerativeSummary(Place.GenerativeSummary.newBuilder().build()) + .setAreaSummary(Place.AreaSummary.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientTest.java b/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientTest.java index 7ffa744e446e..dc4b3af71364 100644 --- a/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientTest.java +++ b/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientTest.java @@ -148,7 +148,10 @@ public void searchNearbyExceptionTest() throws Exception { @Test public void searchTextTest() throws Exception { SearchTextResponse expectedResponse = - SearchTextResponse.newBuilder().addAllPlaces(new ArrayList()).build(); + SearchTextResponse.newBuilder() + .addAllPlaces(new ArrayList()) + .addAllContextualContents(new ArrayList()) + .build(); mockPlaces.addResponse(expectedResponse); SearchTextRequest request = @@ -363,6 +366,8 @@ public void getPlaceTest() throws Exception { .setAccessibilityOptions(Place.AccessibilityOptions.newBuilder().build()) .setFuelOptions(FuelOptions.newBuilder().build()) .setEvChargeOptions(EVChargeOptions.newBuilder().build()) + .setGenerativeSummary(Place.GenerativeSummary.newBuilder().build()) + .setAreaSummary(Place.AreaSummary.newBuilder().build()) .build(); mockPlaces.addResponse(expectedResponse); @@ -460,6 +465,8 @@ public void getPlaceTest2() throws Exception { .setAccessibilityOptions(Place.AccessibilityOptions.newBuilder().build()) .setFuelOptions(FuelOptions.newBuilder().build()) .setEvChargeOptions(EVChargeOptions.newBuilder().build()) + .setGenerativeSummary(Place.GenerativeSummary.newBuilder().build()) + .setAreaSummary(Place.AreaSummary.newBuilder().build()) .build(); mockPlaces.addResponse(expectedResponse); diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/AutocompletePlacesRequest.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/AutocompletePlacesRequest.java index 58abb79fbad4..fb07e99120da 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/AutocompletePlacesRequest.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/AutocompletePlacesRequest.java @@ -2647,11 +2647,11 @@ public boolean hasLocationRestriction() { * *
    * Optional. Included primary Place type (for example, "restaurant" or
-   * "gas_station") from
-   * https://developers.google.com/maps/documentation/places/web-service/place-types.
-   * A Place is only returned if its primary type is included in this list. Up
-   * to 5 values can be specified. If no types are specified, all Place types
-   * are returned.
+   * "gas_station") in Place Types
+   * (https://developers.google.com/maps/documentation/places/web-service/place-types),
+   * or only `(regions)`, or only `(cities)`. A Place is only returned if its
+   * primary type is included in this list. Up to 5 values can be specified. If
+   * no types are specified, all Place types are returned.
    * 
* * repeated string included_primary_types = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2667,11 +2667,11 @@ public com.google.protobuf.ProtocolStringList getIncludedPrimaryTypesList() { * *
    * Optional. Included primary Place type (for example, "restaurant" or
-   * "gas_station") from
-   * https://developers.google.com/maps/documentation/places/web-service/place-types.
-   * A Place is only returned if its primary type is included in this list. Up
-   * to 5 values can be specified. If no types are specified, all Place types
-   * are returned.
+   * "gas_station") in Place Types
+   * (https://developers.google.com/maps/documentation/places/web-service/place-types),
+   * or only `(regions)`, or only `(cities)`. A Place is only returned if its
+   * primary type is included in this list. Up to 5 values can be specified. If
+   * no types are specified, all Place types are returned.
    * 
* * repeated string included_primary_types = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2687,11 +2687,11 @@ public int getIncludedPrimaryTypesCount() { * *
    * Optional. Included primary Place type (for example, "restaurant" or
-   * "gas_station") from
-   * https://developers.google.com/maps/documentation/places/web-service/place-types.
-   * A Place is only returned if its primary type is included in this list. Up
-   * to 5 values can be specified. If no types are specified, all Place types
-   * are returned.
+   * "gas_station") in Place Types
+   * (https://developers.google.com/maps/documentation/places/web-service/place-types),
+   * or only `(regions)`, or only `(cities)`. A Place is only returned if its
+   * primary type is included in this list. Up to 5 values can be specified. If
+   * no types are specified, all Place types are returned.
    * 
* * repeated string included_primary_types = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2708,11 +2708,11 @@ public java.lang.String getIncludedPrimaryTypes(int index) { * *
    * Optional. Included primary Place type (for example, "restaurant" or
-   * "gas_station") from
-   * https://developers.google.com/maps/documentation/places/web-service/place-types.
-   * A Place is only returned if its primary type is included in this list. Up
-   * to 5 values can be specified. If no types are specified, all Place types
-   * are returned.
+   * "gas_station") in Place Types
+   * (https://developers.google.com/maps/documentation/places/web-service/place-types),
+   * or only `(regions)`, or only `(cities)`. A Place is only returned if its
+   * primary type is included in this list. Up to 5 values can be specified. If
+   * no types are specified, all Place types are returned.
    * 
* * repeated string included_primary_types = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -4397,11 +4397,11 @@ private void ensureIncludedPrimaryTypesIsMutable() { * *
      * Optional. Included primary Place type (for example, "restaurant" or
-     * "gas_station") from
-     * https://developers.google.com/maps/documentation/places/web-service/place-types.
-     * A Place is only returned if its primary type is included in this list. Up
-     * to 5 values can be specified. If no types are specified, all Place types
-     * are returned.
+     * "gas_station") in Place Types
+     * (https://developers.google.com/maps/documentation/places/web-service/place-types),
+     * or only `(regions)`, or only `(cities)`. A Place is only returned if its
+     * primary type is included in this list. Up to 5 values can be specified. If
+     * no types are specified, all Place types are returned.
      * 
* * repeated string included_primary_types = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -4418,11 +4418,11 @@ public com.google.protobuf.ProtocolStringList getIncludedPrimaryTypesList() { * *
      * Optional. Included primary Place type (for example, "restaurant" or
-     * "gas_station") from
-     * https://developers.google.com/maps/documentation/places/web-service/place-types.
-     * A Place is only returned if its primary type is included in this list. Up
-     * to 5 values can be specified. If no types are specified, all Place types
-     * are returned.
+     * "gas_station") in Place Types
+     * (https://developers.google.com/maps/documentation/places/web-service/place-types),
+     * or only `(regions)`, or only `(cities)`. A Place is only returned if its
+     * primary type is included in this list. Up to 5 values can be specified. If
+     * no types are specified, all Place types are returned.
      * 
* * repeated string included_primary_types = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -4438,11 +4438,11 @@ public int getIncludedPrimaryTypesCount() { * *
      * Optional. Included primary Place type (for example, "restaurant" or
-     * "gas_station") from
-     * https://developers.google.com/maps/documentation/places/web-service/place-types.
-     * A Place is only returned if its primary type is included in this list. Up
-     * to 5 values can be specified. If no types are specified, all Place types
-     * are returned.
+     * "gas_station") in Place Types
+     * (https://developers.google.com/maps/documentation/places/web-service/place-types),
+     * or only `(regions)`, or only `(cities)`. A Place is only returned if its
+     * primary type is included in this list. Up to 5 values can be specified. If
+     * no types are specified, all Place types are returned.
      * 
* * repeated string included_primary_types = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -4459,11 +4459,11 @@ public java.lang.String getIncludedPrimaryTypes(int index) { * *
      * Optional. Included primary Place type (for example, "restaurant" or
-     * "gas_station") from
-     * https://developers.google.com/maps/documentation/places/web-service/place-types.
-     * A Place is only returned if its primary type is included in this list. Up
-     * to 5 values can be specified. If no types are specified, all Place types
-     * are returned.
+     * "gas_station") in Place Types
+     * (https://developers.google.com/maps/documentation/places/web-service/place-types),
+     * or only `(regions)`, or only `(cities)`. A Place is only returned if its
+     * primary type is included in this list. Up to 5 values can be specified. If
+     * no types are specified, all Place types are returned.
      * 
* * repeated string included_primary_types = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -4480,11 +4480,11 @@ public com.google.protobuf.ByteString getIncludedPrimaryTypesBytes(int index) { * *
      * Optional. Included primary Place type (for example, "restaurant" or
-     * "gas_station") from
-     * https://developers.google.com/maps/documentation/places/web-service/place-types.
-     * A Place is only returned if its primary type is included in this list. Up
-     * to 5 values can be specified. If no types are specified, all Place types
-     * are returned.
+     * "gas_station") in Place Types
+     * (https://developers.google.com/maps/documentation/places/web-service/place-types),
+     * or only `(regions)`, or only `(cities)`. A Place is only returned if its
+     * primary type is included in this list. Up to 5 values can be specified. If
+     * no types are specified, all Place types are returned.
      * 
* * repeated string included_primary_types = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -4509,11 +4509,11 @@ public Builder setIncludedPrimaryTypes(int index, java.lang.String value) { * *
      * Optional. Included primary Place type (for example, "restaurant" or
-     * "gas_station") from
-     * https://developers.google.com/maps/documentation/places/web-service/place-types.
-     * A Place is only returned if its primary type is included in this list. Up
-     * to 5 values can be specified. If no types are specified, all Place types
-     * are returned.
+     * "gas_station") in Place Types
+     * (https://developers.google.com/maps/documentation/places/web-service/place-types),
+     * or only `(regions)`, or only `(cities)`. A Place is only returned if its
+     * primary type is included in this list. Up to 5 values can be specified. If
+     * no types are specified, all Place types are returned.
      * 
* * repeated string included_primary_types = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -4537,11 +4537,11 @@ public Builder addIncludedPrimaryTypes(java.lang.String value) { * *
      * Optional. Included primary Place type (for example, "restaurant" or
-     * "gas_station") from
-     * https://developers.google.com/maps/documentation/places/web-service/place-types.
-     * A Place is only returned if its primary type is included in this list. Up
-     * to 5 values can be specified. If no types are specified, all Place types
-     * are returned.
+     * "gas_station") in Place Types
+     * (https://developers.google.com/maps/documentation/places/web-service/place-types),
+     * or only `(regions)`, or only `(cities)`. A Place is only returned if its
+     * primary type is included in this list. Up to 5 values can be specified. If
+     * no types are specified, all Place types are returned.
      * 
* * repeated string included_primary_types = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -4562,11 +4562,11 @@ public Builder addAllIncludedPrimaryTypes(java.lang.Iterable v * *
      * Optional. Included primary Place type (for example, "restaurant" or
-     * "gas_station") from
-     * https://developers.google.com/maps/documentation/places/web-service/place-types.
-     * A Place is only returned if its primary type is included in this list. Up
-     * to 5 values can be specified. If no types are specified, all Place types
-     * are returned.
+     * "gas_station") in Place Types
+     * (https://developers.google.com/maps/documentation/places/web-service/place-types),
+     * or only `(regions)`, or only `(cities)`. A Place is only returned if its
+     * primary type is included in this list. Up to 5 values can be specified. If
+     * no types are specified, all Place types are returned.
      * 
* * repeated string included_primary_types = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -4586,11 +4586,11 @@ public Builder clearIncludedPrimaryTypes() { * *
      * Optional. Included primary Place type (for example, "restaurant" or
-     * "gas_station") from
-     * https://developers.google.com/maps/documentation/places/web-service/place-types.
-     * A Place is only returned if its primary type is included in this list. Up
-     * to 5 values can be specified. If no types are specified, all Place types
-     * are returned.
+     * "gas_station") in Place Types
+     * (https://developers.google.com/maps/documentation/places/web-service/place-types),
+     * or only `(regions)`, or only `(cities)`. A Place is only returned if its
+     * primary type is included in this list. Up to 5 values can be specified. If
+     * no types are specified, all Place types are returned.
      * 
* * repeated string included_primary_types = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/AutocompletePlacesRequestOrBuilder.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/AutocompletePlacesRequestOrBuilder.java index da43fc5fcb0f..dee051dfda01 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/AutocompletePlacesRequestOrBuilder.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/AutocompletePlacesRequestOrBuilder.java @@ -168,11 +168,11 @@ public interface AutocompletePlacesRequestOrBuilder * *
    * Optional. Included primary Place type (for example, "restaurant" or
-   * "gas_station") from
-   * https://developers.google.com/maps/documentation/places/web-service/place-types.
-   * A Place is only returned if its primary type is included in this list. Up
-   * to 5 values can be specified. If no types are specified, all Place types
-   * are returned.
+   * "gas_station") in Place Types
+   * (https://developers.google.com/maps/documentation/places/web-service/place-types),
+   * or only `(regions)`, or only `(cities)`. A Place is only returned if its
+   * primary type is included in this list. Up to 5 values can be specified. If
+   * no types are specified, all Place types are returned.
    * 
* * repeated string included_primary_types = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -186,11 +186,11 @@ public interface AutocompletePlacesRequestOrBuilder * *
    * Optional. Included primary Place type (for example, "restaurant" or
-   * "gas_station") from
-   * https://developers.google.com/maps/documentation/places/web-service/place-types.
-   * A Place is only returned if its primary type is included in this list. Up
-   * to 5 values can be specified. If no types are specified, all Place types
-   * are returned.
+   * "gas_station") in Place Types
+   * (https://developers.google.com/maps/documentation/places/web-service/place-types),
+   * or only `(regions)`, or only `(cities)`. A Place is only returned if its
+   * primary type is included in this list. Up to 5 values can be specified. If
+   * no types are specified, all Place types are returned.
    * 
* * repeated string included_primary_types = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -204,11 +204,11 @@ public interface AutocompletePlacesRequestOrBuilder * *
    * Optional. Included primary Place type (for example, "restaurant" or
-   * "gas_station") from
-   * https://developers.google.com/maps/documentation/places/web-service/place-types.
-   * A Place is only returned if its primary type is included in this list. Up
-   * to 5 values can be specified. If no types are specified, all Place types
-   * are returned.
+   * "gas_station") in Place Types
+   * (https://developers.google.com/maps/documentation/places/web-service/place-types),
+   * or only `(regions)`, or only `(cities)`. A Place is only returned if its
+   * primary type is included in this list. Up to 5 values can be specified. If
+   * no types are specified, all Place types are returned.
    * 
* * repeated string included_primary_types = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -223,11 +223,11 @@ public interface AutocompletePlacesRequestOrBuilder * *
    * Optional. Included primary Place type (for example, "restaurant" or
-   * "gas_station") from
-   * https://developers.google.com/maps/documentation/places/web-service/place-types.
-   * A Place is only returned if its primary type is included in this list. Up
-   * to 5 values can be specified. If no types are specified, all Place types
-   * are returned.
+   * "gas_station") in Place Types
+   * (https://developers.google.com/maps/documentation/places/web-service/place-types),
+   * or only `(regions)`, or only `(cities)`. A Place is only returned if its
+   * primary type is included in this list. Up to 5 values can be specified. If
+   * no types are specified, all Place types are returned.
    * 
* * repeated string included_primary_types = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlock.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlock.java new file mode 100644 index 000000000000..1a80e787d006 --- /dev/null +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlock.java @@ -0,0 +1,1210 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/places/v1/content_block.proto + +// Protobuf Java Version: 3.25.3 +package com.google.maps.places.v1; + +/** + * + * + *
+ * A block of content that can be served individually.
+ * 
+ * + * Protobuf type {@code google.maps.places.v1.ContentBlock} + */ +public final class ContentBlock extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.places.v1.ContentBlock) + ContentBlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContentBlock.newBuilder() to construct. + private ContentBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ContentBlock() { + topic_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ContentBlock(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.ContentBlockProto + .internal_static_google_maps_places_v1_ContentBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.ContentBlockProto + .internal_static_google_maps_places_v1_ContentBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.ContentBlock.class, + com.google.maps.places.v1.ContentBlock.Builder.class); + } + + private int bitField0_; + public static final int TOPIC_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object topic_ = ""; + /** + * + * + *
+   * The topic of the content, for example "overview" or "restaurant".
+   * 
+ * + * string topic = 1; + * + * @return The topic. + */ + @java.lang.Override + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + * + * + *
+   * The topic of the content, for example "overview" or "restaurant".
+   * 
+ * + * string topic = 1; + * + * @return The bytes for topic. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FIELD_NUMBER = 2; + private com.google.type.LocalizedText content_; + /** + * + * + *
+   * Content related to the topic.
+   * 
+ * + * .google.type.LocalizedText content = 2; + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Content related to the topic.
+   * 
+ * + * .google.type.LocalizedText content = 2; + * + * @return The content. + */ + @java.lang.Override + public com.google.type.LocalizedText getContent() { + return content_ == null ? com.google.type.LocalizedText.getDefaultInstance() : content_; + } + /** + * + * + *
+   * Content related to the topic.
+   * 
+ * + * .google.type.LocalizedText content = 2; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getContentOrBuilder() { + return content_ == null ? com.google.type.LocalizedText.getDefaultInstance() : content_; + } + + public static final int REFERENCES_FIELD_NUMBER = 3; + private com.google.maps.places.v1.References references_; + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * References that are related to this block of content.
+   * 
+ * + * .google.maps.places.v1.References references = 3; + * + * @return Whether the references field is set. + */ + @java.lang.Override + public boolean hasReferences() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * References that are related to this block of content.
+   * 
+ * + * .google.maps.places.v1.References references = 3; + * + * @return The references. + */ + @java.lang.Override + public com.google.maps.places.v1.References getReferences() { + return references_ == null + ? com.google.maps.places.v1.References.getDefaultInstance() + : references_; + } + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * References that are related to this block of content.
+   * 
+ * + * .google.maps.places.v1.References references = 3; + */ + @java.lang.Override + public com.google.maps.places.v1.ReferencesOrBuilder getReferencesOrBuilder() { + return references_ == null + ? com.google.maps.places.v1.References.getDefaultInstance() + : references_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getContent()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getReferences()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContent()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getReferences()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.maps.places.v1.ContentBlock)) { + return super.equals(obj); + } + com.google.maps.places.v1.ContentBlock other = (com.google.maps.places.v1.ContentBlock) obj; + + if (!getTopic().equals(other.getTopic())) return false; + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent().equals(other.getContent())) return false; + } + if (hasReferences() != other.hasReferences()) return false; + if (hasReferences()) { + if (!getReferences().equals(other.getReferences())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + if (hasReferences()) { + hash = (37 * hash) + REFERENCES_FIELD_NUMBER; + hash = (53 * hash) + getReferences().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.places.v1.ContentBlock parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContentBlock parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContentBlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContentBlock parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContentBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContentBlock parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContentBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.ContentBlock 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.maps.places.v1.ContentBlock parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.ContentBlock 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.maps.places.v1.ContentBlock parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.ContentBlock 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.maps.places.v1.ContentBlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A block of content that can be served individually.
+   * 
+ * + * Protobuf type {@code google.maps.places.v1.ContentBlock} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.ContentBlock) + com.google.maps.places.v1.ContentBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.ContentBlockProto + .internal_static_google_maps_places_v1_ContentBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.ContentBlockProto + .internal_static_google_maps_places_v1_ContentBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.ContentBlock.class, + com.google.maps.places.v1.ContentBlock.Builder.class); + } + + // Construct using com.google.maps.places.v1.ContentBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getContentFieldBuilder(); + getReferencesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + topic_ = ""; + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + references_ = null; + if (referencesBuilder_ != null) { + referencesBuilder_.dispose(); + referencesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.places.v1.ContentBlockProto + .internal_static_google_maps_places_v1_ContentBlock_descriptor; + } + + @java.lang.Override + public com.google.maps.places.v1.ContentBlock getDefaultInstanceForType() { + return com.google.maps.places.v1.ContentBlock.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.places.v1.ContentBlock build() { + com.google.maps.places.v1.ContentBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.places.v1.ContentBlock buildPartial() { + com.google.maps.places.v1.ContentBlock result = + new com.google.maps.places.v1.ContentBlock(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.places.v1.ContentBlock result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.topic_ = topic_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.references_ = referencesBuilder_ == null ? references_ : referencesBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.places.v1.ContentBlock) { + return mergeFrom((com.google.maps.places.v1.ContentBlock) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.places.v1.ContentBlock other) { + if (other == com.google.maps.places.v1.ContentBlock.getDefaultInstance()) return this; + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasContent()) { + mergeContent(other.getContent()); + } + if (other.hasReferences()) { + mergeReferences(other.getReferences()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getContentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getReferencesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object topic_ = ""; + /** + * + * + *
+     * The topic of the content, for example "overview" or "restaurant".
+     * 
+ * + * string topic = 1; + * + * @return The topic. + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The topic of the content, for example "overview" or "restaurant".
+     * 
+ * + * string topic = 1; + * + * @return The bytes for topic. + */ + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The topic of the content, for example "overview" or "restaurant".
+     * 
+ * + * string topic = 1; + * + * @param value The topic to set. + * @return This builder for chaining. + */ + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + topic_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The topic of the content, for example "overview" or "restaurant".
+     * 
+ * + * string topic = 1; + * + * @return This builder for chaining. + */ + public Builder clearTopic() { + topic_ = getDefaultInstance().getTopic(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The topic of the content, for example "overview" or "restaurant".
+     * 
+ * + * string topic = 1; + * + * @param value The bytes for topic to set. + * @return This builder for chaining. + */ + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.type.LocalizedText content_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + contentBuilder_; + /** + * + * + *
+     * Content related to the topic.
+     * 
+ * + * .google.type.LocalizedText content = 2; + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Content related to the topic.
+     * 
+ * + * .google.type.LocalizedText content = 2; + * + * @return The content. + */ + public com.google.type.LocalizedText getContent() { + if (contentBuilder_ == null) { + return content_ == null ? com.google.type.LocalizedText.getDefaultInstance() : content_; + } else { + return contentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Content related to the topic.
+     * 
+ * + * .google.type.LocalizedText content = 2; + */ + public Builder setContent(com.google.type.LocalizedText value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + } else { + contentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Content related to the topic.
+     * 
+ * + * .google.type.LocalizedText content = 2; + */ + public Builder setContent(com.google.type.LocalizedText.Builder builderForValue) { + if (contentBuilder_ == null) { + content_ = builderForValue.build(); + } else { + contentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Content related to the topic.
+     * 
+ * + * .google.type.LocalizedText content = 2; + */ + public Builder mergeContent(com.google.type.LocalizedText value) { + if (contentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && content_ != null + && content_ != com.google.type.LocalizedText.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); + } else { + content_ = value; + } + } else { + contentBuilder_.mergeFrom(value); + } + if (content_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Content related to the topic.
+     * 
+ * + * .google.type.LocalizedText content = 2; + */ + public Builder clearContent() { + bitField0_ = (bitField0_ & ~0x00000002); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Content related to the topic.
+     * 
+ * + * .google.type.LocalizedText content = 2; + */ + public com.google.type.LocalizedText.Builder getContentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getContentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Content related to the topic.
+     * 
+ * + * .google.type.LocalizedText content = 2; + */ + public com.google.type.LocalizedTextOrBuilder getContentOrBuilder() { + if (contentBuilder_ != null) { + return contentBuilder_.getMessageOrBuilder(); + } else { + return content_ == null ? com.google.type.LocalizedText.getDefaultInstance() : content_; + } + } + /** + * + * + *
+     * Content related to the topic.
+     * 
+ * + * .google.type.LocalizedText content = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + getContentFieldBuilder() { + if (contentBuilder_ == null) { + contentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getContent(), getParentForChildren(), isClean()); + content_ = null; + } + return contentBuilder_; + } + + private com.google.maps.places.v1.References references_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.References, + com.google.maps.places.v1.References.Builder, + com.google.maps.places.v1.ReferencesOrBuilder> + referencesBuilder_; + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * References that are related to this block of content.
+     * 
+ * + * .google.maps.places.v1.References references = 3; + * + * @return Whether the references field is set. + */ + public boolean hasReferences() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * References that are related to this block of content.
+     * 
+ * + * .google.maps.places.v1.References references = 3; + * + * @return The references. + */ + public com.google.maps.places.v1.References getReferences() { + if (referencesBuilder_ == null) { + return references_ == null + ? com.google.maps.places.v1.References.getDefaultInstance() + : references_; + } else { + return referencesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * References that are related to this block of content.
+     * 
+ * + * .google.maps.places.v1.References references = 3; + */ + public Builder setReferences(com.google.maps.places.v1.References value) { + if (referencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + references_ = value; + } else { + referencesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * References that are related to this block of content.
+     * 
+ * + * .google.maps.places.v1.References references = 3; + */ + public Builder setReferences(com.google.maps.places.v1.References.Builder builderForValue) { + if (referencesBuilder_ == null) { + references_ = builderForValue.build(); + } else { + referencesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * References that are related to this block of content.
+     * 
+ * + * .google.maps.places.v1.References references = 3; + */ + public Builder mergeReferences(com.google.maps.places.v1.References value) { + if (referencesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && references_ != null + && references_ != com.google.maps.places.v1.References.getDefaultInstance()) { + getReferencesBuilder().mergeFrom(value); + } else { + references_ = value; + } + } else { + referencesBuilder_.mergeFrom(value); + } + if (references_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * References that are related to this block of content.
+     * 
+ * + * .google.maps.places.v1.References references = 3; + */ + public Builder clearReferences() { + bitField0_ = (bitField0_ & ~0x00000004); + references_ = null; + if (referencesBuilder_ != null) { + referencesBuilder_.dispose(); + referencesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * References that are related to this block of content.
+     * 
+ * + * .google.maps.places.v1.References references = 3; + */ + public com.google.maps.places.v1.References.Builder getReferencesBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getReferencesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * References that are related to this block of content.
+     * 
+ * + * .google.maps.places.v1.References references = 3; + */ + public com.google.maps.places.v1.ReferencesOrBuilder getReferencesOrBuilder() { + if (referencesBuilder_ != null) { + return referencesBuilder_.getMessageOrBuilder(); + } else { + return references_ == null + ? com.google.maps.places.v1.References.getDefaultInstance() + : references_; + } + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * References that are related to this block of content.
+     * 
+ * + * .google.maps.places.v1.References references = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.References, + com.google.maps.places.v1.References.Builder, + com.google.maps.places.v1.ReferencesOrBuilder> + getReferencesFieldBuilder() { + if (referencesBuilder_ == null) { + referencesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.References, + com.google.maps.places.v1.References.Builder, + com.google.maps.places.v1.ReferencesOrBuilder>( + getReferences(), getParentForChildren(), isClean()); + references_ = null; + } + return referencesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.ContentBlock) + } + + // @@protoc_insertion_point(class_scope:google.maps.places.v1.ContentBlock) + private static final com.google.maps.places.v1.ContentBlock DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.places.v1.ContentBlock(); + } + + public static com.google.maps.places.v1.ContentBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContentBlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.maps.places.v1.ContentBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlockOrBuilder.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlockOrBuilder.java new file mode 100644 index 000000000000..330a88fb1c60 --- /dev/null +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlockOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/places/v1/content_block.proto + +// Protobuf Java Version: 3.25.3 +package com.google.maps.places.v1; + +public interface ContentBlockOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.ContentBlock) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The topic of the content, for example "overview" or "restaurant".
+   * 
+ * + * string topic = 1; + * + * @return The topic. + */ + java.lang.String getTopic(); + /** + * + * + *
+   * The topic of the content, for example "overview" or "restaurant".
+   * 
+ * + * string topic = 1; + * + * @return The bytes for topic. + */ + com.google.protobuf.ByteString getTopicBytes(); + + /** + * + * + *
+   * Content related to the topic.
+   * 
+ * + * .google.type.LocalizedText content = 2; + * + * @return Whether the content field is set. + */ + boolean hasContent(); + /** + * + * + *
+   * Content related to the topic.
+   * 
+ * + * .google.type.LocalizedText content = 2; + * + * @return The content. + */ + com.google.type.LocalizedText getContent(); + /** + * + * + *
+   * Content related to the topic.
+   * 
+ * + * .google.type.LocalizedText content = 2; + */ + com.google.type.LocalizedTextOrBuilder getContentOrBuilder(); + + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * References that are related to this block of content.
+   * 
+ * + * .google.maps.places.v1.References references = 3; + * + * @return Whether the references field is set. + */ + boolean hasReferences(); + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * References that are related to this block of content.
+   * 
+ * + * .google.maps.places.v1.References references = 3; + * + * @return The references. + */ + com.google.maps.places.v1.References getReferences(); + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * References that are related to this block of content.
+   * 
+ * + * .google.maps.places.v1.References references = 3; + */ + com.google.maps.places.v1.ReferencesOrBuilder getReferencesOrBuilder(); +} diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlockProto.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlockProto.java new file mode 100644 index 000000000000..36db5aa36e9e --- /dev/null +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContentBlockProto.java @@ -0,0 +1,77 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/places/v1/content_block.proto + +// Protobuf Java Version: 3.25.3 +package com.google.maps.places.v1; + +public final class ContentBlockProto { + private ContentBlockProto() {} + + 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_maps_places_v1_ContentBlock_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_places_v1_ContentBlock_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/maps/places/v1/content_block.pr" + + "oto\022\025google.maps.places.v1\032%google/maps/" + + "places/v1/reference.proto\032 google/type/l" + + "ocalized_text.proto\"\201\001\n\014ContentBlock\022\r\n\005" + + "topic\030\001 \001(\t\022+\n\007content\030\002 \001(\0132\032.google.ty" + + "pe.LocalizedText\0225\n\nreferences\030\003 \001(\0132!.g" + + "oogle.maps.places.v1.ReferencesB\245\001\n\031com." + + "google.maps.places.v1B\021ContentBlockProto" + + "P\001Z7cloud.google.com/go/maps/places/apiv" + + "1/placespb;placespb\370\001\001\242\002\006GMPSV1\252\002\025Google" + + ".Maps.Places.V1\312\002\025Google\\Maps\\Places\\V1b" + + "\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.maps.places.v1.ReferenceProto.getDescriptor(), + com.google.type.LocalizedTextProto.getDescriptor(), + }); + internal_static_google_maps_places_v1_ContentBlock_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_places_v1_ContentBlock_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_places_v1_ContentBlock_descriptor, + new java.lang.String[] { + "Topic", "Content", "References", + }); + com.google.maps.places.v1.ReferenceProto.getDescriptor(); + com.google.type.LocalizedTextProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContextualContent.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContextualContent.java new file mode 100644 index 000000000000..aa02c21e2a04 --- /dev/null +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContextualContent.java @@ -0,0 +1,7427 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/places/v1/contextual_content.proto + +// Protobuf Java Version: 3.25.3 +package com.google.maps.places.v1; + +/** + * + * + *
+ * Experimental: See
+ * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+ * for more details.
+ *
+ * Content that is contextual to the place query.
+ * 
+ * + * Protobuf type {@code google.maps.places.v1.ContextualContent} + */ +public final class ContextualContent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.places.v1.ContextualContent) + ContextualContentOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContextualContent.newBuilder() to construct. + private ContextualContent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ContextualContent() { + reviews_ = java.util.Collections.emptyList(); + photos_ = java.util.Collections.emptyList(); + justifications_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ContextualContent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.ContextualContent.class, + com.google.maps.places.v1.ContextualContent.Builder.class); + } + + public interface JustificationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.ContextualContent.Justification) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification review_justification = 1; + * + * + * @return Whether the reviewJustification field is set. + */ + boolean hasReviewJustification(); + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification review_justification = 1; + * + * + * @return The reviewJustification. + */ + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + getReviewJustification(); + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification review_justification = 1; + * + */ + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustificationOrBuilder + getReviewJustificationOrBuilder(); + + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification business_availability_attributes_justification = 2; + * + * + * @return Whether the businessAvailabilityAttributesJustification field is set. + */ + boolean hasBusinessAvailabilityAttributesJustification(); + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification business_availability_attributes_justification = 2; + * + * + * @return The businessAvailabilityAttributesJustification. + */ + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + getBusinessAvailabilityAttributesJustification(); + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification business_availability_attributes_justification = 2; + * + */ + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustificationOrBuilder + getBusinessAvailabilityAttributesJustificationOrBuilder(); + + com.google.maps.places.v1.ContextualContent.Justification.JustificationCase + getJustificationCase(); + } + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * Justifications for the place. Justifications answers the question of why a
+   * place could interest an end user.
+   * 
+ * + * Protobuf type {@code google.maps.places.v1.ContextualContent.Justification} + */ + public static final class Justification extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.places.v1.ContextualContent.Justification) + JustificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Justification.newBuilder() to construct. + private Justification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Justification() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Justification(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.ContextualContent.Justification.class, + com.google.maps.places.v1.ContextualContent.Justification.Builder.class); + } + + public interface ReviewJustificationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.ContextualContent.Justification.ReviewJustification) + com.google.protobuf.MessageOrBuilder { + + /** + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText highlighted_text = 1; + * + * + * @return Whether the highlightedText field is set. + */ + boolean hasHighlightedText(); + /** + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText highlighted_text = 1; + * + * + * @return The highlightedText. + */ + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText + getHighlightedText(); + /** + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText highlighted_text = 1; + * + */ + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedTextOrBuilder + getHighlightedTextOrBuilder(); + + /** + * + * + *
+       * The review that the highlighted text is generated from.
+       * 
+ * + * .google.maps.places.v1.Review review = 2; + * + * @return Whether the review field is set. + */ + boolean hasReview(); + /** + * + * + *
+       * The review that the highlighted text is generated from.
+       * 
+ * + * .google.maps.places.v1.Review review = 2; + * + * @return The review. + */ + com.google.maps.places.v1.Review getReview(); + /** + * + * + *
+       * The review that the highlighted text is generated from.
+       * 
+ * + * .google.maps.places.v1.Review review = 2; + */ + com.google.maps.places.v1.ReviewOrBuilder getReviewOrBuilder(); + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * User review justifications. This highlights a section of the user review
+     * that would interest an end user. For instance, if the search query is
+     * "firewood pizza", the review justification highlights the text relevant
+     * to the search query.
+     * 
+ * + * Protobuf type {@code + * google.maps.places.v1.ContextualContent.Justification.ReviewJustification} + */ + public static final class ReviewJustification extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.places.v1.ContextualContent.Justification.ReviewJustification) + ReviewJustificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReviewJustification.newBuilder() to construct. + private ReviewJustification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReviewJustification() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReviewJustification(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification.class, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .Builder.class); + } + + public interface HighlightedTextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText) + com.google.protobuf.MessageOrBuilder { + + /** + * string text = 1; + * + * @return The text. + */ + java.lang.String getText(); + /** + * string text = 1; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
+         * The list of the ranges of the highlighted text.
+         * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + java.util.List< + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange> + getHighlightedTextRangesList(); + /** + * + * + *
+         * The list of the ranges of the highlighted text.
+         * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange + getHighlightedTextRanges(int index); + /** + * + * + *
+         * The list of the ranges of the highlighted text.
+         * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + int getHighlightedTextRangesCount(); + /** + * + * + *
+         * The list of the ranges of the highlighted text.
+         * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + java.util.List< + ? extends + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRangeOrBuilder> + getHighlightedTextRangesOrBuilderList(); + /** + * + * + *
+         * The list of the ranges of the highlighted text.
+         * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRangeOrBuilder + getHighlightedTextRangesOrBuilder(int index); + } + /** + * + * + *
+       * The text highlighted by the justification. This is a subset of the
+       * review itself. The exact word to highlight is marked by the
+       * HighlightedTextRange. There could be several words in the text being
+       * highlighted.
+       * 
+ * + * Protobuf type {@code + * google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText} + */ + public static final class HighlightedText extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText) + HighlightedTextOrBuilder { + private static final long serialVersionUID = 0L; + // Use HighlightedText.newBuilder() to construct. + private HighlightedText(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HighlightedText() { + text_ = ""; + highlightedTextRanges_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HighlightedText(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.class, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.Builder.class); + } + + public interface HighlightedTextRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 start_index = 1; + * + * @return The startIndex. + */ + int getStartIndex(); + + /** + * int32 end_index = 2; + * + * @return The endIndex. + */ + int getEndIndex(); + } + /** + * + * + *
+         * The range of highlighted text.
+         * 
+ * + * Protobuf type {@code + * google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange} + */ + public static final class HighlightedTextRange + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange) + HighlightedTextRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use HighlightedTextRange.newBuilder() to construct. + private HighlightedTextRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HighlightedTextRange() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HighlightedTextRange(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_HighlightedTextRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_HighlightedTextRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange.class, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange.Builder.class); + } + + public static final int START_INDEX_FIELD_NUMBER = 1; + private int startIndex_ = 0; + /** + * int32 start_index = 1; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + + public static final int END_INDEX_FIELD_NUMBER = 2; + private int endIndex_ = 0; + /** + * int32 end_index = 2; + * + * @return The endIndex. + */ + @java.lang.Override + public int getEndIndex() { + return endIndex_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (startIndex_ != 0) { + output.writeInt32(1, startIndex_); + } + if (endIndex_ != 0) { + output.writeInt32(2, endIndex_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, startIndex_); + } + if (endIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, endIndex_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange)) { + return super.equals(obj); + } + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange + other = + (com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange) + obj; + + if (getStartIndex() != other.getStartIndex()) return false; + if (getEndIndex() != other.getEndIndex()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + START_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getStartIndex(); + hash = (37 * hash) + END_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getEndIndex(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustification.HighlightedText.HighlightedTextRange + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustification.HighlightedText.HighlightedTextRange + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustification.HighlightedText.HighlightedTextRange + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustification.HighlightedText.HighlightedTextRange + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustification.HighlightedText.HighlightedTextRange + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustification.HighlightedText.HighlightedTextRange + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustification.HighlightedText.HighlightedTextRange + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustification.HighlightedText.HighlightedTextRange + 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.maps.places.v1.ContextualContent.Justification + .ReviewJustification.HighlightedText.HighlightedTextRange + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustification.HighlightedText.HighlightedTextRange + 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.maps.places.v1.ContextualContent.Justification + .ReviewJustification.HighlightedText.HighlightedTextRange + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustification.HighlightedText.HighlightedTextRange + 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+           * The range of highlighted text.
+           * 
+ * + * Protobuf type {@code + * google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange) + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_HighlightedTextRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_HighlightedTextRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange.class, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange.Builder.class); + } + + // Construct using + // com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startIndex_ = 0; + endIndex_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_HighlightedTextRange_descriptor; + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange + getDefaultInstanceForType() { + return com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange + build() { + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange + buildPartial() { + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange + result = + new com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustification.HighlightedText.HighlightedTextRange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startIndex_ = startIndex_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endIndex_ = endIndex_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange) { + return mergeFrom( + (com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange + other) { + if (other + == com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange.getDefaultInstance()) return this; + if (other.getStartIndex() != 0) { + setStartIndex(other.getStartIndex()); + } + if (other.getEndIndex() != 0) { + setEndIndex(other.getEndIndex()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + startIndex_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + endIndex_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int startIndex_; + /** + * int32 start_index = 1; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + /** + * int32 start_index = 1; + * + * @param value The startIndex to set. + * @return This builder for chaining. + */ + public Builder setStartIndex(int value) { + + startIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * int32 start_index = 1; + * + * @return This builder for chaining. + */ + public Builder clearStartIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + startIndex_ = 0; + onChanged(); + return this; + } + + private int endIndex_; + /** + * int32 end_index = 2; + * + * @return The endIndex. + */ + @java.lang.Override + public int getEndIndex() { + return endIndex_; + } + /** + * int32 end_index = 2; + * + * @param value The endIndex to set. + * @return This builder for chaining. + */ + public Builder setEndIndex(int value) { + + endIndex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int32 end_index = 2; + * + * @return This builder for chaining. + */ + public Builder clearEndIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + endIndex_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange) + } + + // @@protoc_insertion_point(class_scope:google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange) + private static final com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustification.HighlightedText.HighlightedTextRange + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange(); + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustification.HighlightedText.HighlightedTextRange + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HighlightedTextRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int TEXT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + /** + * string text = 1; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } + } + /** + * string text = 1; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HIGHLIGHTED_TEXT_RANGES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange> + highlightedTextRanges_; + /** + * + * + *
+         * The list of the ranges of the highlighted text.
+         * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + @java.lang.Override + public java.util.List< + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange> + getHighlightedTextRangesList() { + return highlightedTextRanges_; + } + /** + * + * + *
+         * The list of the ranges of the highlighted text.
+         * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRangeOrBuilder> + getHighlightedTextRangesOrBuilderList() { + return highlightedTextRanges_; + } + /** + * + * + *
+         * The list of the ranges of the highlighted text.
+         * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + @java.lang.Override + public int getHighlightedTextRangesCount() { + return highlightedTextRanges_.size(); + } + /** + * + * + *
+         * The list of the ranges of the highlighted text.
+         * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange + getHighlightedTextRanges(int index) { + return highlightedTextRanges_.get(index); + } + /** + * + * + *
+         * The list of the ranges of the highlighted text.
+         * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRangeOrBuilder + getHighlightedTextRangesOrBuilder(int index) { + return highlightedTextRanges_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_); + } + for (int i = 0; i < highlightedTextRanges_.size(); i++) { + output.writeMessage(2, highlightedTextRanges_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_); + } + for (int i = 0; i < highlightedTextRanges_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, highlightedTextRanges_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText)) { + return super.equals(obj); + } + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + other = + (com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText) + obj; + + if (!getText().equals(other.getText())) return false; + if (!getHighlightedTextRangesList().equals(other.getHighlightedTextRangesList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + if (getHighlightedTextRangesCount() > 0) { + hash = (37 * hash) + HIGHLIGHTED_TEXT_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getHighlightedTextRangesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + 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.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + 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.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+         * The text highlighted by the justification. This is a subset of the
+         * review itself. The exact word to highlight is marked by the
+         * HighlightedTextRange. There could be several words in the text being
+         * highlighted.
+         * 
+ * + * Protobuf type {@code + * google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText) + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedTextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.class, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.Builder.class); + } + + // Construct using + // com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + text_ = ""; + if (highlightedTextRangesBuilder_ == null) { + highlightedTextRanges_ = java.util.Collections.emptyList(); + } else { + highlightedTextRanges_ = null; + highlightedTextRangesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_descriptor; + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + getDefaultInstanceForType() { + return com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + build() { + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + buildPartial() { + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + result = + new com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustification.HighlightedText(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + result) { + if (highlightedTextRangesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + highlightedTextRanges_ = + java.util.Collections.unmodifiableList(highlightedTextRanges_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.highlightedTextRanges_ = highlightedTextRanges_; + } else { + result.highlightedTextRanges_ = highlightedTextRangesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.text_ = text_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText) { + return mergeFrom( + (com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + other) { + if (other + == com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.getDefaultInstance()) return this; + if (!other.getText().isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (highlightedTextRangesBuilder_ == null) { + if (!other.highlightedTextRanges_.isEmpty()) { + if (highlightedTextRanges_.isEmpty()) { + highlightedTextRanges_ = other.highlightedTextRanges_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureHighlightedTextRangesIsMutable(); + highlightedTextRanges_.addAll(other.highlightedTextRanges_); + } + onChanged(); + } + } else { + if (!other.highlightedTextRanges_.isEmpty()) { + if (highlightedTextRangesBuilder_.isEmpty()) { + highlightedTextRangesBuilder_.dispose(); + highlightedTextRangesBuilder_ = null; + highlightedTextRanges_ = other.highlightedTextRanges_; + bitField0_ = (bitField0_ & ~0x00000002); + highlightedTextRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHighlightedTextRangesFieldBuilder() + : null; + } else { + highlightedTextRangesBuilder_.addAllMessages(other.highlightedTextRanges_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange + m = + input.readMessage( + com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustification.HighlightedText.HighlightedTextRange + .parser(), + extensionRegistry); + if (highlightedTextRangesBuilder_ == null) { + ensureHighlightedTextRangesIsMutable(); + highlightedTextRanges_.add(m); + } else { + highlightedTextRangesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object text_ = ""; + /** + * string text = 1; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string text = 1; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string text = 1; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string text = 1; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string text = 1; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List< + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange> + highlightedTextRanges_ = java.util.Collections.emptyList(); + + private void ensureHighlightedTextRangesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + highlightedTextRanges_ = + new java.util.ArrayList< + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange>(highlightedTextRanges_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange.Builder, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRangeOrBuilder> + highlightedTextRangesBuilder_; + + /** + * + * + *
+           * The list of the ranges of the highlighted text.
+           * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + public java.util.List< + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange> + getHighlightedTextRangesList() { + if (highlightedTextRangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(highlightedTextRanges_); + } else { + return highlightedTextRangesBuilder_.getMessageList(); + } + } + /** + * + * + *
+           * The list of the ranges of the highlighted text.
+           * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + public int getHighlightedTextRangesCount() { + if (highlightedTextRangesBuilder_ == null) { + return highlightedTextRanges_.size(); + } else { + return highlightedTextRangesBuilder_.getCount(); + } + } + /** + * + * + *
+           * The list of the ranges of the highlighted text.
+           * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange + getHighlightedTextRanges(int index) { + if (highlightedTextRangesBuilder_ == null) { + return highlightedTextRanges_.get(index); + } else { + return highlightedTextRangesBuilder_.getMessage(index); + } + } + /** + * + * + *
+           * The list of the ranges of the highlighted text.
+           * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + public Builder setHighlightedTextRanges( + int index, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange + value) { + if (highlightedTextRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHighlightedTextRangesIsMutable(); + highlightedTextRanges_.set(index, value); + onChanged(); + } else { + highlightedTextRangesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+           * The list of the ranges of the highlighted text.
+           * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + public Builder setHighlightedTextRanges( + int index, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange.Builder + builderForValue) { + if (highlightedTextRangesBuilder_ == null) { + ensureHighlightedTextRangesIsMutable(); + highlightedTextRanges_.set(index, builderForValue.build()); + onChanged(); + } else { + highlightedTextRangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+           * The list of the ranges of the highlighted text.
+           * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + public Builder addHighlightedTextRanges( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange + value) { + if (highlightedTextRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHighlightedTextRangesIsMutable(); + highlightedTextRanges_.add(value); + onChanged(); + } else { + highlightedTextRangesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+           * The list of the ranges of the highlighted text.
+           * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + public Builder addHighlightedTextRanges( + int index, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange + value) { + if (highlightedTextRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHighlightedTextRangesIsMutable(); + highlightedTextRanges_.add(index, value); + onChanged(); + } else { + highlightedTextRangesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+           * The list of the ranges of the highlighted text.
+           * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + public Builder addHighlightedTextRanges( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange.Builder + builderForValue) { + if (highlightedTextRangesBuilder_ == null) { + ensureHighlightedTextRangesIsMutable(); + highlightedTextRanges_.add(builderForValue.build()); + onChanged(); + } else { + highlightedTextRangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+           * The list of the ranges of the highlighted text.
+           * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + public Builder addHighlightedTextRanges( + int index, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange.Builder + builderForValue) { + if (highlightedTextRangesBuilder_ == null) { + ensureHighlightedTextRangesIsMutable(); + highlightedTextRanges_.add(index, builderForValue.build()); + onChanged(); + } else { + highlightedTextRangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+           * The list of the ranges of the highlighted text.
+           * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + public Builder addAllHighlightedTextRanges( + java.lang.Iterable< + ? extends + com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustification.HighlightedText.HighlightedTextRange> + values) { + if (highlightedTextRangesBuilder_ == null) { + ensureHighlightedTextRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, highlightedTextRanges_); + onChanged(); + } else { + highlightedTextRangesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+           * The list of the ranges of the highlighted text.
+           * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + public Builder clearHighlightedTextRanges() { + if (highlightedTextRangesBuilder_ == null) { + highlightedTextRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + highlightedTextRangesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+           * The list of the ranges of the highlighted text.
+           * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + public Builder removeHighlightedTextRanges(int index) { + if (highlightedTextRangesBuilder_ == null) { + ensureHighlightedTextRangesIsMutable(); + highlightedTextRanges_.remove(index); + onChanged(); + } else { + highlightedTextRangesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+           * The list of the ranges of the highlighted text.
+           * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange.Builder + getHighlightedTextRangesBuilder(int index) { + return getHighlightedTextRangesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+           * The list of the ranges of the highlighted text.
+           * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRangeOrBuilder + getHighlightedTextRangesOrBuilder(int index) { + if (highlightedTextRangesBuilder_ == null) { + return highlightedTextRanges_.get(index); + } else { + return highlightedTextRangesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+           * The list of the ranges of the highlighted text.
+           * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + public java.util.List< + ? extends + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRangeOrBuilder> + getHighlightedTextRangesOrBuilderList() { + if (highlightedTextRangesBuilder_ != null) { + return highlightedTextRangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(highlightedTextRanges_); + } + } + /** + * + * + *
+           * The list of the ranges of the highlighted text.
+           * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange.Builder + addHighlightedTextRangesBuilder() { + return getHighlightedTextRangesFieldBuilder() + .addBuilder( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange.getDefaultInstance()); + } + /** + * + * + *
+           * The list of the ranges of the highlighted text.
+           * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange.Builder + addHighlightedTextRangesBuilder(int index) { + return getHighlightedTextRangesFieldBuilder() + .addBuilder( + index, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange.getDefaultInstance()); + } + /** + * + * + *
+           * The list of the ranges of the highlighted text.
+           * 
+ * + * + * repeated .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRange highlighted_text_ranges = 2; + * + */ + public java.util.List< + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange.Builder> + getHighlightedTextRangesBuilderList() { + return getHighlightedTextRangesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange.Builder, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRangeOrBuilder> + getHighlightedTextRangesFieldBuilder() { + if (highlightedTextRangesBuilder_ == null) { + highlightedTextRangesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRange.Builder, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.HighlightedTextRangeOrBuilder>( + highlightedTextRanges_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + highlightedTextRanges_ = null; + } + return highlightedTextRangesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText) + } + + // @@protoc_insertion_point(class_scope:google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText) + private static final com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustification.HighlightedText + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText(); + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HighlightedText parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int HIGHLIGHTED_TEXT_FIELD_NUMBER = 1; + private com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + highlightedText_; + /** + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText highlighted_text = 1; + * + * + * @return Whether the highlightedText field is set. + */ + @java.lang.Override + public boolean hasHighlightedText() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText highlighted_text = 1; + * + * + * @return The highlightedText. + */ + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + getHighlightedText() { + return highlightedText_ == null + ? com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.getDefaultInstance() + : highlightedText_; + } + /** + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText highlighted_text = 1; + * + */ + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedTextOrBuilder + getHighlightedTextOrBuilder() { + return highlightedText_ == null + ? com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.getDefaultInstance() + : highlightedText_; + } + + public static final int REVIEW_FIELD_NUMBER = 2; + private com.google.maps.places.v1.Review review_; + /** + * + * + *
+       * The review that the highlighted text is generated from.
+       * 
+ * + * .google.maps.places.v1.Review review = 2; + * + * @return Whether the review field is set. + */ + @java.lang.Override + public boolean hasReview() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * The review that the highlighted text is generated from.
+       * 
+ * + * .google.maps.places.v1.Review review = 2; + * + * @return The review. + */ + @java.lang.Override + public com.google.maps.places.v1.Review getReview() { + return review_ == null ? com.google.maps.places.v1.Review.getDefaultInstance() : review_; + } + /** + * + * + *
+       * The review that the highlighted text is generated from.
+       * 
+ * + * .google.maps.places.v1.Review review = 2; + */ + @java.lang.Override + public com.google.maps.places.v1.ReviewOrBuilder getReviewOrBuilder() { + return review_ == null ? com.google.maps.places.v1.Review.getDefaultInstance() : review_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getHighlightedText()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getReview()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHighlightedText()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReview()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification)) { + return super.equals(obj); + } + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification other = + (com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification) obj; + + if (hasHighlightedText() != other.hasHighlightedText()) return false; + if (hasHighlightedText()) { + if (!getHighlightedText().equals(other.getHighlightedText())) return false; + } + if (hasReview() != other.hasReview()) return false; + if (hasReview()) { + if (!getReview().equals(other.getReview())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHighlightedText()) { + hash = (37 * hash) + HIGHLIGHTED_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getHighlightedText().hashCode(); + } + if (hasReview()) { + hash = (37 * hash) + REVIEW_FIELD_NUMBER; + hash = (53 * hash) + getReview().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + 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.maps.places.v1.ContextualContent.Justification.ReviewJustification + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + 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.maps.places.v1.ContextualContent.Justification.ReviewJustification + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Experimental: See
+       * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+       * for more details.
+       *
+       * User review justifications. This highlights a section of the user review
+       * that would interest an end user. For instance, if the search query is
+       * "firewood pizza", the review justification highlights the text relevant
+       * to the search query.
+       * 
+ * + * Protobuf type {@code + * google.maps.places.v1.ContextualContent.Justification.ReviewJustification} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.ContextualContent.Justification.ReviewJustification) + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .class, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .Builder.class); + } + + // Construct using + // com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHighlightedTextFieldBuilder(); + getReviewFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + highlightedText_ = null; + if (highlightedTextBuilder_ != null) { + highlightedTextBuilder_.dispose(); + highlightedTextBuilder_ = null; + } + review_ = null; + if (reviewBuilder_ != null) { + reviewBuilder_.dispose(); + reviewBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_descriptor; + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + getDefaultInstanceForType() { + return com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + build() { + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + buildPartial() { + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification result = + new com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.highlightedText_ = + highlightedTextBuilder_ == null + ? highlightedText_ + : highlightedTextBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.review_ = reviewBuilder_ == null ? review_ : reviewBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification) { + return mergeFrom( + (com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification other) { + if (other + == com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .getDefaultInstance()) return this; + if (other.hasHighlightedText()) { + mergeHighlightedText(other.getHighlightedText()); + } + if (other.hasReview()) { + mergeReview(other.getReview()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getHighlightedTextFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getReviewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + highlightedText_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.Builder, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedTextOrBuilder> + highlightedTextBuilder_; + /** + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText highlighted_text = 1; + * + * + * @return Whether the highlightedText field is set. + */ + public boolean hasHighlightedText() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText highlighted_text = 1; + * + * + * @return The highlightedText. + */ + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + getHighlightedText() { + if (highlightedTextBuilder_ == null) { + return highlightedText_ == null + ? com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.getDefaultInstance() + : highlightedText_; + } else { + return highlightedTextBuilder_.getMessage(); + } + } + /** + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText highlighted_text = 1; + * + */ + public Builder setHighlightedText( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + value) { + if (highlightedTextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + highlightedText_ = value; + } else { + highlightedTextBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText highlighted_text = 1; + * + */ + public Builder setHighlightedText( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.Builder + builderForValue) { + if (highlightedTextBuilder_ == null) { + highlightedText_ = builderForValue.build(); + } else { + highlightedTextBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText highlighted_text = 1; + * + */ + public Builder mergeHighlightedText( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText + value) { + if (highlightedTextBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && highlightedText_ != null + && highlightedText_ + != com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.getDefaultInstance()) { + getHighlightedTextBuilder().mergeFrom(value); + } else { + highlightedText_ = value; + } + } else { + highlightedTextBuilder_.mergeFrom(value); + } + if (highlightedText_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText highlighted_text = 1; + * + */ + public Builder clearHighlightedText() { + bitField0_ = (bitField0_ & ~0x00000001); + highlightedText_ = null; + if (highlightedTextBuilder_ != null) { + highlightedTextBuilder_.dispose(); + highlightedTextBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText highlighted_text = 1; + * + */ + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.Builder + getHighlightedTextBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getHighlightedTextFieldBuilder().getBuilder(); + } + /** + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText highlighted_text = 1; + * + */ + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedTextOrBuilder + getHighlightedTextOrBuilder() { + if (highlightedTextBuilder_ != null) { + return highlightedTextBuilder_.getMessageOrBuilder(); + } else { + return highlightedText_ == null + ? com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.getDefaultInstance() + : highlightedText_; + } + } + /** + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification.HighlightedText highlighted_text = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.Builder, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedTextOrBuilder> + getHighlightedTextFieldBuilder() { + if (highlightedTextBuilder_ == null) { + highlightedTextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedText.Builder, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .HighlightedTextOrBuilder>( + getHighlightedText(), getParentForChildren(), isClean()); + highlightedText_ = null; + } + return highlightedTextBuilder_; + } + + private com.google.maps.places.v1.Review review_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Review, + com.google.maps.places.v1.Review.Builder, + com.google.maps.places.v1.ReviewOrBuilder> + reviewBuilder_; + /** + * + * + *
+         * The review that the highlighted text is generated from.
+         * 
+ * + * .google.maps.places.v1.Review review = 2; + * + * @return Whether the review field is set. + */ + public boolean hasReview() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+         * The review that the highlighted text is generated from.
+         * 
+ * + * .google.maps.places.v1.Review review = 2; + * + * @return The review. + */ + public com.google.maps.places.v1.Review getReview() { + if (reviewBuilder_ == null) { + return review_ == null + ? com.google.maps.places.v1.Review.getDefaultInstance() + : review_; + } else { + return reviewBuilder_.getMessage(); + } + } + /** + * + * + *
+         * The review that the highlighted text is generated from.
+         * 
+ * + * .google.maps.places.v1.Review review = 2; + */ + public Builder setReview(com.google.maps.places.v1.Review value) { + if (reviewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + review_ = value; + } else { + reviewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * The review that the highlighted text is generated from.
+         * 
+ * + * .google.maps.places.v1.Review review = 2; + */ + public Builder setReview(com.google.maps.places.v1.Review.Builder builderForValue) { + if (reviewBuilder_ == null) { + review_ = builderForValue.build(); + } else { + reviewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * The review that the highlighted text is generated from.
+         * 
+ * + * .google.maps.places.v1.Review review = 2; + */ + public Builder mergeReview(com.google.maps.places.v1.Review value) { + if (reviewBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && review_ != null + && review_ != com.google.maps.places.v1.Review.getDefaultInstance()) { + getReviewBuilder().mergeFrom(value); + } else { + review_ = value; + } + } else { + reviewBuilder_.mergeFrom(value); + } + if (review_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+         * The review that the highlighted text is generated from.
+         * 
+ * + * .google.maps.places.v1.Review review = 2; + */ + public Builder clearReview() { + bitField0_ = (bitField0_ & ~0x00000002); + review_ = null; + if (reviewBuilder_ != null) { + reviewBuilder_.dispose(); + reviewBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * The review that the highlighted text is generated from.
+         * 
+ * + * .google.maps.places.v1.Review review = 2; + */ + public com.google.maps.places.v1.Review.Builder getReviewBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getReviewFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * The review that the highlighted text is generated from.
+         * 
+ * + * .google.maps.places.v1.Review review = 2; + */ + public com.google.maps.places.v1.ReviewOrBuilder getReviewOrBuilder() { + if (reviewBuilder_ != null) { + return reviewBuilder_.getMessageOrBuilder(); + } else { + return review_ == null + ? com.google.maps.places.v1.Review.getDefaultInstance() + : review_; + } + } + /** + * + * + *
+         * The review that the highlighted text is generated from.
+         * 
+ * + * .google.maps.places.v1.Review review = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Review, + com.google.maps.places.v1.Review.Builder, + com.google.maps.places.v1.ReviewOrBuilder> + getReviewFieldBuilder() { + if (reviewBuilder_ == null) { + reviewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Review, + com.google.maps.places.v1.Review.Builder, + com.google.maps.places.v1.ReviewOrBuilder>( + getReview(), getParentForChildren(), isClean()); + review_ = null; + } + return reviewBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.ContextualContent.Justification.ReviewJustification) + } + + // @@protoc_insertion_point(class_scope:google.maps.places.v1.ContextualContent.Justification.ReviewJustification) + private static final com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustification + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification(); + } + + public static com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReviewJustification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface BusinessAvailabilityAttributesJustificationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * If a place provides takeout.
+       * 
+ * + * bool takeout = 1; + * + * @return The takeout. + */ + boolean getTakeout(); + + /** + * + * + *
+       * If a place provides delivery.
+       * 
+ * + * bool delivery = 2; + * + * @return The delivery. + */ + boolean getDelivery(); + + /** + * + * + *
+       * If a place provides dine-in.
+       * 
+ * + * bool dine_in = 3; + * + * @return The dineIn. + */ + boolean getDineIn(); + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     * BusinessAvailabilityAttributes justifications. This shows some attributes
+     * a business has that could interest an end user.
+     * 
+ * + * Protobuf type {@code + * google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification} + */ + public static final class BusinessAvailabilityAttributesJustification + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification) + BusinessAvailabilityAttributesJustificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use BusinessAvailabilityAttributesJustification.newBuilder() to construct. + private BusinessAvailabilityAttributesJustification( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BusinessAvailabilityAttributesJustification() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BusinessAvailabilityAttributesJustification(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_BusinessAvailabilityAttributesJustification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_BusinessAvailabilityAttributesJustification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification.class, + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification.Builder.class); + } + + public static final int TAKEOUT_FIELD_NUMBER = 1; + private boolean takeout_ = false; + /** + * + * + *
+       * If a place provides takeout.
+       * 
+ * + * bool takeout = 1; + * + * @return The takeout. + */ + @java.lang.Override + public boolean getTakeout() { + return takeout_; + } + + public static final int DELIVERY_FIELD_NUMBER = 2; + private boolean delivery_ = false; + /** + * + * + *
+       * If a place provides delivery.
+       * 
+ * + * bool delivery = 2; + * + * @return The delivery. + */ + @java.lang.Override + public boolean getDelivery() { + return delivery_; + } + + public static final int DINE_IN_FIELD_NUMBER = 3; + private boolean dineIn_ = false; + /** + * + * + *
+       * If a place provides dine-in.
+       * 
+ * + * bool dine_in = 3; + * + * @return The dineIn. + */ + @java.lang.Override + public boolean getDineIn() { + return dineIn_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (takeout_ != false) { + output.writeBool(1, takeout_); + } + if (delivery_ != false) { + output.writeBool(2, delivery_); + } + if (dineIn_ != false) { + output.writeBool(3, dineIn_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (takeout_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, takeout_); + } + if (delivery_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, delivery_); + } + if (dineIn_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, dineIn_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification)) { + return super.equals(obj); + } + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + other = + (com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification) + obj; + + if (getTakeout() != other.getTakeout()) return false; + if (getDelivery() != other.getDelivery()) return false; + if (getDineIn() != other.getDineIn()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TAKEOUT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTakeout()); + hash = (37 * hash) + DELIVERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDelivery()); + hash = (37 * hash) + DINE_IN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDineIn()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + 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.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + 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.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Experimental: See
+       * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+       * for more details.
+       * BusinessAvailabilityAttributes justifications. This shows some attributes
+       * a business has that could interest an end user.
+       * 
+ * + * Protobuf type {@code + * google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification) + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_BusinessAvailabilityAttributesJustification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_BusinessAvailabilityAttributesJustification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification.class, + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification.Builder.class); + } + + // Construct using + // com.google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + takeout_ = false; + delivery_ = false; + dineIn_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_BusinessAvailabilityAttributesJustification_descriptor; + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + getDefaultInstanceForType() { + return com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + build() { + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + buildPartial() { + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + result = + new com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.takeout_ = takeout_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.delivery_ = delivery_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dineIn_ = dineIn_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification) { + return mergeFrom( + (com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + other) { + if (other + == com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification.getDefaultInstance()) return this; + if (other.getTakeout() != false) { + setTakeout(other.getTakeout()); + } + if (other.getDelivery() != false) { + setDelivery(other.getDelivery()); + } + if (other.getDineIn() != false) { + setDineIn(other.getDineIn()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + takeout_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + delivery_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + dineIn_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean takeout_; + /** + * + * + *
+         * If a place provides takeout.
+         * 
+ * + * bool takeout = 1; + * + * @return The takeout. + */ + @java.lang.Override + public boolean getTakeout() { + return takeout_; + } + /** + * + * + *
+         * If a place provides takeout.
+         * 
+ * + * bool takeout = 1; + * + * @param value The takeout to set. + * @return This builder for chaining. + */ + public Builder setTakeout(boolean value) { + + takeout_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * If a place provides takeout.
+         * 
+ * + * bool takeout = 1; + * + * @return This builder for chaining. + */ + public Builder clearTakeout() { + bitField0_ = (bitField0_ & ~0x00000001); + takeout_ = false; + onChanged(); + return this; + } + + private boolean delivery_; + /** + * + * + *
+         * If a place provides delivery.
+         * 
+ * + * bool delivery = 2; + * + * @return The delivery. + */ + @java.lang.Override + public boolean getDelivery() { + return delivery_; + } + /** + * + * + *
+         * If a place provides delivery.
+         * 
+ * + * bool delivery = 2; + * + * @param value The delivery to set. + * @return This builder for chaining. + */ + public Builder setDelivery(boolean value) { + + delivery_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * If a place provides delivery.
+         * 
+ * + * bool delivery = 2; + * + * @return This builder for chaining. + */ + public Builder clearDelivery() { + bitField0_ = (bitField0_ & ~0x00000002); + delivery_ = false; + onChanged(); + return this; + } + + private boolean dineIn_; + /** + * + * + *
+         * If a place provides dine-in.
+         * 
+ * + * bool dine_in = 3; + * + * @return The dineIn. + */ + @java.lang.Override + public boolean getDineIn() { + return dineIn_; + } + /** + * + * + *
+         * If a place provides dine-in.
+         * 
+ * + * bool dine_in = 3; + * + * @param value The dineIn to set. + * @return This builder for chaining. + */ + public Builder setDineIn(boolean value) { + + dineIn_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+         * If a place provides dine-in.
+         * 
+ * + * bool dine_in = 3; + * + * @return This builder for chaining. + */ + public Builder clearDineIn() { + bitField0_ = (bitField0_ & ~0x00000004); + dineIn_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification) + } + + // @@protoc_insertion_point(class_scope:google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification) + private static final com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification(); + } + + public static com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + BusinessAvailabilityAttributesJustification>() { + @java.lang.Override + public BusinessAvailabilityAttributesJustification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int justificationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object justification_; + + public enum JustificationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + REVIEW_JUSTIFICATION(1), + BUSINESS_AVAILABILITY_ATTRIBUTES_JUSTIFICATION(2), + JUSTIFICATION_NOT_SET(0); + private final int value; + + private JustificationCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static JustificationCase valueOf(int value) { + return forNumber(value); + } + + public static JustificationCase forNumber(int value) { + switch (value) { + case 1: + return REVIEW_JUSTIFICATION; + case 2: + return BUSINESS_AVAILABILITY_ATTRIBUTES_JUSTIFICATION; + case 0: + return JUSTIFICATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public JustificationCase getJustificationCase() { + return JustificationCase.forNumber(justificationCase_); + } + + public static final int REVIEW_JUSTIFICATION_FIELD_NUMBER = 1; + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification review_justification = 1; + * + * + * @return Whether the reviewJustification field is set. + */ + @java.lang.Override + public boolean hasReviewJustification() { + return justificationCase_ == 1; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification review_justification = 1; + * + * + * @return The reviewJustification. + */ + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + getReviewJustification() { + if (justificationCase_ == 1) { + return (com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification) + justification_; + } + return com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .getDefaultInstance(); + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification review_justification = 1; + * + */ + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustificationOrBuilder + getReviewJustificationOrBuilder() { + if (justificationCase_ == 1) { + return (com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification) + justification_; + } + return com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .getDefaultInstance(); + } + + public static final int BUSINESS_AVAILABILITY_ATTRIBUTES_JUSTIFICATION_FIELD_NUMBER = 2; + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification business_availability_attributes_justification = 2; + * + * + * @return Whether the businessAvailabilityAttributesJustification field is set. + */ + @java.lang.Override + public boolean hasBusinessAvailabilityAttributesJustification() { + return justificationCase_ == 2; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification business_availability_attributes_justification = 2; + * + * + * @return The businessAvailabilityAttributesJustification. + */ + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + getBusinessAvailabilityAttributesJustification() { + if (justificationCase_ == 2) { + return (com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification) + justification_; + } + return com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification.getDefaultInstance(); + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification business_availability_attributes_justification = 2; + * + */ + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustificationOrBuilder + getBusinessAvailabilityAttributesJustificationOrBuilder() { + if (justificationCase_ == 2) { + return (com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification) + justification_; + } + return com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (justificationCase_ == 1) { + output.writeMessage( + 1, + (com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification) + justification_); + } + if (justificationCase_ == 2) { + output.writeMessage( + 2, + (com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification) + justification_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (justificationCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification) + justification_); + } + if (justificationCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification) + justification_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.maps.places.v1.ContextualContent.Justification)) { + return super.equals(obj); + } + com.google.maps.places.v1.ContextualContent.Justification other = + (com.google.maps.places.v1.ContextualContent.Justification) obj; + + if (!getJustificationCase().equals(other.getJustificationCase())) return false; + switch (justificationCase_) { + case 1: + if (!getReviewJustification().equals(other.getReviewJustification())) return false; + break; + case 2: + if (!getBusinessAvailabilityAttributesJustification() + .equals(other.getBusinessAvailabilityAttributesJustification())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (justificationCase_) { + case 1: + hash = (37 * hash) + REVIEW_JUSTIFICATION_FIELD_NUMBER; + hash = (53 * hash) + getReviewJustification().hashCode(); + break; + case 2: + hash = (37 * hash) + BUSINESS_AVAILABILITY_ATTRIBUTES_JUSTIFICATION_FIELD_NUMBER; + hash = (53 * hash) + getBusinessAvailabilityAttributesJustification().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.places.v1.ContextualContent.Justification parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContextualContent.Justification parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContextualContent.Justification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContextualContent.Justification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContextualContent.Justification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContextualContent.Justification parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContextualContent.Justification parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.ContextualContent.Justification 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.maps.places.v1.ContextualContent.Justification parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.ContextualContent.Justification 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.maps.places.v1.ContextualContent.Justification parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.ContextualContent.Justification 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.maps.places.v1.ContextualContent.Justification prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * Justifications for the place. Justifications answers the question of why a
+     * place could interest an end user.
+     * 
+ * + * Protobuf type {@code google.maps.places.v1.ContextualContent.Justification} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.ContextualContent.Justification) + com.google.maps.places.v1.ContextualContent.JustificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.ContextualContent.Justification.class, + com.google.maps.places.v1.ContextualContent.Justification.Builder.class); + } + + // Construct using com.google.maps.places.v1.ContextualContent.Justification.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (reviewJustificationBuilder_ != null) { + reviewJustificationBuilder_.clear(); + } + if (businessAvailabilityAttributesJustificationBuilder_ != null) { + businessAvailabilityAttributesJustificationBuilder_.clear(); + } + justificationCase_ = 0; + justification_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_Justification_descriptor; + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification getDefaultInstanceForType() { + return com.google.maps.places.v1.ContextualContent.Justification.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification build() { + com.google.maps.places.v1.ContextualContent.Justification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification buildPartial() { + com.google.maps.places.v1.ContextualContent.Justification result = + new com.google.maps.places.v1.ContextualContent.Justification(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.places.v1.ContextualContent.Justification result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.maps.places.v1.ContextualContent.Justification result) { + result.justificationCase_ = justificationCase_; + result.justification_ = this.justification_; + if (justificationCase_ == 1 && reviewJustificationBuilder_ != null) { + result.justification_ = reviewJustificationBuilder_.build(); + } + if (justificationCase_ == 2 + && businessAvailabilityAttributesJustificationBuilder_ != null) { + result.justification_ = businessAvailabilityAttributesJustificationBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.places.v1.ContextualContent.Justification) { + return mergeFrom((com.google.maps.places.v1.ContextualContent.Justification) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.places.v1.ContextualContent.Justification other) { + if (other == com.google.maps.places.v1.ContextualContent.Justification.getDefaultInstance()) + return this; + switch (other.getJustificationCase()) { + case REVIEW_JUSTIFICATION: + { + mergeReviewJustification(other.getReviewJustification()); + break; + } + case BUSINESS_AVAILABILITY_ATTRIBUTES_JUSTIFICATION: + { + mergeBusinessAvailabilityAttributesJustification( + other.getBusinessAvailabilityAttributesJustification()); + break; + } + case JUSTIFICATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getReviewJustificationFieldBuilder().getBuilder(), extensionRegistry); + justificationCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getBusinessAvailabilityAttributesJustificationFieldBuilder().getBuilder(), + extensionRegistry); + justificationCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int justificationCase_ = 0; + private java.lang.Object justification_; + + public JustificationCase getJustificationCase() { + return JustificationCase.forNumber(justificationCase_); + } + + public Builder clearJustification() { + justificationCase_ = 0; + justification_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification.Builder, + com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustificationOrBuilder> + reviewJustificationBuilder_; + /** + * + * + *
+       * Experimental: See
+       * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+       * for more details.
+       * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification review_justification = 1; + * + * + * @return Whether the reviewJustification field is set. + */ + @java.lang.Override + public boolean hasReviewJustification() { + return justificationCase_ == 1; + } + /** + * + * + *
+       * Experimental: See
+       * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+       * for more details.
+       * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification review_justification = 1; + * + * + * @return The reviewJustification. + */ + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + getReviewJustification() { + if (reviewJustificationBuilder_ == null) { + if (justificationCase_ == 1) { + return (com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification) + justification_; + } + return com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .getDefaultInstance(); + } else { + if (justificationCase_ == 1) { + return reviewJustificationBuilder_.getMessage(); + } + return com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Experimental: See
+       * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+       * for more details.
+       * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification review_justification = 1; + * + */ + public Builder setReviewJustification( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification value) { + if (reviewJustificationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + justification_ = value; + onChanged(); + } else { + reviewJustificationBuilder_.setMessage(value); + } + justificationCase_ = 1; + return this; + } + /** + * + * + *
+       * Experimental: See
+       * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+       * for more details.
+       * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification review_justification = 1; + * + */ + public Builder setReviewJustification( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification.Builder + builderForValue) { + if (reviewJustificationBuilder_ == null) { + justification_ = builderForValue.build(); + onChanged(); + } else { + reviewJustificationBuilder_.setMessage(builderForValue.build()); + } + justificationCase_ = 1; + return this; + } + /** + * + * + *
+       * Experimental: See
+       * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+       * for more details.
+       * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification review_justification = 1; + * + */ + public Builder mergeReviewJustification( + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification value) { + if (reviewJustificationBuilder_ == null) { + if (justificationCase_ == 1 + && justification_ + != com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .getDefaultInstance()) { + justification_ = + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .newBuilder( + (com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustification) + justification_) + .mergeFrom(value) + .buildPartial(); + } else { + justification_ = value; + } + onChanged(); + } else { + if (justificationCase_ == 1) { + reviewJustificationBuilder_.mergeFrom(value); + } else { + reviewJustificationBuilder_.setMessage(value); + } + } + justificationCase_ = 1; + return this; + } + /** + * + * + *
+       * Experimental: See
+       * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+       * for more details.
+       * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification review_justification = 1; + * + */ + public Builder clearReviewJustification() { + if (reviewJustificationBuilder_ == null) { + if (justificationCase_ == 1) { + justificationCase_ = 0; + justification_ = null; + onChanged(); + } + } else { + if (justificationCase_ == 1) { + justificationCase_ = 0; + justification_ = null; + } + reviewJustificationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Experimental: See
+       * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+       * for more details.
+       * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification review_justification = 1; + * + */ + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification.Builder + getReviewJustificationBuilder() { + return getReviewJustificationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Experimental: See
+       * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+       * for more details.
+       * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification review_justification = 1; + * + */ + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification.ReviewJustificationOrBuilder + getReviewJustificationOrBuilder() { + if ((justificationCase_ == 1) && (reviewJustificationBuilder_ != null)) { + return reviewJustificationBuilder_.getMessageOrBuilder(); + } else { + if (justificationCase_ == 1) { + return (com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification) + justification_; + } + return com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Experimental: See
+       * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+       * for more details.
+       * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.ReviewJustification review_justification = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification.Builder, + com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustificationOrBuilder> + getReviewJustificationFieldBuilder() { + if (reviewJustificationBuilder_ == null) { + if (!(justificationCase_ == 1)) { + justification_ = + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .getDefaultInstance(); + } + reviewJustificationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification, + com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification + .Builder, + com.google.maps.places.v1.ContextualContent.Justification + .ReviewJustificationOrBuilder>( + (com.google.maps.places.v1.ContextualContent.Justification.ReviewJustification) + justification_, + getParentForChildren(), + isClean()); + justification_ = null; + } + justificationCase_ = 1; + onChanged(); + return reviewJustificationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification, + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification.Builder, + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustificationOrBuilder> + businessAvailabilityAttributesJustificationBuilder_; + /** + * + * + *
+       * Experimental: See
+       * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+       * for more details.
+       * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification business_availability_attributes_justification = 2; + * + * + * @return Whether the businessAvailabilityAttributesJustification field is set. + */ + @java.lang.Override + public boolean hasBusinessAvailabilityAttributesJustification() { + return justificationCase_ == 2; + } + /** + * + * + *
+       * Experimental: See
+       * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+       * for more details.
+       * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification business_availability_attributes_justification = 2; + * + * + * @return The businessAvailabilityAttributesJustification. + */ + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + getBusinessAvailabilityAttributesJustification() { + if (businessAvailabilityAttributesJustificationBuilder_ == null) { + if (justificationCase_ == 2) { + return (com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification) + justification_; + } + return com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification.getDefaultInstance(); + } else { + if (justificationCase_ == 2) { + return businessAvailabilityAttributesJustificationBuilder_.getMessage(); + } + return com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification.getDefaultInstance(); + } + } + /** + * + * + *
+       * Experimental: See
+       * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+       * for more details.
+       * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification business_availability_attributes_justification = 2; + * + */ + public Builder setBusinessAvailabilityAttributesJustification( + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + value) { + if (businessAvailabilityAttributesJustificationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + justification_ = value; + onChanged(); + } else { + businessAvailabilityAttributesJustificationBuilder_.setMessage(value); + } + justificationCase_ = 2; + return this; + } + /** + * + * + *
+       * Experimental: See
+       * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+       * for more details.
+       * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification business_availability_attributes_justification = 2; + * + */ + public Builder setBusinessAvailabilityAttributesJustification( + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification.Builder + builderForValue) { + if (businessAvailabilityAttributesJustificationBuilder_ == null) { + justification_ = builderForValue.build(); + onChanged(); + } else { + businessAvailabilityAttributesJustificationBuilder_.setMessage(builderForValue.build()); + } + justificationCase_ = 2; + return this; + } + /** + * + * + *
+       * Experimental: See
+       * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+       * for more details.
+       * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification business_availability_attributes_justification = 2; + * + */ + public Builder mergeBusinessAvailabilityAttributesJustification( + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification + value) { + if (businessAvailabilityAttributesJustificationBuilder_ == null) { + if (justificationCase_ == 2 + && justification_ + != com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification.getDefaultInstance()) { + justification_ = + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification.newBuilder( + (com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification) + justification_) + .mergeFrom(value) + .buildPartial(); + } else { + justification_ = value; + } + onChanged(); + } else { + if (justificationCase_ == 2) { + businessAvailabilityAttributesJustificationBuilder_.mergeFrom(value); + } else { + businessAvailabilityAttributesJustificationBuilder_.setMessage(value); + } + } + justificationCase_ = 2; + return this; + } + /** + * + * + *
+       * Experimental: See
+       * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+       * for more details.
+       * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification business_availability_attributes_justification = 2; + * + */ + public Builder clearBusinessAvailabilityAttributesJustification() { + if (businessAvailabilityAttributesJustificationBuilder_ == null) { + if (justificationCase_ == 2) { + justificationCase_ = 0; + justification_ = null; + onChanged(); + } + } else { + if (justificationCase_ == 2) { + justificationCase_ = 0; + justification_ = null; + } + businessAvailabilityAttributesJustificationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Experimental: See
+       * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+       * for more details.
+       * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification business_availability_attributes_justification = 2; + * + */ + public com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification.Builder + getBusinessAvailabilityAttributesJustificationBuilder() { + return getBusinessAvailabilityAttributesJustificationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Experimental: See
+       * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+       * for more details.
+       * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification business_availability_attributes_justification = 2; + * + */ + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustificationOrBuilder + getBusinessAvailabilityAttributesJustificationOrBuilder() { + if ((justificationCase_ == 2) + && (businessAvailabilityAttributesJustificationBuilder_ != null)) { + return businessAvailabilityAttributesJustificationBuilder_.getMessageOrBuilder(); + } else { + if (justificationCase_ == 2) { + return (com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification) + justification_; + } + return com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification.getDefaultInstance(); + } + } + /** + * + * + *
+       * Experimental: See
+       * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+       * for more details.
+       * 
+ * + * + * .google.maps.places.v1.ContextualContent.Justification.BusinessAvailabilityAttributesJustification business_availability_attributes_justification = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification, + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification.Builder, + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustificationOrBuilder> + getBusinessAvailabilityAttributesJustificationFieldBuilder() { + if (businessAvailabilityAttributesJustificationBuilder_ == null) { + if (!(justificationCase_ == 2)) { + justification_ = + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification.getDefaultInstance(); + } + businessAvailabilityAttributesJustificationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification, + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification.Builder, + com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustificationOrBuilder>( + (com.google.maps.places.v1.ContextualContent.Justification + .BusinessAvailabilityAttributesJustification) + justification_, + getParentForChildren(), + isClean()); + justification_ = null; + } + justificationCase_ = 2; + onChanged(); + return businessAvailabilityAttributesJustificationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.ContextualContent.Justification) + } + + // @@protoc_insertion_point(class_scope:google.maps.places.v1.ContextualContent.Justification) + private static final com.google.maps.places.v1.ContextualContent.Justification DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.places.v1.ContextualContent.Justification(); + } + + public static com.google.maps.places.v1.ContextualContent.Justification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Justification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int REVIEWS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List reviews_; + /** + * + * + *
+   * List of reviews about this place, contexual to the place query.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + @java.lang.Override + public java.util.List getReviewsList() { + return reviews_; + } + /** + * + * + *
+   * List of reviews about this place, contexual to the place query.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + @java.lang.Override + public java.util.List + getReviewsOrBuilderList() { + return reviews_; + } + /** + * + * + *
+   * List of reviews about this place, contexual to the place query.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + @java.lang.Override + public int getReviewsCount() { + return reviews_.size(); + } + /** + * + * + *
+   * List of reviews about this place, contexual to the place query.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + @java.lang.Override + public com.google.maps.places.v1.Review getReviews(int index) { + return reviews_.get(index); + } + /** + * + * + *
+   * List of reviews about this place, contexual to the place query.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + @java.lang.Override + public com.google.maps.places.v1.ReviewOrBuilder getReviewsOrBuilder(int index) { + return reviews_.get(index); + } + + public static final int PHOTOS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List photos_; + /** + * + * + *
+   * Information (including references) about photos of this place, contexual to
+   * the place query.
+   * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + @java.lang.Override + public java.util.List getPhotosList() { + return photos_; + } + /** + * + * + *
+   * Information (including references) about photos of this place, contexual to
+   * the place query.
+   * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + @java.lang.Override + public java.util.List + getPhotosOrBuilderList() { + return photos_; + } + /** + * + * + *
+   * Information (including references) about photos of this place, contexual to
+   * the place query.
+   * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + @java.lang.Override + public int getPhotosCount() { + return photos_.size(); + } + /** + * + * + *
+   * Information (including references) about photos of this place, contexual to
+   * the place query.
+   * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + @java.lang.Override + public com.google.maps.places.v1.Photo getPhotos(int index) { + return photos_.get(index); + } + /** + * + * + *
+   * Information (including references) about photos of this place, contexual to
+   * the place query.
+   * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + @java.lang.Override + public com.google.maps.places.v1.PhotoOrBuilder getPhotosOrBuilder(int index) { + return photos_.get(index); + } + + public static final int JUSTIFICATIONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List justifications_; + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * Justifications for the place.
+   * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + @java.lang.Override + public java.util.List + getJustificationsList() { + return justifications_; + } + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * Justifications for the place.
+   * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.maps.places.v1.ContextualContent.JustificationOrBuilder> + getJustificationsOrBuilderList() { + return justifications_; + } + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * Justifications for the place.
+   * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + @java.lang.Override + public int getJustificationsCount() { + return justifications_.size(); + } + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * Justifications for the place.
+   * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.Justification getJustifications(int index) { + return justifications_.get(index); + } + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * Justifications for the place.
+   * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + @java.lang.Override + public com.google.maps.places.v1.ContextualContent.JustificationOrBuilder + getJustificationsOrBuilder(int index) { + return justifications_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < reviews_.size(); i++) { + output.writeMessage(1, reviews_.get(i)); + } + for (int i = 0; i < photos_.size(); i++) { + output.writeMessage(2, photos_.get(i)); + } + for (int i = 0; i < justifications_.size(); i++) { + output.writeMessage(3, justifications_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < reviews_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, reviews_.get(i)); + } + for (int i = 0; i < photos_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, photos_.get(i)); + } + for (int i = 0; i < justifications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, justifications_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.maps.places.v1.ContextualContent)) { + return super.equals(obj); + } + com.google.maps.places.v1.ContextualContent other = + (com.google.maps.places.v1.ContextualContent) obj; + + if (!getReviewsList().equals(other.getReviewsList())) return false; + if (!getPhotosList().equals(other.getPhotosList())) return false; + if (!getJustificationsList().equals(other.getJustificationsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getReviewsCount() > 0) { + hash = (37 * hash) + REVIEWS_FIELD_NUMBER; + hash = (53 * hash) + getReviewsList().hashCode(); + } + if (getPhotosCount() > 0) { + hash = (37 * hash) + PHOTOS_FIELD_NUMBER; + hash = (53 * hash) + getPhotosList().hashCode(); + } + if (getJustificationsCount() > 0) { + hash = (37 * hash) + JUSTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getJustificationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.places.v1.ContextualContent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContextualContent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContextualContent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContextualContent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContextualContent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.ContextualContent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.ContextualContent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.ContextualContent 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.maps.places.v1.ContextualContent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.ContextualContent 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.maps.places.v1.ContextualContent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.ContextualContent 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.maps.places.v1.ContextualContent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * Content that is contextual to the place query.
+   * 
+ * + * Protobuf type {@code google.maps.places.v1.ContextualContent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.ContextualContent) + com.google.maps.places.v1.ContextualContentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.ContextualContent.class, + com.google.maps.places.v1.ContextualContent.Builder.class); + } + + // Construct using com.google.maps.places.v1.ContextualContent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (reviewsBuilder_ == null) { + reviews_ = java.util.Collections.emptyList(); + } else { + reviews_ = null; + reviewsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (photosBuilder_ == null) { + photos_ = java.util.Collections.emptyList(); + } else { + photos_ = null; + photosBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (justificationsBuilder_ == null) { + justifications_ = java.util.Collections.emptyList(); + } else { + justifications_ = null; + justificationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.places.v1.ContextualContentProto + .internal_static_google_maps_places_v1_ContextualContent_descriptor; + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent getDefaultInstanceForType() { + return com.google.maps.places.v1.ContextualContent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent build() { + com.google.maps.places.v1.ContextualContent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent buildPartial() { + com.google.maps.places.v1.ContextualContent result = + new com.google.maps.places.v1.ContextualContent(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.maps.places.v1.ContextualContent result) { + if (reviewsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + reviews_ = java.util.Collections.unmodifiableList(reviews_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.reviews_ = reviews_; + } else { + result.reviews_ = reviewsBuilder_.build(); + } + if (photosBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + photos_ = java.util.Collections.unmodifiableList(photos_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.photos_ = photos_; + } else { + result.photos_ = photosBuilder_.build(); + } + if (justificationsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + justifications_ = java.util.Collections.unmodifiableList(justifications_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.justifications_ = justifications_; + } else { + result.justifications_ = justificationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.maps.places.v1.ContextualContent result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.places.v1.ContextualContent) { + return mergeFrom((com.google.maps.places.v1.ContextualContent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.places.v1.ContextualContent other) { + if (other == com.google.maps.places.v1.ContextualContent.getDefaultInstance()) return this; + if (reviewsBuilder_ == null) { + if (!other.reviews_.isEmpty()) { + if (reviews_.isEmpty()) { + reviews_ = other.reviews_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureReviewsIsMutable(); + reviews_.addAll(other.reviews_); + } + onChanged(); + } + } else { + if (!other.reviews_.isEmpty()) { + if (reviewsBuilder_.isEmpty()) { + reviewsBuilder_.dispose(); + reviewsBuilder_ = null; + reviews_ = other.reviews_; + bitField0_ = (bitField0_ & ~0x00000001); + reviewsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReviewsFieldBuilder() + : null; + } else { + reviewsBuilder_.addAllMessages(other.reviews_); + } + } + } + if (photosBuilder_ == null) { + if (!other.photos_.isEmpty()) { + if (photos_.isEmpty()) { + photos_ = other.photos_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePhotosIsMutable(); + photos_.addAll(other.photos_); + } + onChanged(); + } + } else { + if (!other.photos_.isEmpty()) { + if (photosBuilder_.isEmpty()) { + photosBuilder_.dispose(); + photosBuilder_ = null; + photos_ = other.photos_; + bitField0_ = (bitField0_ & ~0x00000002); + photosBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPhotosFieldBuilder() + : null; + } else { + photosBuilder_.addAllMessages(other.photos_); + } + } + } + if (justificationsBuilder_ == null) { + if (!other.justifications_.isEmpty()) { + if (justifications_.isEmpty()) { + justifications_ = other.justifications_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureJustificationsIsMutable(); + justifications_.addAll(other.justifications_); + } + onChanged(); + } + } else { + if (!other.justifications_.isEmpty()) { + if (justificationsBuilder_.isEmpty()) { + justificationsBuilder_.dispose(); + justificationsBuilder_ = null; + justifications_ = other.justifications_; + bitField0_ = (bitField0_ & ~0x00000004); + justificationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getJustificationsFieldBuilder() + : null; + } else { + justificationsBuilder_.addAllMessages(other.justifications_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.maps.places.v1.Review m = + input.readMessage(com.google.maps.places.v1.Review.parser(), extensionRegistry); + if (reviewsBuilder_ == null) { + ensureReviewsIsMutable(); + reviews_.add(m); + } else { + reviewsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.maps.places.v1.Photo m = + input.readMessage(com.google.maps.places.v1.Photo.parser(), extensionRegistry); + if (photosBuilder_ == null) { + ensurePhotosIsMutable(); + photos_.add(m); + } else { + photosBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.maps.places.v1.ContextualContent.Justification m = + input.readMessage( + com.google.maps.places.v1.ContextualContent.Justification.parser(), + extensionRegistry); + if (justificationsBuilder_ == null) { + ensureJustificationsIsMutable(); + justifications_.add(m); + } else { + justificationsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List reviews_ = + java.util.Collections.emptyList(); + + private void ensureReviewsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + reviews_ = new java.util.ArrayList(reviews_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Review, + com.google.maps.places.v1.Review.Builder, + com.google.maps.places.v1.ReviewOrBuilder> + reviewsBuilder_; + + /** + * + * + *
+     * List of reviews about this place, contexual to the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public java.util.List getReviewsList() { + if (reviewsBuilder_ == null) { + return java.util.Collections.unmodifiableList(reviews_); + } else { + return reviewsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of reviews about this place, contexual to the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public int getReviewsCount() { + if (reviewsBuilder_ == null) { + return reviews_.size(); + } else { + return reviewsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of reviews about this place, contexual to the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public com.google.maps.places.v1.Review getReviews(int index) { + if (reviewsBuilder_ == null) { + return reviews_.get(index); + } else { + return reviewsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of reviews about this place, contexual to the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public Builder setReviews(int index, com.google.maps.places.v1.Review value) { + if (reviewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReviewsIsMutable(); + reviews_.set(index, value); + onChanged(); + } else { + reviewsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of reviews about this place, contexual to the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public Builder setReviews(int index, com.google.maps.places.v1.Review.Builder builderForValue) { + if (reviewsBuilder_ == null) { + ensureReviewsIsMutable(); + reviews_.set(index, builderForValue.build()); + onChanged(); + } else { + reviewsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of reviews about this place, contexual to the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public Builder addReviews(com.google.maps.places.v1.Review value) { + if (reviewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReviewsIsMutable(); + reviews_.add(value); + onChanged(); + } else { + reviewsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of reviews about this place, contexual to the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public Builder addReviews(int index, com.google.maps.places.v1.Review value) { + if (reviewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReviewsIsMutable(); + reviews_.add(index, value); + onChanged(); + } else { + reviewsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of reviews about this place, contexual to the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public Builder addReviews(com.google.maps.places.v1.Review.Builder builderForValue) { + if (reviewsBuilder_ == null) { + ensureReviewsIsMutable(); + reviews_.add(builderForValue.build()); + onChanged(); + } else { + reviewsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of reviews about this place, contexual to the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public Builder addReviews(int index, com.google.maps.places.v1.Review.Builder builderForValue) { + if (reviewsBuilder_ == null) { + ensureReviewsIsMutable(); + reviews_.add(index, builderForValue.build()); + onChanged(); + } else { + reviewsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of reviews about this place, contexual to the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public Builder addAllReviews( + java.lang.Iterable values) { + if (reviewsBuilder_ == null) { + ensureReviewsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reviews_); + onChanged(); + } else { + reviewsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of reviews about this place, contexual to the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public Builder clearReviews() { + if (reviewsBuilder_ == null) { + reviews_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + reviewsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of reviews about this place, contexual to the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public Builder removeReviews(int index) { + if (reviewsBuilder_ == null) { + ensureReviewsIsMutable(); + reviews_.remove(index); + onChanged(); + } else { + reviewsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of reviews about this place, contexual to the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public com.google.maps.places.v1.Review.Builder getReviewsBuilder(int index) { + return getReviewsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of reviews about this place, contexual to the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public com.google.maps.places.v1.ReviewOrBuilder getReviewsOrBuilder(int index) { + if (reviewsBuilder_ == null) { + return reviews_.get(index); + } else { + return reviewsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of reviews about this place, contexual to the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public java.util.List + getReviewsOrBuilderList() { + if (reviewsBuilder_ != null) { + return reviewsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(reviews_); + } + } + /** + * + * + *
+     * List of reviews about this place, contexual to the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public com.google.maps.places.v1.Review.Builder addReviewsBuilder() { + return getReviewsFieldBuilder() + .addBuilder(com.google.maps.places.v1.Review.getDefaultInstance()); + } + /** + * + * + *
+     * List of reviews about this place, contexual to the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public com.google.maps.places.v1.Review.Builder addReviewsBuilder(int index) { + return getReviewsFieldBuilder() + .addBuilder(index, com.google.maps.places.v1.Review.getDefaultInstance()); + } + /** + * + * + *
+     * List of reviews about this place, contexual to the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public java.util.List getReviewsBuilderList() { + return getReviewsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Review, + com.google.maps.places.v1.Review.Builder, + com.google.maps.places.v1.ReviewOrBuilder> + getReviewsFieldBuilder() { + if (reviewsBuilder_ == null) { + reviewsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Review, + com.google.maps.places.v1.Review.Builder, + com.google.maps.places.v1.ReviewOrBuilder>( + reviews_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + reviews_ = null; + } + return reviewsBuilder_; + } + + private java.util.List photos_ = + java.util.Collections.emptyList(); + + private void ensurePhotosIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + photos_ = new java.util.ArrayList(photos_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Photo, + com.google.maps.places.v1.Photo.Builder, + com.google.maps.places.v1.PhotoOrBuilder> + photosBuilder_; + + /** + * + * + *
+     * Information (including references) about photos of this place, contexual to
+     * the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + public java.util.List getPhotosList() { + if (photosBuilder_ == null) { + return java.util.Collections.unmodifiableList(photos_); + } else { + return photosBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Information (including references) about photos of this place, contexual to
+     * the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + public int getPhotosCount() { + if (photosBuilder_ == null) { + return photos_.size(); + } else { + return photosBuilder_.getCount(); + } + } + /** + * + * + *
+     * Information (including references) about photos of this place, contexual to
+     * the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + public com.google.maps.places.v1.Photo getPhotos(int index) { + if (photosBuilder_ == null) { + return photos_.get(index); + } else { + return photosBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Information (including references) about photos of this place, contexual to
+     * the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + public Builder setPhotos(int index, com.google.maps.places.v1.Photo value) { + if (photosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhotosIsMutable(); + photos_.set(index, value); + onChanged(); + } else { + photosBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Information (including references) about photos of this place, contexual to
+     * the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + public Builder setPhotos(int index, com.google.maps.places.v1.Photo.Builder builderForValue) { + if (photosBuilder_ == null) { + ensurePhotosIsMutable(); + photos_.set(index, builderForValue.build()); + onChanged(); + } else { + photosBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Information (including references) about photos of this place, contexual to
+     * the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + public Builder addPhotos(com.google.maps.places.v1.Photo value) { + if (photosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhotosIsMutable(); + photos_.add(value); + onChanged(); + } else { + photosBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Information (including references) about photos of this place, contexual to
+     * the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + public Builder addPhotos(int index, com.google.maps.places.v1.Photo value) { + if (photosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhotosIsMutable(); + photos_.add(index, value); + onChanged(); + } else { + photosBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Information (including references) about photos of this place, contexual to
+     * the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + public Builder addPhotos(com.google.maps.places.v1.Photo.Builder builderForValue) { + if (photosBuilder_ == null) { + ensurePhotosIsMutable(); + photos_.add(builderForValue.build()); + onChanged(); + } else { + photosBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Information (including references) about photos of this place, contexual to
+     * the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + public Builder addPhotos(int index, com.google.maps.places.v1.Photo.Builder builderForValue) { + if (photosBuilder_ == null) { + ensurePhotosIsMutable(); + photos_.add(index, builderForValue.build()); + onChanged(); + } else { + photosBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Information (including references) about photos of this place, contexual to
+     * the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + public Builder addAllPhotos( + java.lang.Iterable values) { + if (photosBuilder_ == null) { + ensurePhotosIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, photos_); + onChanged(); + } else { + photosBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Information (including references) about photos of this place, contexual to
+     * the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + public Builder clearPhotos() { + if (photosBuilder_ == null) { + photos_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + photosBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Information (including references) about photos of this place, contexual to
+     * the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + public Builder removePhotos(int index) { + if (photosBuilder_ == null) { + ensurePhotosIsMutable(); + photos_.remove(index); + onChanged(); + } else { + photosBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Information (including references) about photos of this place, contexual to
+     * the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + public com.google.maps.places.v1.Photo.Builder getPhotosBuilder(int index) { + return getPhotosFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Information (including references) about photos of this place, contexual to
+     * the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + public com.google.maps.places.v1.PhotoOrBuilder getPhotosOrBuilder(int index) { + if (photosBuilder_ == null) { + return photos_.get(index); + } else { + return photosBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Information (including references) about photos of this place, contexual to
+     * the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + public java.util.List + getPhotosOrBuilderList() { + if (photosBuilder_ != null) { + return photosBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(photos_); + } + } + /** + * + * + *
+     * Information (including references) about photos of this place, contexual to
+     * the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + public com.google.maps.places.v1.Photo.Builder addPhotosBuilder() { + return getPhotosFieldBuilder() + .addBuilder(com.google.maps.places.v1.Photo.getDefaultInstance()); + } + /** + * + * + *
+     * Information (including references) about photos of this place, contexual to
+     * the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + public com.google.maps.places.v1.Photo.Builder addPhotosBuilder(int index) { + return getPhotosFieldBuilder() + .addBuilder(index, com.google.maps.places.v1.Photo.getDefaultInstance()); + } + /** + * + * + *
+     * Information (including references) about photos of this place, contexual to
+     * the place query.
+     * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + public java.util.List getPhotosBuilderList() { + return getPhotosFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Photo, + com.google.maps.places.v1.Photo.Builder, + com.google.maps.places.v1.PhotoOrBuilder> + getPhotosFieldBuilder() { + if (photosBuilder_ == null) { + photosBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Photo, + com.google.maps.places.v1.Photo.Builder, + com.google.maps.places.v1.PhotoOrBuilder>( + photos_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + photos_ = null; + } + return photosBuilder_; + } + + private java.util.List + justifications_ = java.util.Collections.emptyList(); + + private void ensureJustificationsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + justifications_ = + new java.util.ArrayList( + justifications_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.ContextualContent.Justification, + com.google.maps.places.v1.ContextualContent.Justification.Builder, + com.google.maps.places.v1.ContextualContent.JustificationOrBuilder> + justificationsBuilder_; + + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * Justifications for the place.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + public java.util.List + getJustificationsList() { + if (justificationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(justifications_); + } else { + return justificationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * Justifications for the place.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + public int getJustificationsCount() { + if (justificationsBuilder_ == null) { + return justifications_.size(); + } else { + return justificationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * Justifications for the place.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + public com.google.maps.places.v1.ContextualContent.Justification getJustifications(int index) { + if (justificationsBuilder_ == null) { + return justifications_.get(index); + } else { + return justificationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * Justifications for the place.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + public Builder setJustifications( + int index, com.google.maps.places.v1.ContextualContent.Justification value) { + if (justificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJustificationsIsMutable(); + justifications_.set(index, value); + onChanged(); + } else { + justificationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * Justifications for the place.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + public Builder setJustifications( + int index, + com.google.maps.places.v1.ContextualContent.Justification.Builder builderForValue) { + if (justificationsBuilder_ == null) { + ensureJustificationsIsMutable(); + justifications_.set(index, builderForValue.build()); + onChanged(); + } else { + justificationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * Justifications for the place.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + public Builder addJustifications( + com.google.maps.places.v1.ContextualContent.Justification value) { + if (justificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJustificationsIsMutable(); + justifications_.add(value); + onChanged(); + } else { + justificationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * Justifications for the place.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + public Builder addJustifications( + int index, com.google.maps.places.v1.ContextualContent.Justification value) { + if (justificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJustificationsIsMutable(); + justifications_.add(index, value); + onChanged(); + } else { + justificationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * Justifications for the place.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + public Builder addJustifications( + com.google.maps.places.v1.ContextualContent.Justification.Builder builderForValue) { + if (justificationsBuilder_ == null) { + ensureJustificationsIsMutable(); + justifications_.add(builderForValue.build()); + onChanged(); + } else { + justificationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * Justifications for the place.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + public Builder addJustifications( + int index, + com.google.maps.places.v1.ContextualContent.Justification.Builder builderForValue) { + if (justificationsBuilder_ == null) { + ensureJustificationsIsMutable(); + justifications_.add(index, builderForValue.build()); + onChanged(); + } else { + justificationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * Justifications for the place.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + public Builder addAllJustifications( + java.lang.Iterable + values) { + if (justificationsBuilder_ == null) { + ensureJustificationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, justifications_); + onChanged(); + } else { + justificationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * Justifications for the place.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + public Builder clearJustifications() { + if (justificationsBuilder_ == null) { + justifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + justificationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * Justifications for the place.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + public Builder removeJustifications(int index) { + if (justificationsBuilder_ == null) { + ensureJustificationsIsMutable(); + justifications_.remove(index); + onChanged(); + } else { + justificationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * Justifications for the place.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + public com.google.maps.places.v1.ContextualContent.Justification.Builder + getJustificationsBuilder(int index) { + return getJustificationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * Justifications for the place.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + public com.google.maps.places.v1.ContextualContent.JustificationOrBuilder + getJustificationsOrBuilder(int index) { + if (justificationsBuilder_ == null) { + return justifications_.get(index); + } else { + return justificationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * Justifications for the place.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + public java.util.List< + ? extends com.google.maps.places.v1.ContextualContent.JustificationOrBuilder> + getJustificationsOrBuilderList() { + if (justificationsBuilder_ != null) { + return justificationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(justifications_); + } + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * Justifications for the place.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + public com.google.maps.places.v1.ContextualContent.Justification.Builder + addJustificationsBuilder() { + return getJustificationsFieldBuilder() + .addBuilder( + com.google.maps.places.v1.ContextualContent.Justification.getDefaultInstance()); + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * Justifications for the place.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + public com.google.maps.places.v1.ContextualContent.Justification.Builder + addJustificationsBuilder(int index) { + return getJustificationsFieldBuilder() + .addBuilder( + index, + com.google.maps.places.v1.ContextualContent.Justification.getDefaultInstance()); + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * Justifications for the place.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + public java.util.List + getJustificationsBuilderList() { + return getJustificationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.ContextualContent.Justification, + com.google.maps.places.v1.ContextualContent.Justification.Builder, + com.google.maps.places.v1.ContextualContent.JustificationOrBuilder> + getJustificationsFieldBuilder() { + if (justificationsBuilder_ == null) { + justificationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.ContextualContent.Justification, + com.google.maps.places.v1.ContextualContent.Justification.Builder, + com.google.maps.places.v1.ContextualContent.JustificationOrBuilder>( + justifications_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + justifications_ = null; + } + return justificationsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.ContextualContent) + } + + // @@protoc_insertion_point(class_scope:google.maps.places.v1.ContextualContent) + private static final com.google.maps.places.v1.ContextualContent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.places.v1.ContextualContent(); + } + + public static com.google.maps.places.v1.ContextualContent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContextualContent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.maps.places.v1.ContextualContent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContextualContentOrBuilder.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContextualContentOrBuilder.java new file mode 100644 index 000000000000..5e95907ed05c --- /dev/null +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContextualContentOrBuilder.java @@ -0,0 +1,211 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/places/v1/contextual_content.proto + +// Protobuf Java Version: 3.25.3 +package com.google.maps.places.v1; + +public interface ContextualContentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.ContextualContent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of reviews about this place, contexual to the place query.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + java.util.List getReviewsList(); + /** + * + * + *
+   * List of reviews about this place, contexual to the place query.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + com.google.maps.places.v1.Review getReviews(int index); + /** + * + * + *
+   * List of reviews about this place, contexual to the place query.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + int getReviewsCount(); + /** + * + * + *
+   * List of reviews about this place, contexual to the place query.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + java.util.List getReviewsOrBuilderList(); + /** + * + * + *
+   * List of reviews about this place, contexual to the place query.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + com.google.maps.places.v1.ReviewOrBuilder getReviewsOrBuilder(int index); + + /** + * + * + *
+   * Information (including references) about photos of this place, contexual to
+   * the place query.
+   * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + java.util.List getPhotosList(); + /** + * + * + *
+   * Information (including references) about photos of this place, contexual to
+   * the place query.
+   * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + com.google.maps.places.v1.Photo getPhotos(int index); + /** + * + * + *
+   * Information (including references) about photos of this place, contexual to
+   * the place query.
+   * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + int getPhotosCount(); + /** + * + * + *
+   * Information (including references) about photos of this place, contexual to
+   * the place query.
+   * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + java.util.List getPhotosOrBuilderList(); + /** + * + * + *
+   * Information (including references) about photos of this place, contexual to
+   * the place query.
+   * 
+ * + * repeated .google.maps.places.v1.Photo photos = 2; + */ + com.google.maps.places.v1.PhotoOrBuilder getPhotosOrBuilder(int index); + + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * Justifications for the place.
+   * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + java.util.List getJustificationsList(); + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * Justifications for the place.
+   * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + com.google.maps.places.v1.ContextualContent.Justification getJustifications(int index); + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * Justifications for the place.
+   * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + int getJustificationsCount(); + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * Justifications for the place.
+   * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + java.util.List + getJustificationsOrBuilderList(); + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * Justifications for the place.
+   * 
+ * + * repeated .google.maps.places.v1.ContextualContent.Justification justifications = 3; + * + */ + com.google.maps.places.v1.ContextualContent.JustificationOrBuilder getJustificationsOrBuilder( + int index); +} diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContextualContentProto.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContextualContentProto.java new file mode 100644 index 000000000000..33488dda558d --- /dev/null +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ContextualContentProto.java @@ -0,0 +1,167 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/places/v1/contextual_content.proto + +// Protobuf Java Version: 3.25.3 +package com.google.maps.places.v1; + +public final class ContextualContentProto { + private ContextualContentProto() {} + + 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_maps_places_v1_ContextualContent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_places_v1_ContextualContent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_places_v1_ContextualContent_Justification_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_places_v1_ContextualContent_Justification_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_HighlightedTextRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_HighlightedTextRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_places_v1_ContextualContent_Justification_BusinessAvailabilityAttributesJustification_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_places_v1_ContextualContent_Justification_BusinessAvailabilityAttributesJustification_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/maps/places/v1/contextual_conte" + + "nt.proto\022\025google.maps.places.v1\032!google/" + + "maps/places/v1/photo.proto\032\"google/maps/" + + "places/v1/review.proto\"\204\010\n\021ContextualCon" + + "tent\022.\n\007reviews\030\001 \003(\0132\035.google.maps.plac" + + "es.v1.Review\022,\n\006photos\030\002 \003(\0132\034.google.ma" + + "ps.places.v1.Photo\022N\n\016justifications\030\003 \003" + + "(\01326.google.maps.places.v1.ContextualCon" + + "tent.Justification\032\300\006\n\rJustification\022j\n\024" + + "review_justification\030\001 \001(\0132J.google.maps" + + ".places.v1.ContextualContent.Justificati" + + "on.ReviewJustificationH\000\022\234\001\n.business_av" + + "ailability_attributes_justification\030\002 \001(" + + "\0132b.google.maps.places.v1.ContextualCont" + + "ent.Justification.BusinessAvailabilityAt" + + "tributesJustificationH\000\032\257\003\n\023ReviewJustif" + + "ication\022t\n\020highlighted_text\030\001 \001(\0132Z.goog" + + "le.maps.places.v1.ContextualContent.Just" + + "ification.ReviewJustification.Highlighte" + + "dText\022-\n\006review\030\002 \001(\0132\035.google.maps.plac" + + "es.v1.Review\032\362\001\n\017HighlightedText\022\014\n\004text" + + "\030\001 \001(\t\022\220\001\n\027highlighted_text_ranges\030\002 \003(\013" + + "2o.google.maps.places.v1.ContextualConte" + + "nt.Justification.ReviewJustification.Hig" + + "hlightedText.HighlightedTextRange\032>\n\024Hig" + + "hlightedTextRange\022\023\n\013start_index\030\001 \001(\005\022\021" + + "\n\tend_index\030\002 \001(\005\032a\n+BusinessAvailabilit" + + "yAttributesJustification\022\017\n\007takeout\030\001 \001(" + + "\010\022\020\n\010delivery\030\002 \001(\010\022\017\n\007dine_in\030\003 \001(\010B\017\n\r" + + "justificationB\252\001\n\031com.google.maps.places" + + ".v1B\026ContextualContentProtoP\001Z7cloud.goo" + + "gle.com/go/maps/places/apiv1/placespb;pl" + + "acespb\370\001\001\242\002\006GMPSV1\252\002\025Google.Maps.Places." + + "V1\312\002\025Google\\Maps\\Places\\V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.maps.places.v1.PhotoProto.getDescriptor(), + com.google.maps.places.v1.ReviewProto.getDescriptor(), + }); + internal_static_google_maps_places_v1_ContextualContent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_places_v1_ContextualContent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_places_v1_ContextualContent_descriptor, + new java.lang.String[] { + "Reviews", "Photos", "Justifications", + }); + internal_static_google_maps_places_v1_ContextualContent_Justification_descriptor = + internal_static_google_maps_places_v1_ContextualContent_descriptor.getNestedTypes().get(0); + internal_static_google_maps_places_v1_ContextualContent_Justification_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_places_v1_ContextualContent_Justification_descriptor, + new java.lang.String[] { + "ReviewJustification", "BusinessAvailabilityAttributesJustification", "Justification", + }); + internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_descriptor = + internal_static_google_maps_places_v1_ContextualContent_Justification_descriptor + .getNestedTypes() + .get(0); + internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_descriptor, + new java.lang.String[] { + "HighlightedText", "Review", + }); + internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_descriptor = + internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_descriptor + .getNestedTypes() + .get(0); + internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_descriptor, + new java.lang.String[] { + "Text", "HighlightedTextRanges", + }); + internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_HighlightedTextRange_descriptor = + internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_descriptor + .getNestedTypes() + .get(0); + internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_HighlightedTextRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_places_v1_ContextualContent_Justification_ReviewJustification_HighlightedText_HighlightedTextRange_descriptor, + new java.lang.String[] { + "StartIndex", "EndIndex", + }); + internal_static_google_maps_places_v1_ContextualContent_Justification_BusinessAvailabilityAttributesJustification_descriptor = + internal_static_google_maps_places_v1_ContextualContent_Justification_descriptor + .getNestedTypes() + .get(1); + internal_static_google_maps_places_v1_ContextualContent_Justification_BusinessAvailabilityAttributesJustification_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_places_v1_ContextualContent_Justification_BusinessAvailabilityAttributesJustification_descriptor, + new java.lang.String[] { + "Takeout", "Delivery", "DineIn", + }); + com.google.maps.places.v1.PhotoProto.getDescriptor(); + com.google.maps.places.v1.ReviewProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Place.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Place.java index 783bc4368ea9..ef0fd0b6843d 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Place.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Place.java @@ -13943,6 +13943,2379 @@ public com.google.maps.places.v1.Place.AccessibilityOptions getDefaultInstanceFo } } + public interface GenerativeSummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.GenerativeSummary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The overview of the place.
+     * 
+ * + * .google.type.LocalizedText overview = 1; + * + * @return Whether the overview field is set. + */ + boolean hasOverview(); + /** + * + * + *
+     * The overview of the place.
+     * 
+ * + * .google.type.LocalizedText overview = 1; + * + * @return The overview. + */ + com.google.type.LocalizedText getOverview(); + /** + * + * + *
+     * The overview of the place.
+     * 
+ * + * .google.type.LocalizedText overview = 1; + */ + com.google.type.LocalizedTextOrBuilder getOverviewOrBuilder(); + + /** + * + * + *
+     * The detailed description of the place.
+     * 
+ * + * .google.type.LocalizedText description = 2; + * + * @return Whether the description field is set. + */ + boolean hasDescription(); + /** + * + * + *
+     * The detailed description of the place.
+     * 
+ * + * .google.type.LocalizedText description = 2; + * + * @return The description. + */ + com.google.type.LocalizedText getDescription(); + /** + * + * + *
+     * The detailed description of the place.
+     * 
+ * + * .google.type.LocalizedText description = 2; + */ + com.google.type.LocalizedTextOrBuilder getDescriptionOrBuilder(); + + /** + * + * + *
+     * References that are used to generate the summary description.
+     * 
+ * + * .google.maps.places.v1.References references = 3; + * + * @return Whether the references field is set. + */ + boolean hasReferences(); + /** + * + * + *
+     * References that are used to generate the summary description.
+     * 
+ * + * .google.maps.places.v1.References references = 3; + * + * @return The references. + */ + com.google.maps.places.v1.References getReferences(); + /** + * + * + *
+     * References that are used to generate the summary description.
+     * 
+ * + * .google.maps.places.v1.References references = 3; + */ + com.google.maps.places.v1.ReferencesOrBuilder getReferencesOrBuilder(); + } + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * AI-generated summary of the place.
+   * 
+ * + * Protobuf type {@code google.maps.places.v1.Place.GenerativeSummary} + */ + public static final class GenerativeSummary extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.GenerativeSummary) + GenerativeSummaryOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeSummary.newBuilder() to construct. + private GenerativeSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GenerativeSummary() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenerativeSummary(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_GenerativeSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_GenerativeSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.Place.GenerativeSummary.class, + com.google.maps.places.v1.Place.GenerativeSummary.Builder.class); + } + + private int bitField0_; + public static final int OVERVIEW_FIELD_NUMBER = 1; + private com.google.type.LocalizedText overview_; + /** + * + * + *
+     * The overview of the place.
+     * 
+ * + * .google.type.LocalizedText overview = 1; + * + * @return Whether the overview field is set. + */ + @java.lang.Override + public boolean hasOverview() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The overview of the place.
+     * 
+ * + * .google.type.LocalizedText overview = 1; + * + * @return The overview. + */ + @java.lang.Override + public com.google.type.LocalizedText getOverview() { + return overview_ == null ? com.google.type.LocalizedText.getDefaultInstance() : overview_; + } + /** + * + * + *
+     * The overview of the place.
+     * 
+ * + * .google.type.LocalizedText overview = 1; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getOverviewOrBuilder() { + return overview_ == null ? com.google.type.LocalizedText.getDefaultInstance() : overview_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private com.google.type.LocalizedText description_; + /** + * + * + *
+     * The detailed description of the place.
+     * 
+ * + * .google.type.LocalizedText description = 2; + * + * @return Whether the description field is set. + */ + @java.lang.Override + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The detailed description of the place.
+     * 
+ * + * .google.type.LocalizedText description = 2; + * + * @return The description. + */ + @java.lang.Override + public com.google.type.LocalizedText getDescription() { + return description_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : description_; + } + /** + * + * + *
+     * The detailed description of the place.
+     * 
+ * + * .google.type.LocalizedText description = 2; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getDescriptionOrBuilder() { + return description_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : description_; + } + + public static final int REFERENCES_FIELD_NUMBER = 3; + private com.google.maps.places.v1.References references_; + /** + * + * + *
+     * References that are used to generate the summary description.
+     * 
+ * + * .google.maps.places.v1.References references = 3; + * + * @return Whether the references field is set. + */ + @java.lang.Override + public boolean hasReferences() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * References that are used to generate the summary description.
+     * 
+ * + * .google.maps.places.v1.References references = 3; + * + * @return The references. + */ + @java.lang.Override + public com.google.maps.places.v1.References getReferences() { + return references_ == null + ? com.google.maps.places.v1.References.getDefaultInstance() + : references_; + } + /** + * + * + *
+     * References that are used to generate the summary description.
+     * 
+ * + * .google.maps.places.v1.References references = 3; + */ + @java.lang.Override + public com.google.maps.places.v1.ReferencesOrBuilder getReferencesOrBuilder() { + return references_ == null + ? com.google.maps.places.v1.References.getDefaultInstance() + : references_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getOverview()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDescription()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getReferences()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOverview()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDescription()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getReferences()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.maps.places.v1.Place.GenerativeSummary)) { + return super.equals(obj); + } + com.google.maps.places.v1.Place.GenerativeSummary other = + (com.google.maps.places.v1.Place.GenerativeSummary) obj; + + if (hasOverview() != other.hasOverview()) return false; + if (hasOverview()) { + if (!getOverview().equals(other.getOverview())) return false; + } + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription().equals(other.getDescription())) return false; + } + if (hasReferences() != other.hasReferences()) return false; + if (hasReferences()) { + if (!getReferences().equals(other.getReferences())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOverview()) { + hash = (37 * hash) + OVERVIEW_FIELD_NUMBER; + hash = (53 * hash) + getOverview().hashCode(); + } + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + if (hasReferences()) { + hash = (37 * hash) + REFERENCES_FIELD_NUMBER; + hash = (53 * hash) + getReferences().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.places.v1.Place.GenerativeSummary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place.GenerativeSummary parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.GenerativeSummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place.GenerativeSummary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.GenerativeSummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place.GenerativeSummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.GenerativeSummary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.Place.GenerativeSummary 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.maps.places.v1.Place.GenerativeSummary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.Place.GenerativeSummary 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.maps.places.v1.Place.GenerativeSummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.Place.GenerativeSummary 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.maps.places.v1.Place.GenerativeSummary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * AI-generated summary of the place.
+     * 
+ * + * Protobuf type {@code google.maps.places.v1.Place.GenerativeSummary} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.GenerativeSummary) + com.google.maps.places.v1.Place.GenerativeSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_GenerativeSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_GenerativeSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.Place.GenerativeSummary.class, + com.google.maps.places.v1.Place.GenerativeSummary.Builder.class); + } + + // Construct using com.google.maps.places.v1.Place.GenerativeSummary.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOverviewFieldBuilder(); + getDescriptionFieldBuilder(); + getReferencesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + overview_ = null; + if (overviewBuilder_ != null) { + overviewBuilder_.dispose(); + overviewBuilder_ = null; + } + description_ = null; + if (descriptionBuilder_ != null) { + descriptionBuilder_.dispose(); + descriptionBuilder_ = null; + } + references_ = null; + if (referencesBuilder_ != null) { + referencesBuilder_.dispose(); + referencesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_GenerativeSummary_descriptor; + } + + @java.lang.Override + public com.google.maps.places.v1.Place.GenerativeSummary getDefaultInstanceForType() { + return com.google.maps.places.v1.Place.GenerativeSummary.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.places.v1.Place.GenerativeSummary build() { + com.google.maps.places.v1.Place.GenerativeSummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.places.v1.Place.GenerativeSummary buildPartial() { + com.google.maps.places.v1.Place.GenerativeSummary result = + new com.google.maps.places.v1.Place.GenerativeSummary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.places.v1.Place.GenerativeSummary result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.overview_ = overviewBuilder_ == null ? overview_ : overviewBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = + descriptionBuilder_ == null ? description_ : descriptionBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.references_ = + referencesBuilder_ == null ? references_ : referencesBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.places.v1.Place.GenerativeSummary) { + return mergeFrom((com.google.maps.places.v1.Place.GenerativeSummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.places.v1.Place.GenerativeSummary other) { + if (other == com.google.maps.places.v1.Place.GenerativeSummary.getDefaultInstance()) + return this; + if (other.hasOverview()) { + mergeOverview(other.getOverview()); + } + if (other.hasDescription()) { + mergeDescription(other.getDescription()); + } + if (other.hasReferences()) { + mergeReferences(other.getReferences()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getOverviewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDescriptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getReferencesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.type.LocalizedText overview_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + overviewBuilder_; + /** + * + * + *
+       * The overview of the place.
+       * 
+ * + * .google.type.LocalizedText overview = 1; + * + * @return Whether the overview field is set. + */ + public boolean hasOverview() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * The overview of the place.
+       * 
+ * + * .google.type.LocalizedText overview = 1; + * + * @return The overview. + */ + public com.google.type.LocalizedText getOverview() { + if (overviewBuilder_ == null) { + return overview_ == null ? com.google.type.LocalizedText.getDefaultInstance() : overview_; + } else { + return overviewBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The overview of the place.
+       * 
+ * + * .google.type.LocalizedText overview = 1; + */ + public Builder setOverview(com.google.type.LocalizedText value) { + if (overviewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + overview_ = value; + } else { + overviewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The overview of the place.
+       * 
+ * + * .google.type.LocalizedText overview = 1; + */ + public Builder setOverview(com.google.type.LocalizedText.Builder builderForValue) { + if (overviewBuilder_ == null) { + overview_ = builderForValue.build(); + } else { + overviewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The overview of the place.
+       * 
+ * + * .google.type.LocalizedText overview = 1; + */ + public Builder mergeOverview(com.google.type.LocalizedText value) { + if (overviewBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && overview_ != null + && overview_ != com.google.type.LocalizedText.getDefaultInstance()) { + getOverviewBuilder().mergeFrom(value); + } else { + overview_ = value; + } + } else { + overviewBuilder_.mergeFrom(value); + } + if (overview_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The overview of the place.
+       * 
+ * + * .google.type.LocalizedText overview = 1; + */ + public Builder clearOverview() { + bitField0_ = (bitField0_ & ~0x00000001); + overview_ = null; + if (overviewBuilder_ != null) { + overviewBuilder_.dispose(); + overviewBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * The overview of the place.
+       * 
+ * + * .google.type.LocalizedText overview = 1; + */ + public com.google.type.LocalizedText.Builder getOverviewBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getOverviewFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The overview of the place.
+       * 
+ * + * .google.type.LocalizedText overview = 1; + */ + public com.google.type.LocalizedTextOrBuilder getOverviewOrBuilder() { + if (overviewBuilder_ != null) { + return overviewBuilder_.getMessageOrBuilder(); + } else { + return overview_ == null ? com.google.type.LocalizedText.getDefaultInstance() : overview_; + } + } + /** + * + * + *
+       * The overview of the place.
+       * 
+ * + * .google.type.LocalizedText overview = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + getOverviewFieldBuilder() { + if (overviewBuilder_ == null) { + overviewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getOverview(), getParentForChildren(), isClean()); + overview_ = null; + } + return overviewBuilder_; + } + + private com.google.type.LocalizedText description_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + descriptionBuilder_; + /** + * + * + *
+       * The detailed description of the place.
+       * 
+ * + * .google.type.LocalizedText description = 2; + * + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * The detailed description of the place.
+       * 
+ * + * .google.type.LocalizedText description = 2; + * + * @return The description. + */ + public com.google.type.LocalizedText getDescription() { + if (descriptionBuilder_ == null) { + return description_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : description_; + } else { + return descriptionBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The detailed description of the place.
+       * 
+ * + * .google.type.LocalizedText description = 2; + */ + public Builder setDescription(com.google.type.LocalizedText value) { + if (descriptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + } else { + descriptionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The detailed description of the place.
+       * 
+ * + * .google.type.LocalizedText description = 2; + */ + public Builder setDescription(com.google.type.LocalizedText.Builder builderForValue) { + if (descriptionBuilder_ == null) { + description_ = builderForValue.build(); + } else { + descriptionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The detailed description of the place.
+       * 
+ * + * .google.type.LocalizedText description = 2; + */ + public Builder mergeDescription(com.google.type.LocalizedText value) { + if (descriptionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && description_ != null + && description_ != com.google.type.LocalizedText.getDefaultInstance()) { + getDescriptionBuilder().mergeFrom(value); + } else { + description_ = value; + } + } else { + descriptionBuilder_.mergeFrom(value); + } + if (description_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The detailed description of the place.
+       * 
+ * + * .google.type.LocalizedText description = 2; + */ + public Builder clearDescription() { + bitField0_ = (bitField0_ & ~0x00000002); + description_ = null; + if (descriptionBuilder_ != null) { + descriptionBuilder_.dispose(); + descriptionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * The detailed description of the place.
+       * 
+ * + * .google.type.LocalizedText description = 2; + */ + public com.google.type.LocalizedText.Builder getDescriptionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDescriptionFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The detailed description of the place.
+       * 
+ * + * .google.type.LocalizedText description = 2; + */ + public com.google.type.LocalizedTextOrBuilder getDescriptionOrBuilder() { + if (descriptionBuilder_ != null) { + return descriptionBuilder_.getMessageOrBuilder(); + } else { + return description_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : description_; + } + } + /** + * + * + *
+       * The detailed description of the place.
+       * 
+ * + * .google.type.LocalizedText description = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + getDescriptionFieldBuilder() { + if (descriptionBuilder_ == null) { + descriptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getDescription(), getParentForChildren(), isClean()); + description_ = null; + } + return descriptionBuilder_; + } + + private com.google.maps.places.v1.References references_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.References, + com.google.maps.places.v1.References.Builder, + com.google.maps.places.v1.ReferencesOrBuilder> + referencesBuilder_; + /** + * + * + *
+       * References that are used to generate the summary description.
+       * 
+ * + * .google.maps.places.v1.References references = 3; + * + * @return Whether the references field is set. + */ + public boolean hasReferences() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+       * References that are used to generate the summary description.
+       * 
+ * + * .google.maps.places.v1.References references = 3; + * + * @return The references. + */ + public com.google.maps.places.v1.References getReferences() { + if (referencesBuilder_ == null) { + return references_ == null + ? com.google.maps.places.v1.References.getDefaultInstance() + : references_; + } else { + return referencesBuilder_.getMessage(); + } + } + /** + * + * + *
+       * References that are used to generate the summary description.
+       * 
+ * + * .google.maps.places.v1.References references = 3; + */ + public Builder setReferences(com.google.maps.places.v1.References value) { + if (referencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + references_ = value; + } else { + referencesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * References that are used to generate the summary description.
+       * 
+ * + * .google.maps.places.v1.References references = 3; + */ + public Builder setReferences(com.google.maps.places.v1.References.Builder builderForValue) { + if (referencesBuilder_ == null) { + references_ = builderForValue.build(); + } else { + referencesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * References that are used to generate the summary description.
+       * 
+ * + * .google.maps.places.v1.References references = 3; + */ + public Builder mergeReferences(com.google.maps.places.v1.References value) { + if (referencesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && references_ != null + && references_ != com.google.maps.places.v1.References.getDefaultInstance()) { + getReferencesBuilder().mergeFrom(value); + } else { + references_ = value; + } + } else { + referencesBuilder_.mergeFrom(value); + } + if (references_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+       * References that are used to generate the summary description.
+       * 
+ * + * .google.maps.places.v1.References references = 3; + */ + public Builder clearReferences() { + bitField0_ = (bitField0_ & ~0x00000004); + references_ = null; + if (referencesBuilder_ != null) { + referencesBuilder_.dispose(); + referencesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * References that are used to generate the summary description.
+       * 
+ * + * .google.maps.places.v1.References references = 3; + */ + public com.google.maps.places.v1.References.Builder getReferencesBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getReferencesFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * References that are used to generate the summary description.
+       * 
+ * + * .google.maps.places.v1.References references = 3; + */ + public com.google.maps.places.v1.ReferencesOrBuilder getReferencesOrBuilder() { + if (referencesBuilder_ != null) { + return referencesBuilder_.getMessageOrBuilder(); + } else { + return references_ == null + ? com.google.maps.places.v1.References.getDefaultInstance() + : references_; + } + } + /** + * + * + *
+       * References that are used to generate the summary description.
+       * 
+ * + * .google.maps.places.v1.References references = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.References, + com.google.maps.places.v1.References.Builder, + com.google.maps.places.v1.ReferencesOrBuilder> + getReferencesFieldBuilder() { + if (referencesBuilder_ == null) { + referencesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.References, + com.google.maps.places.v1.References.Builder, + com.google.maps.places.v1.ReferencesOrBuilder>( + getReferences(), getParentForChildren(), isClean()); + references_ = null; + } + return referencesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.Place.GenerativeSummary) + } + + // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.GenerativeSummary) + private static final com.google.maps.places.v1.Place.GenerativeSummary DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.GenerativeSummary(); + } + + public static com.google.maps.places.v1.Place.GenerativeSummary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeSummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.maps.places.v1.Place.GenerativeSummary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AreaSummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.AreaSummary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Content blocks that compose the area summary. Each block has a separate
+     * topic about the area.
+     * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + java.util.List getContentBlocksList(); + /** + * + * + *
+     * Content blocks that compose the area summary. Each block has a separate
+     * topic about the area.
+     * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + com.google.maps.places.v1.ContentBlock getContentBlocks(int index); + /** + * + * + *
+     * Content blocks that compose the area summary. Each block has a separate
+     * topic about the area.
+     * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + int getContentBlocksCount(); + /** + * + * + *
+     * Content blocks that compose the area summary. Each block has a separate
+     * topic about the area.
+     * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + java.util.List + getContentBlocksOrBuilderList(); + /** + * + * + *
+     * Content blocks that compose the area summary. Each block has a separate
+     * topic about the area.
+     * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + com.google.maps.places.v1.ContentBlockOrBuilder getContentBlocksOrBuilder(int index); + } + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * AI-generated summary of the area that the place is in.
+   * 
+ * + * Protobuf type {@code google.maps.places.v1.Place.AreaSummary} + */ + public static final class AreaSummary extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.AreaSummary) + AreaSummaryOrBuilder { + private static final long serialVersionUID = 0L; + // Use AreaSummary.newBuilder() to construct. + private AreaSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AreaSummary() { + contentBlocks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AreaSummary(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_AreaSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_AreaSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.Place.AreaSummary.class, + com.google.maps.places.v1.Place.AreaSummary.Builder.class); + } + + public static final int CONTENT_BLOCKS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List contentBlocks_; + /** + * + * + *
+     * Content blocks that compose the area summary. Each block has a separate
+     * topic about the area.
+     * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + @java.lang.Override + public java.util.List getContentBlocksList() { + return contentBlocks_; + } + /** + * + * + *
+     * Content blocks that compose the area summary. Each block has a separate
+     * topic about the area.
+     * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + @java.lang.Override + public java.util.List + getContentBlocksOrBuilderList() { + return contentBlocks_; + } + /** + * + * + *
+     * Content blocks that compose the area summary. Each block has a separate
+     * topic about the area.
+     * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + @java.lang.Override + public int getContentBlocksCount() { + return contentBlocks_.size(); + } + /** + * + * + *
+     * Content blocks that compose the area summary. Each block has a separate
+     * topic about the area.
+     * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + @java.lang.Override + public com.google.maps.places.v1.ContentBlock getContentBlocks(int index) { + return contentBlocks_.get(index); + } + /** + * + * + *
+     * Content blocks that compose the area summary. Each block has a separate
+     * topic about the area.
+     * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + @java.lang.Override + public com.google.maps.places.v1.ContentBlockOrBuilder getContentBlocksOrBuilder(int index) { + return contentBlocks_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < contentBlocks_.size(); i++) { + output.writeMessage(4, contentBlocks_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < contentBlocks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, contentBlocks_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.maps.places.v1.Place.AreaSummary)) { + return super.equals(obj); + } + com.google.maps.places.v1.Place.AreaSummary other = + (com.google.maps.places.v1.Place.AreaSummary) obj; + + if (!getContentBlocksList().equals(other.getContentBlocksList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getContentBlocksCount() > 0) { + hash = (37 * hash) + CONTENT_BLOCKS_FIELD_NUMBER; + hash = (53 * hash) + getContentBlocksList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.places.v1.Place.AreaSummary parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place.AreaSummary parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.AreaSummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place.AreaSummary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.AreaSummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place.AreaSummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.Place.AreaSummary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.Place.AreaSummary 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.maps.places.v1.Place.AreaSummary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.Place.AreaSummary 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.maps.places.v1.Place.AreaSummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.Place.AreaSummary 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.maps.places.v1.Place.AreaSummary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * AI-generated summary of the area that the place is in.
+     * 
+ * + * Protobuf type {@code google.maps.places.v1.Place.AreaSummary} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.AreaSummary) + com.google.maps.places.v1.Place.AreaSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_AreaSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_AreaSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.Place.AreaSummary.class, + com.google.maps.places.v1.Place.AreaSummary.Builder.class); + } + + // Construct using com.google.maps.places.v1.Place.AreaSummary.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (contentBlocksBuilder_ == null) { + contentBlocks_ = java.util.Collections.emptyList(); + } else { + contentBlocks_ = null; + contentBlocksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_AreaSummary_descriptor; + } + + @java.lang.Override + public com.google.maps.places.v1.Place.AreaSummary getDefaultInstanceForType() { + return com.google.maps.places.v1.Place.AreaSummary.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.places.v1.Place.AreaSummary build() { + com.google.maps.places.v1.Place.AreaSummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.places.v1.Place.AreaSummary buildPartial() { + com.google.maps.places.v1.Place.AreaSummary result = + new com.google.maps.places.v1.Place.AreaSummary(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.maps.places.v1.Place.AreaSummary result) { + if (contentBlocksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + contentBlocks_ = java.util.Collections.unmodifiableList(contentBlocks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.contentBlocks_ = contentBlocks_; + } else { + result.contentBlocks_ = contentBlocksBuilder_.build(); + } + } + + private void buildPartial0(com.google.maps.places.v1.Place.AreaSummary result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.places.v1.Place.AreaSummary) { + return mergeFrom((com.google.maps.places.v1.Place.AreaSummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.places.v1.Place.AreaSummary other) { + if (other == com.google.maps.places.v1.Place.AreaSummary.getDefaultInstance()) return this; + if (contentBlocksBuilder_ == null) { + if (!other.contentBlocks_.isEmpty()) { + if (contentBlocks_.isEmpty()) { + contentBlocks_ = other.contentBlocks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureContentBlocksIsMutable(); + contentBlocks_.addAll(other.contentBlocks_); + } + onChanged(); + } + } else { + if (!other.contentBlocks_.isEmpty()) { + if (contentBlocksBuilder_.isEmpty()) { + contentBlocksBuilder_.dispose(); + contentBlocksBuilder_ = null; + contentBlocks_ = other.contentBlocks_; + bitField0_ = (bitField0_ & ~0x00000001); + contentBlocksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContentBlocksFieldBuilder() + : null; + } else { + contentBlocksBuilder_.addAllMessages(other.contentBlocks_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 34: + { + com.google.maps.places.v1.ContentBlock m = + input.readMessage( + com.google.maps.places.v1.ContentBlock.parser(), extensionRegistry); + if (contentBlocksBuilder_ == null) { + ensureContentBlocksIsMutable(); + contentBlocks_.add(m); + } else { + contentBlocksBuilder_.addMessage(m); + } + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List contentBlocks_ = + java.util.Collections.emptyList(); + + private void ensureContentBlocksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + contentBlocks_ = + new java.util.ArrayList(contentBlocks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder> + contentBlocksBuilder_; + + /** + * + * + *
+       * Content blocks that compose the area summary. Each block has a separate
+       * topic about the area.
+       * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + public java.util.List getContentBlocksList() { + if (contentBlocksBuilder_ == null) { + return java.util.Collections.unmodifiableList(contentBlocks_); + } else { + return contentBlocksBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Content blocks that compose the area summary. Each block has a separate
+       * topic about the area.
+       * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + public int getContentBlocksCount() { + if (contentBlocksBuilder_ == null) { + return contentBlocks_.size(); + } else { + return contentBlocksBuilder_.getCount(); + } + } + /** + * + * + *
+       * Content blocks that compose the area summary. Each block has a separate
+       * topic about the area.
+       * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + public com.google.maps.places.v1.ContentBlock getContentBlocks(int index) { + if (contentBlocksBuilder_ == null) { + return contentBlocks_.get(index); + } else { + return contentBlocksBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Content blocks that compose the area summary. Each block has a separate
+       * topic about the area.
+       * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + public Builder setContentBlocks(int index, com.google.maps.places.v1.ContentBlock value) { + if (contentBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentBlocksIsMutable(); + contentBlocks_.set(index, value); + onChanged(); + } else { + contentBlocksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Content blocks that compose the area summary. Each block has a separate
+       * topic about the area.
+       * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + public Builder setContentBlocks( + int index, com.google.maps.places.v1.ContentBlock.Builder builderForValue) { + if (contentBlocksBuilder_ == null) { + ensureContentBlocksIsMutable(); + contentBlocks_.set(index, builderForValue.build()); + onChanged(); + } else { + contentBlocksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Content blocks that compose the area summary. Each block has a separate
+       * topic about the area.
+       * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + public Builder addContentBlocks(com.google.maps.places.v1.ContentBlock value) { + if (contentBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentBlocksIsMutable(); + contentBlocks_.add(value); + onChanged(); + } else { + contentBlocksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Content blocks that compose the area summary. Each block has a separate
+       * topic about the area.
+       * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + public Builder addContentBlocks(int index, com.google.maps.places.v1.ContentBlock value) { + if (contentBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentBlocksIsMutable(); + contentBlocks_.add(index, value); + onChanged(); + } else { + contentBlocksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Content blocks that compose the area summary. Each block has a separate
+       * topic about the area.
+       * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + public Builder addContentBlocks( + com.google.maps.places.v1.ContentBlock.Builder builderForValue) { + if (contentBlocksBuilder_ == null) { + ensureContentBlocksIsMutable(); + contentBlocks_.add(builderForValue.build()); + onChanged(); + } else { + contentBlocksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Content blocks that compose the area summary. Each block has a separate
+       * topic about the area.
+       * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + public Builder addContentBlocks( + int index, com.google.maps.places.v1.ContentBlock.Builder builderForValue) { + if (contentBlocksBuilder_ == null) { + ensureContentBlocksIsMutable(); + contentBlocks_.add(index, builderForValue.build()); + onChanged(); + } else { + contentBlocksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Content blocks that compose the area summary. Each block has a separate
+       * topic about the area.
+       * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + public Builder addAllContentBlocks( + java.lang.Iterable values) { + if (contentBlocksBuilder_ == null) { + ensureContentBlocksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contentBlocks_); + onChanged(); + } else { + contentBlocksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Content blocks that compose the area summary. Each block has a separate
+       * topic about the area.
+       * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + public Builder clearContentBlocks() { + if (contentBlocksBuilder_ == null) { + contentBlocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + contentBlocksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Content blocks that compose the area summary. Each block has a separate
+       * topic about the area.
+       * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + public Builder removeContentBlocks(int index) { + if (contentBlocksBuilder_ == null) { + ensureContentBlocksIsMutable(); + contentBlocks_.remove(index); + onChanged(); + } else { + contentBlocksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Content blocks that compose the area summary. Each block has a separate
+       * topic about the area.
+       * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + public com.google.maps.places.v1.ContentBlock.Builder getContentBlocksBuilder(int index) { + return getContentBlocksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Content blocks that compose the area summary. Each block has a separate
+       * topic about the area.
+       * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + public com.google.maps.places.v1.ContentBlockOrBuilder getContentBlocksOrBuilder(int index) { + if (contentBlocksBuilder_ == null) { + return contentBlocks_.get(index); + } else { + return contentBlocksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Content blocks that compose the area summary. Each block has a separate
+       * topic about the area.
+       * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + public java.util.List + getContentBlocksOrBuilderList() { + if (contentBlocksBuilder_ != null) { + return contentBlocksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contentBlocks_); + } + } + /** + * + * + *
+       * Content blocks that compose the area summary. Each block has a separate
+       * topic about the area.
+       * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + public com.google.maps.places.v1.ContentBlock.Builder addContentBlocksBuilder() { + return getContentBlocksFieldBuilder() + .addBuilder(com.google.maps.places.v1.ContentBlock.getDefaultInstance()); + } + /** + * + * + *
+       * Content blocks that compose the area summary. Each block has a separate
+       * topic about the area.
+       * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + public com.google.maps.places.v1.ContentBlock.Builder addContentBlocksBuilder(int index) { + return getContentBlocksFieldBuilder() + .addBuilder(index, com.google.maps.places.v1.ContentBlock.getDefaultInstance()); + } + /** + * + * + *
+       * Content blocks that compose the area summary. Each block has a separate
+       * topic about the area.
+       * 
+ * + * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + */ + public java.util.List + getContentBlocksBuilderList() { + return getContentBlocksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder> + getContentBlocksFieldBuilder() { + if (contentBlocksBuilder_ == null) { + contentBlocksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder>( + contentBlocks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + contentBlocks_ = null; + } + return contentBlocksBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.Place.AreaSummary) + } + + // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.AreaSummary) + private static final com.google.maps.places.v1.Place.AreaSummary DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.AreaSummary(); + } + + public static com.google.maps.places.v1.Place.AreaSummary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AreaSummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.maps.places.v1.Place.AreaSummary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; private int bitField1_; public static final int NAME_FIELD_NUMBER = 1; @@ -16882,16 +19255,141 @@ public com.google.maps.places.v1.EVChargeOptions getEvChargeOptions() { * * *
-   * Information of ev charging options.
+   * Information of ev charging options.
+   * 
+ * + * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; + */ + @java.lang.Override + public com.google.maps.places.v1.EVChargeOptionsOrBuilder getEvChargeOptionsOrBuilder() { + return evChargeOptions_ == null + ? com.google.maps.places.v1.EVChargeOptions.getDefaultInstance() + : evChargeOptions_; + } + + public static final int GENERATIVE_SUMMARY_FIELD_NUMBER = 80; + private com.google.maps.places.v1.Place.GenerativeSummary generativeSummary_; + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * AI-generated summary of the place.
+   * 
+ * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + * + * @return Whether the generativeSummary field is set. + */ + @java.lang.Override + public boolean hasGenerativeSummary() { + return ((bitField1_ & 0x00000040) != 0); + } + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * AI-generated summary of the place.
+   * 
+ * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + * + * @return The generativeSummary. + */ + @java.lang.Override + public com.google.maps.places.v1.Place.GenerativeSummary getGenerativeSummary() { + return generativeSummary_ == null + ? com.google.maps.places.v1.Place.GenerativeSummary.getDefaultInstance() + : generativeSummary_; + } + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * AI-generated summary of the place.
+   * 
+ * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.GenerativeSummaryOrBuilder + getGenerativeSummaryOrBuilder() { + return generativeSummary_ == null + ? com.google.maps.places.v1.Place.GenerativeSummary.getDefaultInstance() + : generativeSummary_; + } + + public static final int AREA_SUMMARY_FIELD_NUMBER = 81; + private com.google.maps.places.v1.Place.AreaSummary areaSummary_; + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * AI-generated summary of the area that the place is in.
+   * 
+ * + * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + * + * @return Whether the areaSummary field is set. + */ + @java.lang.Override + public boolean hasAreaSummary() { + return ((bitField1_ & 0x00000080) != 0); + } + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * AI-generated summary of the area that the place is in.
+   * 
+ * + * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + * + * @return The areaSummary. + */ + @java.lang.Override + public com.google.maps.places.v1.Place.AreaSummary getAreaSummary() { + return areaSummary_ == null + ? com.google.maps.places.v1.Place.AreaSummary.getDefaultInstance() + : areaSummary_; + } + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * AI-generated summary of the area that the place is in.
    * 
* - * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; + * .google.maps.places.v1.Place.AreaSummary area_summary = 81; */ @java.lang.Override - public com.google.maps.places.v1.EVChargeOptionsOrBuilder getEvChargeOptionsOrBuilder() { - return evChargeOptions_ == null - ? com.google.maps.places.v1.EVChargeOptions.getDefaultInstance() - : evChargeOptions_; + public com.google.maps.places.v1.Place.AreaSummaryOrBuilder getAreaSummaryOrBuilder() { + return areaSummary_ == null + ? com.google.maps.places.v1.Place.AreaSummary.getDefaultInstance() + : areaSummary_; } private byte memoizedIsInitialized = -1; @@ -17092,6 +19590,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField1_ & 0x00000020) != 0)) { output.writeMessage(79, getEvChargeOptions()); } + if (((bitField1_ & 0x00000040) != 0)) { + output.writeMessage(80, getGenerativeSummary()); + } + if (((bitField1_ & 0x00000080) != 0)) { + output.writeMessage(81, getAreaSummary()); + } getUnknownFields().writeTo(output); } @@ -17300,6 +19804,12 @@ public int getSerializedSize() { if (((bitField1_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(79, getEvChargeOptions()); } + if (((bitField1_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(80, getGenerativeSummary()); + } + if (((bitField1_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(81, getAreaSummary()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -17493,6 +20003,14 @@ public boolean equals(final java.lang.Object obj) { if (hasEvChargeOptions()) { if (!getEvChargeOptions().equals(other.getEvChargeOptions())) return false; } + if (hasGenerativeSummary() != other.hasGenerativeSummary()) return false; + if (hasGenerativeSummary()) { + if (!getGenerativeSummary().equals(other.getGenerativeSummary())) return false; + } + if (hasAreaSummary() != other.hasAreaSummary()) return false; + if (hasAreaSummary()) { + if (!getAreaSummary().equals(other.getAreaSummary())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -17720,6 +20238,14 @@ public int hashCode() { hash = (37 * hash) + EV_CHARGE_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getEvChargeOptions().hashCode(); } + if (hasGenerativeSummary()) { + hash = (37 * hash) + GENERATIVE_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getGenerativeSummary().hashCode(); + } + if (hasAreaSummary()) { + hash = (37 * hash) + AREA_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getAreaSummary().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -17878,6 +20404,8 @@ private void maybeForceBuilderInitialization() { getAccessibilityOptionsFieldBuilder(); getFuelOptionsFieldBuilder(); getEvChargeOptionsFieldBuilder(); + getGenerativeSummaryFieldBuilder(); + getAreaSummaryFieldBuilder(); } } @@ -18041,6 +20569,16 @@ public Builder clear() { evChargeOptionsBuilder_.dispose(); evChargeOptionsBuilder_ = null; } + generativeSummary_ = null; + if (generativeSummaryBuilder_ != null) { + generativeSummaryBuilder_.dispose(); + generativeSummaryBuilder_ = null; + } + areaSummary_ = null; + if (areaSummaryBuilder_ != null) { + areaSummaryBuilder_.dispose(); + areaSummaryBuilder_ = null; + } return this; } @@ -18375,6 +20913,18 @@ private void buildPartial1(com.google.maps.places.v1.Place result) { evChargeOptionsBuilder_ == null ? evChargeOptions_ : evChargeOptionsBuilder_.build(); to_bitField1_ |= 0x00000020; } + if (((from_bitField1_ & 0x20000000) != 0)) { + result.generativeSummary_ = + generativeSummaryBuilder_ == null + ? generativeSummary_ + : generativeSummaryBuilder_.build(); + to_bitField1_ |= 0x00000040; + } + if (((from_bitField1_ & 0x40000000) != 0)) { + result.areaSummary_ = + areaSummaryBuilder_ == null ? areaSummary_ : areaSummaryBuilder_.build(); + to_bitField1_ |= 0x00000080; + } result.bitField0_ |= to_bitField0_; result.bitField1_ |= to_bitField1_; } @@ -18808,6 +21358,12 @@ public Builder mergeFrom(com.google.maps.places.v1.Place other) { if (other.hasEvChargeOptions()) { mergeEvChargeOptions(other.getEvChargeOptions()); } + if (other.hasGenerativeSummary()) { + mergeGenerativeSummary(other.getGenerativeSummary()); + } + if (other.hasAreaSummary()) { + mergeAreaSummary(other.getAreaSummary()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -19254,6 +21810,19 @@ public Builder mergeFrom( bitField1_ |= 0x10000000; break; } // case 634 + case 642: + { + input.readMessage( + getGenerativeSummaryFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x20000000; + break; + } // case 642 + case 650: + { + input.readMessage(getAreaSummaryFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x40000000; + break; + } // case 650 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -28300,6 +30869,452 @@ public com.google.maps.places.v1.EVChargeOptionsOrBuilder getEvChargeOptionsOrBu return evChargeOptionsBuilder_; } + private com.google.maps.places.v1.Place.GenerativeSummary generativeSummary_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.GenerativeSummary, + com.google.maps.places.v1.Place.GenerativeSummary.Builder, + com.google.maps.places.v1.Place.GenerativeSummaryOrBuilder> + generativeSummaryBuilder_; + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * AI-generated summary of the place.
+     * 
+ * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + * + * @return Whether the generativeSummary field is set. + */ + public boolean hasGenerativeSummary() { + return ((bitField1_ & 0x20000000) != 0); + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * AI-generated summary of the place.
+     * 
+ * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + * + * @return The generativeSummary. + */ + public com.google.maps.places.v1.Place.GenerativeSummary getGenerativeSummary() { + if (generativeSummaryBuilder_ == null) { + return generativeSummary_ == null + ? com.google.maps.places.v1.Place.GenerativeSummary.getDefaultInstance() + : generativeSummary_; + } else { + return generativeSummaryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * AI-generated summary of the place.
+     * 
+ * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + */ + public Builder setGenerativeSummary(com.google.maps.places.v1.Place.GenerativeSummary value) { + if (generativeSummaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generativeSummary_ = value; + } else { + generativeSummaryBuilder_.setMessage(value); + } + bitField1_ |= 0x20000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * AI-generated summary of the place.
+     * 
+ * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + */ + public Builder setGenerativeSummary( + com.google.maps.places.v1.Place.GenerativeSummary.Builder builderForValue) { + if (generativeSummaryBuilder_ == null) { + generativeSummary_ = builderForValue.build(); + } else { + generativeSummaryBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x20000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * AI-generated summary of the place.
+     * 
+ * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + */ + public Builder mergeGenerativeSummary(com.google.maps.places.v1.Place.GenerativeSummary value) { + if (generativeSummaryBuilder_ == null) { + if (((bitField1_ & 0x20000000) != 0) + && generativeSummary_ != null + && generativeSummary_ + != com.google.maps.places.v1.Place.GenerativeSummary.getDefaultInstance()) { + getGenerativeSummaryBuilder().mergeFrom(value); + } else { + generativeSummary_ = value; + } + } else { + generativeSummaryBuilder_.mergeFrom(value); + } + if (generativeSummary_ != null) { + bitField1_ |= 0x20000000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * AI-generated summary of the place.
+     * 
+ * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + */ + public Builder clearGenerativeSummary() { + bitField1_ = (bitField1_ & ~0x20000000); + generativeSummary_ = null; + if (generativeSummaryBuilder_ != null) { + generativeSummaryBuilder_.dispose(); + generativeSummaryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * AI-generated summary of the place.
+     * 
+ * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + */ + public com.google.maps.places.v1.Place.GenerativeSummary.Builder getGenerativeSummaryBuilder() { + bitField1_ |= 0x20000000; + onChanged(); + return getGenerativeSummaryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * AI-generated summary of the place.
+     * 
+ * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + */ + public com.google.maps.places.v1.Place.GenerativeSummaryOrBuilder + getGenerativeSummaryOrBuilder() { + if (generativeSummaryBuilder_ != null) { + return generativeSummaryBuilder_.getMessageOrBuilder(); + } else { + return generativeSummary_ == null + ? com.google.maps.places.v1.Place.GenerativeSummary.getDefaultInstance() + : generativeSummary_; + } + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * AI-generated summary of the place.
+     * 
+ * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.GenerativeSummary, + com.google.maps.places.v1.Place.GenerativeSummary.Builder, + com.google.maps.places.v1.Place.GenerativeSummaryOrBuilder> + getGenerativeSummaryFieldBuilder() { + if (generativeSummaryBuilder_ == null) { + generativeSummaryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.GenerativeSummary, + com.google.maps.places.v1.Place.GenerativeSummary.Builder, + com.google.maps.places.v1.Place.GenerativeSummaryOrBuilder>( + getGenerativeSummary(), getParentForChildren(), isClean()); + generativeSummary_ = null; + } + return generativeSummaryBuilder_; + } + + private com.google.maps.places.v1.Place.AreaSummary areaSummary_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.AreaSummary, + com.google.maps.places.v1.Place.AreaSummary.Builder, + com.google.maps.places.v1.Place.AreaSummaryOrBuilder> + areaSummaryBuilder_; + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * AI-generated summary of the area that the place is in.
+     * 
+ * + * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + * + * @return Whether the areaSummary field is set. + */ + public boolean hasAreaSummary() { + return ((bitField1_ & 0x40000000) != 0); + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * AI-generated summary of the area that the place is in.
+     * 
+ * + * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + * + * @return The areaSummary. + */ + public com.google.maps.places.v1.Place.AreaSummary getAreaSummary() { + if (areaSummaryBuilder_ == null) { + return areaSummary_ == null + ? com.google.maps.places.v1.Place.AreaSummary.getDefaultInstance() + : areaSummary_; + } else { + return areaSummaryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * AI-generated summary of the area that the place is in.
+     * 
+ * + * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + */ + public Builder setAreaSummary(com.google.maps.places.v1.Place.AreaSummary value) { + if (areaSummaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + areaSummary_ = value; + } else { + areaSummaryBuilder_.setMessage(value); + } + bitField1_ |= 0x40000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * AI-generated summary of the area that the place is in.
+     * 
+ * + * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + */ + public Builder setAreaSummary( + com.google.maps.places.v1.Place.AreaSummary.Builder builderForValue) { + if (areaSummaryBuilder_ == null) { + areaSummary_ = builderForValue.build(); + } else { + areaSummaryBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x40000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * AI-generated summary of the area that the place is in.
+     * 
+ * + * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + */ + public Builder mergeAreaSummary(com.google.maps.places.v1.Place.AreaSummary value) { + if (areaSummaryBuilder_ == null) { + if (((bitField1_ & 0x40000000) != 0) + && areaSummary_ != null + && areaSummary_ != com.google.maps.places.v1.Place.AreaSummary.getDefaultInstance()) { + getAreaSummaryBuilder().mergeFrom(value); + } else { + areaSummary_ = value; + } + } else { + areaSummaryBuilder_.mergeFrom(value); + } + if (areaSummary_ != null) { + bitField1_ |= 0x40000000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * AI-generated summary of the area that the place is in.
+     * 
+ * + * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + */ + public Builder clearAreaSummary() { + bitField1_ = (bitField1_ & ~0x40000000); + areaSummary_ = null; + if (areaSummaryBuilder_ != null) { + areaSummaryBuilder_.dispose(); + areaSummaryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * AI-generated summary of the area that the place is in.
+     * 
+ * + * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + */ + public com.google.maps.places.v1.Place.AreaSummary.Builder getAreaSummaryBuilder() { + bitField1_ |= 0x40000000; + onChanged(); + return getAreaSummaryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * AI-generated summary of the area that the place is in.
+     * 
+ * + * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + */ + public com.google.maps.places.v1.Place.AreaSummaryOrBuilder getAreaSummaryOrBuilder() { + if (areaSummaryBuilder_ != null) { + return areaSummaryBuilder_.getMessageOrBuilder(); + } else { + return areaSummary_ == null + ? com.google.maps.places.v1.Place.AreaSummary.getDefaultInstance() + : areaSummary_; + } + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * AI-generated summary of the area that the place is in.
+     * 
+ * + * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.AreaSummary, + com.google.maps.places.v1.Place.AreaSummary.Builder, + com.google.maps.places.v1.Place.AreaSummaryOrBuilder> + getAreaSummaryFieldBuilder() { + if (areaSummaryBuilder_ == null) { + areaSummaryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.AreaSummary, + com.google.maps.places.v1.Place.AreaSummary.Builder, + com.google.maps.places.v1.Place.AreaSummaryOrBuilder>( + getAreaSummary(), getParentForChildren(), isClean()); + areaSummary_ = null; + } + return areaSummaryBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceOrBuilder.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceOrBuilder.java index 2b1066c89924..a3ac74108d55 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceOrBuilder.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceOrBuilder.java @@ -2099,4 +2099,98 @@ com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularSecondaryOpening * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; */ com.google.maps.places.v1.EVChargeOptionsOrBuilder getEvChargeOptionsOrBuilder(); + + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * AI-generated summary of the place.
+   * 
+ * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + * + * @return Whether the generativeSummary field is set. + */ + boolean hasGenerativeSummary(); + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * AI-generated summary of the place.
+   * 
+ * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + * + * @return The generativeSummary. + */ + com.google.maps.places.v1.Place.GenerativeSummary getGenerativeSummary(); + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * AI-generated summary of the place.
+   * 
+ * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + */ + com.google.maps.places.v1.Place.GenerativeSummaryOrBuilder getGenerativeSummaryOrBuilder(); + + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * AI-generated summary of the area that the place is in.
+   * 
+ * + * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + * + * @return Whether the areaSummary field is set. + */ + boolean hasAreaSummary(); + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * AI-generated summary of the area that the place is in.
+   * 
+ * + * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + * + * @return The areaSummary. + */ + com.google.maps.places.v1.Place.AreaSummary getAreaSummary(); + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * AI-generated summary of the area that the place is in.
+   * 
+ * + * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + */ + com.google.maps.places.v1.Place.AreaSummaryOrBuilder getAreaSummaryOrBuilder(); } diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceProto.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceProto.java index 7c460bf0cf66..7080871f06f7 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceProto.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceProto.java @@ -76,6 +76,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_maps_places_v1_Place_AccessibilityOptions_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_maps_places_v1_Place_AccessibilityOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_places_v1_Place_GenerativeSummary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_places_v1_Place_GenerativeSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_places_v1_Place_AreaSummary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_places_v1_Place_AreaSummary_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -87,155 +95,167 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n!google/maps/places/v1/place.proto\022\025goo" + "gle.maps.places.v1\032\031google/api/resource." - + "proto\032\036google/geo/type/viewport.proto\032\'g" - + "oogle/maps/places/v1/ev_charging.proto\032(" - + "google/maps/places/v1/fuel_options.proto" - + "\032!google/maps/places/v1/photo.proto\032\"goo" - + "gle/maps/places/v1/review.proto\032\026google/" - + "type/date.proto\032\030google/type/latlng.prot" - + "o\032 google/type/localized_text.proto\"\314)\n\005" - + "Place\022\014\n\004name\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\0220\n\014displ" - + "ay_name\030\037 \001(\0132\032.google.type.LocalizedTex" - + "t\022\r\n\005types\030\005 \003(\t\022\024\n\014primary_type\0302 \001(\t\022=" - + "\n\031primary_type_display_name\030 \001(\0132\032.goog" - + "le.type.LocalizedText\022\035\n\025national_phone_" - + "number\030\007 \001(\t\022\"\n\032international_phone_numb" - + "er\030\010 \001(\t\022\031\n\021formatted_address\030\t \001(\t\022\037\n\027s" - + "hort_formatted_address\0303 \001(\t\022I\n\022address_" - + "components\030\n \003(\0132-.google.maps.places.v1" - + ".Place.AddressComponent\0228\n\tplus_code\030\013 \001" - + "(\0132%.google.maps.places.v1.Place.PlusCod" - + "e\022%\n\010location\030\014 \001(\0132\023.google.type.LatLng" - + "\022+\n\010viewport\030\r \001(\0132\031.google.geo.type.Vie" - + "wport\022\016\n\006rating\030\016 \001(\001\022\027\n\017google_maps_uri" - + "\030\017 \001(\t\022\023\n\013website_uri\030\020 \001(\t\022.\n\007reviews\0305" - + " \003(\0132\035.google.maps.places.v1.Review\022H\n\025r" - + "egular_opening_hours\030\025 \001(\0132).google.maps" - + ".places.v1.Place.OpeningHours\022\037\n\022utc_off" - + "set_minutes\030\026 \001(\005H\000\210\001\001\022,\n\006photos\0306 \003(\0132\034" - + ".google.maps.places.v1.Photo\022\032\n\022adr_form" - + "at_address\030\030 \001(\t\022D\n\017business_status\030\031 \001(" - + "\0162+.google.maps.places.v1.Place.Business" - + "Status\0226\n\013price_level\030\032 \001(\0162!.google.map" - + "s.places.v1.PriceLevel\022>\n\014attributions\030\033" - + " \003(\0132(.google.maps.places.v1.Place.Attri" - + "bution\022\036\n\021user_rating_count\030\034 \001(\005H\001\210\001\001\022\032" - + "\n\022icon_mask_base_uri\030\035 \001(\t\022\035\n\025icon_backg" - + "round_color\030\036 \001(\t\022\024\n\007takeout\030! \001(\010H\002\210\001\001\022" - + "\025\n\010delivery\030\" \001(\010H\003\210\001\001\022\024\n\007dine_in\030# \001(\010H" - + "\004\210\001\001\022\034\n\017curbside_pickup\030$ \001(\010H\005\210\001\001\022\027\n\nre" - + "servable\030& \001(\010H\006\210\001\001\022\035\n\020serves_breakfast\030" - + "\' \001(\010H\007\210\001\001\022\031\n\014serves_lunch\030( \001(\010H\010\210\001\001\022\032\n" - + "\rserves_dinner\030) \001(\010H\t\210\001\001\022\030\n\013serves_beer" - + "\030* \001(\010H\n\210\001\001\022\030\n\013serves_wine\030+ \001(\010H\013\210\001\001\022\032\n" - + "\rserves_brunch\030, \001(\010H\014\210\001\001\022#\n\026serves_vege" - + "tarian_food\030- \001(\010H\r\210\001\001\022H\n\025current_openin" - + "g_hours\030. \001(\0132).google.maps.places.v1.Pl" - + "ace.OpeningHours\022R\n\037current_secondary_op" - + "ening_hours\030/ \003(\0132).google.maps.places.v" - + "1.Place.OpeningHours\022R\n\037regular_secondar" - + "y_opening_hours\0301 \003(\0132).google.maps.plac" - + "es.v1.Place.OpeningHours\0225\n\021editorial_su" - + "mmary\0304 \001(\0132\032.google.type.LocalizedText\022" - + "\034\n\017outdoor_seating\0307 \001(\010H\016\210\001\001\022\027\n\nlive_mu" - + "sic\0308 \001(\010H\017\210\001\001\022\036\n\021menu_for_children\0309 \001(" - + "\010H\020\210\001\001\022\035\n\020serves_cocktails\030: \001(\010H\021\210\001\001\022\033\n" - + "\016serves_dessert\030; \001(\010H\022\210\001\001\022\032\n\rserves_cof" - + "fee\030< \001(\010H\023\210\001\001\022\036\n\021good_for_children\030> \001(" - + "\010H\024\210\001\001\022\030\n\013allows_dogs\030? \001(\010H\025\210\001\001\022\025\n\010rest" - + "room\030@ \001(\010H\026\210\001\001\022\034\n\017good_for_groups\030A \001(\010" - + "H\027\210\001\001\022%\n\030good_for_watching_sports\030B \001(\010H" - + "\030\210\001\001\022D\n\017payment_options\030C \001(\0132+.google.m" - + "aps.places.v1.Place.PaymentOptions\022D\n\017pa" - + "rking_options\030F \001(\0132+.google.maps.places" - + ".v1.Place.ParkingOptions\022E\n\020sub_destinat" - + "ions\030G \003(\0132+.google.maps.places.v1.Place" - + ".SubDestination\022U\n\025accessibility_options" - + "\030H \001(\01321.google.maps.places.v1.Place.Acc" - + "essibilityOptionsH\031\210\001\001\0228\n\014fuel_options\030N" - + " \001(\0132\".google.maps.places.v1.FuelOptions" - + "\022A\n\021ev_charge_options\030O \001(\0132&.google.map" - + "s.places.v1.EVChargeOptions\032_\n\020AddressCo" - + "mponent\022\021\n\tlong_text\030\001 \001(\t\022\022\n\nshort_text" - + "\030\002 \001(\t\022\r\n\005types\030\003 \003(\t\022\025\n\rlanguage_code\030\004" - + " \001(\t\0326\n\010PlusCode\022\023\n\013global_code\030\001 \001(\t\022\025\n" - + "\rcompound_code\030\002 \001(\t\032\224\007\n\014OpeningHours\022\025\n" - + "\010open_now\030\001 \001(\010H\000\210\001\001\022A\n\007periods\030\002 \003(\01320." - + "google.maps.places.v1.Place.OpeningHours" - + ".Period\022\034\n\024weekday_descriptions\030\003 \003(\t\022Z\n" - + "\024secondary_hours_type\030\004 \001(\0162<.google.map" - + "s.places.v1.Place.OpeningHours.Secondary" - + "HoursType\022J\n\014special_days\030\005 \003(\01324.google" - + ".maps.places.v1.Place.OpeningHours.Speci" - + "alDay\032\251\002\n\006Period\022D\n\004open\030\001 \001(\01326.google." - + "maps.places.v1.Place.OpeningHours.Period" - + ".Point\022E\n\005close\030\002 \001(\01326.google.maps.plac" - + "es.v1.Place.OpeningHours.Period.Point\032\221\001" - + "\n\005Point\022\020\n\003day\030\001 \001(\005H\000\210\001\001\022\021\n\004hour\030\002 \001(\005H" - + "\001\210\001\001\022\023\n\006minute\030\003 \001(\005H\002\210\001\001\022\037\n\004date\030\006 \001(\0132" - + "\021.google.type.Date\022\021\n\ttruncated\030\005 \001(\010B\006\n" - + "\004_dayB\007\n\005_hourB\t\n\007_minute\032-\n\nSpecialDay\022" - + "\037\n\004date\030\001 \001(\0132\021.google.type.Date\"\373\001\n\022Sec" - + "ondaryHoursType\022$\n SECONDARY_HOURS_TYPE_" - + "UNSPECIFIED\020\000\022\021\n\rDRIVE_THROUGH\020\001\022\016\n\nHAPP" - + "Y_HOUR\020\002\022\014\n\010DELIVERY\020\003\022\013\n\007TAKEOUT\020\004\022\013\n\007K" - + "ITCHEN\020\005\022\r\n\tBREAKFAST\020\006\022\t\n\005LUNCH\020\007\022\n\n\006DI" - + "NNER\020\010\022\n\n\006BRUNCH\020\t\022\n\n\006PICKUP\020\n\022\n\n\006ACCESS" - + "\020\013\022\020\n\014SENIOR_HOURS\020\014\022\030\n\024ONLINE_SERVICE_H" - + "OURS\020\rB\013\n\t_open_now\0325\n\013Attribution\022\020\n\010pr" - + "ovider\030\001 \001(\t\022\024\n\014provider_uri\030\002 \001(\t\032\346\001\n\016P" - + "aymentOptions\022!\n\024accepts_credit_cards\030\001 " - + "\001(\010H\000\210\001\001\022 \n\023accepts_debit_cards\030\002 \001(\010H\001\210" - + "\001\001\022\036\n\021accepts_cash_only\030\003 \001(\010H\002\210\001\001\022\030\n\013ac" - + "cepts_nfc\030\004 \001(\010H\003\210\001\001B\027\n\025_accepts_credit_" - + "cardsB\026\n\024_accepts_debit_cardsB\024\n\022_accept" - + "s_cash_onlyB\016\n\014_accepts_nfc\032\216\003\n\016ParkingO" - + "ptions\022\035\n\020free_parking_lot\030\001 \001(\010H\000\210\001\001\022\035\n" - + "\020paid_parking_lot\030\002 \001(\010H\001\210\001\001\022 \n\023free_str" - + "eet_parking\030\003 \001(\010H\002\210\001\001\022 \n\023paid_street_pa" - + "rking\030\004 \001(\010H\003\210\001\001\022\032\n\rvalet_parking\030\005 \001(\010H" - + "\004\210\001\001\022 \n\023free_garage_parking\030\006 \001(\010H\005\210\001\001\022 " - + "\n\023paid_garage_parking\030\007 \001(\010H\006\210\001\001B\023\n\021_fre" - + "e_parking_lotB\023\n\021_paid_parking_lotB\026\n\024_f" - + "ree_street_parkingB\026\n\024_paid_street_parki" - + "ngB\020\n\016_valet_parkingB\026\n\024_free_garage_par" - + "kingB\026\n\024_paid_garage_parking\032L\n\016SubDesti" - + "nation\022.\n\004name\030\001 \001(\tB \372A\035\n\033places.google" - + "apis.com/Place\022\n\n\002id\030\002 \001(\t\032\322\002\n\024Accessibi" - + "lityOptions\022*\n\035wheelchair_accessible_par" - + "king\030\001 \001(\010H\000\210\001\001\022+\n\036wheelchair_accessible" - + "_entrance\030\002 \001(\010H\001\210\001\001\022+\n\036wheelchair_acces" - + "sible_restroom\030\003 \001(\010H\002\210\001\001\022*\n\035wheelchair_" - + "accessible_seating\030\004 \001(\010H\003\210\001\001B \n\036_wheelc" - + "hair_accessible_parkingB!\n\037_wheelchair_a" - + "ccessible_entranceB!\n\037_wheelchair_access" - + "ible_restroomB \n\036_wheelchair_accessible_" - + "seating\"r\n\016BusinessStatus\022\037\n\033BUSINESS_ST" - + "ATUS_UNSPECIFIED\020\000\022\017\n\013OPERATIONAL\020\001\022\026\n\022C" - + "LOSED_TEMPORARILY\020\002\022\026\n\022CLOSED_PERMANENTL" - + "Y\020\003:B\352A?\n\033places.googleapis.com/Place\022\021p" - + "laces/{place_id}*\006places2\005placeB\025\n\023_utc_" - + "offset_minutesB\024\n\022_user_rating_countB\n\n\010" - + "_takeoutB\013\n\t_deliveryB\n\n\010_dine_inB\022\n\020_cu" - + "rbside_pickupB\r\n\013_reservableB\023\n\021_serves_" - + "breakfastB\017\n\r_serves_lunchB\020\n\016_serves_di" - + "nnerB\016\n\014_serves_beerB\016\n\014_serves_wineB\020\n\016" - + "_serves_brunchB\031\n\027_serves_vegetarian_foo" - + "dB\022\n\020_outdoor_seatingB\r\n\013_live_musicB\024\n\022" - + "_menu_for_childrenB\023\n\021_serves_cocktailsB" - + "\021\n\017_serves_dessertB\020\n\016_serves_coffeeB\024\n\022" - + "_good_for_childrenB\016\n\014_allows_dogsB\013\n\t_r" - + "estroomB\022\n\020_good_for_groupsB\033\n\031_good_for" - + "_watching_sportsB\030\n\026_accessibility_optio" - + "ns*\261\001\n\nPriceLevel\022\033\n\027PRICE_LEVEL_UNSPECI" - + "FIED\020\000\022\024\n\020PRICE_LEVEL_FREE\020\001\022\033\n\027PRICE_LE" - + "VEL_INEXPENSIVE\020\002\022\030\n\024PRICE_LEVEL_MODERAT" - + "E\020\003\022\031\n\025PRICE_LEVEL_EXPENSIVE\020\004\022\036\n\032PRICE_" - + "LEVEL_VERY_EXPENSIVE\020\005B\236\001\n\031com.google.ma" - + "ps.places.v1B\nPlaceProtoP\001Z7cloud.google" - + ".com/go/maps/places/apiv1/placespb;place" - + "spb\370\001\001\242\002\006GMPSV1\252\002\025Google.Maps.Places.V1\312" - + "\002\025Google\\Maps\\Places\\V1b\006proto3" + + "proto\032\036google/geo/type/viewport.proto\032)g" + + "oogle/maps/places/v1/content_block.proto" + + "\032\'google/maps/places/v1/ev_charging.prot" + + "o\032(google/maps/places/v1/fuel_options.pr" + + "oto\032!google/maps/places/v1/photo.proto\032%" + + "google/maps/places/v1/reference.proto\032\"g" + + "oogle/maps/places/v1/review.proto\032\026googl" + + "e/type/date.proto\032\030google/type/latlng.pr" + + "oto\032 google/type/localized_text.proto\"\320," + + "\n\005Place\022\014\n\004name\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\0220\n\014dis" + + "play_name\030\037 \001(\0132\032.google.type.LocalizedT" + + "ext\022\r\n\005types\030\005 \003(\t\022\024\n\014primary_type\0302 \001(\t" + + "\022=\n\031primary_type_display_name\030 \001(\0132\032.go" + + "ogle.type.LocalizedText\022\035\n\025national_phon" + + "e_number\030\007 \001(\t\022\"\n\032international_phone_nu" + + "mber\030\010 \001(\t\022\031\n\021formatted_address\030\t \001(\t\022\037\n" + + "\027short_formatted_address\0303 \001(\t\022I\n\022addres" + + "s_components\030\n \003(\0132-.google.maps.places." + + "v1.Place.AddressComponent\0228\n\tplus_code\030\013" + + " \001(\0132%.google.maps.places.v1.Place.PlusC" + + "ode\022%\n\010location\030\014 \001(\0132\023.google.type.LatL" + + "ng\022+\n\010viewport\030\r \001(\0132\031.google.geo.type.V" + + "iewport\022\016\n\006rating\030\016 \001(\001\022\027\n\017google_maps_u" + + "ri\030\017 \001(\t\022\023\n\013website_uri\030\020 \001(\t\022.\n\007reviews" + + "\0305 \003(\0132\035.google.maps.places.v1.Review\022H\n" + + "\025regular_opening_hours\030\025 \001(\0132).google.ma" + + "ps.places.v1.Place.OpeningHours\022\037\n\022utc_o" + + "ffset_minutes\030\026 \001(\005H\000\210\001\001\022,\n\006photos\0306 \003(\013" + + "2\034.google.maps.places.v1.Photo\022\032\n\022adr_fo" + + "rmat_address\030\030 \001(\t\022D\n\017business_status\030\031 " + + "\001(\0162+.google.maps.places.v1.Place.Busine" + + "ssStatus\0226\n\013price_level\030\032 \001(\0162!.google.m" + + "aps.places.v1.PriceLevel\022>\n\014attributions" + + "\030\033 \003(\0132(.google.maps.places.v1.Place.Att" + + "ribution\022\036\n\021user_rating_count\030\034 \001(\005H\001\210\001\001" + + "\022\032\n\022icon_mask_base_uri\030\035 \001(\t\022\035\n\025icon_bac" + + "kground_color\030\036 \001(\t\022\024\n\007takeout\030! \001(\010H\002\210\001" + + "\001\022\025\n\010delivery\030\" \001(\010H\003\210\001\001\022\024\n\007dine_in\030# \001(" + + "\010H\004\210\001\001\022\034\n\017curbside_pickup\030$ \001(\010H\005\210\001\001\022\027\n\n" + + "reservable\030& \001(\010H\006\210\001\001\022\035\n\020serves_breakfas" + + "t\030\' \001(\010H\007\210\001\001\022\031\n\014serves_lunch\030( \001(\010H\010\210\001\001\022" + + "\032\n\rserves_dinner\030) \001(\010H\t\210\001\001\022\030\n\013serves_be" + + "er\030* \001(\010H\n\210\001\001\022\030\n\013serves_wine\030+ \001(\010H\013\210\001\001\022" + + "\032\n\rserves_brunch\030, \001(\010H\014\210\001\001\022#\n\026serves_ve" + + "getarian_food\030- \001(\010H\r\210\001\001\022H\n\025current_open" + + "ing_hours\030. \001(\0132).google.maps.places.v1." + + "Place.OpeningHours\022R\n\037current_secondary_" + + "opening_hours\030/ \003(\0132).google.maps.places" + + ".v1.Place.OpeningHours\022R\n\037regular_second" + + "ary_opening_hours\0301 \003(\0132).google.maps.pl" + + "aces.v1.Place.OpeningHours\0225\n\021editorial_" + + "summary\0304 \001(\0132\032.google.type.LocalizedTex" + + "t\022\034\n\017outdoor_seating\0307 \001(\010H\016\210\001\001\022\027\n\nlive_" + + "music\0308 \001(\010H\017\210\001\001\022\036\n\021menu_for_children\0309 " + + "\001(\010H\020\210\001\001\022\035\n\020serves_cocktails\030: \001(\010H\021\210\001\001\022" + + "\033\n\016serves_dessert\030; \001(\010H\022\210\001\001\022\032\n\rserves_c" + + "offee\030< \001(\010H\023\210\001\001\022\036\n\021good_for_children\030> " + + "\001(\010H\024\210\001\001\022\030\n\013allows_dogs\030? \001(\010H\025\210\001\001\022\025\n\010re" + + "stroom\030@ \001(\010H\026\210\001\001\022\034\n\017good_for_groups\030A \001" + + "(\010H\027\210\001\001\022%\n\030good_for_watching_sports\030B \001(" + + "\010H\030\210\001\001\022D\n\017payment_options\030C \001(\0132+.google" + + ".maps.places.v1.Place.PaymentOptions\022D\n\017" + + "parking_options\030F \001(\0132+.google.maps.plac" + + "es.v1.Place.ParkingOptions\022E\n\020sub_destin" + + "ations\030G \003(\0132+.google.maps.places.v1.Pla" + + "ce.SubDestination\022U\n\025accessibility_optio" + + "ns\030H \001(\01321.google.maps.places.v1.Place.A" + + "ccessibilityOptionsH\031\210\001\001\0228\n\014fuel_options" + + "\030N \001(\0132\".google.maps.places.v1.FuelOptio" + + "ns\022A\n\021ev_charge_options\030O \001(\0132&.google.m" + + "aps.places.v1.EVChargeOptions\022J\n\022generat" + + "ive_summary\030P \001(\0132..google.maps.places.v" + + "1.Place.GenerativeSummary\022>\n\014area_summar" + + "y\030Q \001(\0132(.google.maps.places.v1.Place.Ar" + + "eaSummary\032_\n\020AddressComponent\022\021\n\tlong_te" + + "xt\030\001 \001(\t\022\022\n\nshort_text\030\002 \001(\t\022\r\n\005types\030\003 " + + "\003(\t\022\025\n\rlanguage_code\030\004 \001(\t\0326\n\010PlusCode\022\023" + + "\n\013global_code\030\001 \001(\t\022\025\n\rcompound_code\030\002 \001" + + "(\t\032\224\007\n\014OpeningHours\022\025\n\010open_now\030\001 \001(\010H\000\210" + + "\001\001\022A\n\007periods\030\002 \003(\01320.google.maps.places" + + ".v1.Place.OpeningHours.Period\022\034\n\024weekday" + + "_descriptions\030\003 \003(\t\022Z\n\024secondary_hours_t" + + "ype\030\004 \001(\0162<.google.maps.places.v1.Place." + + "OpeningHours.SecondaryHoursType\022J\n\014speci" + + "al_days\030\005 \003(\01324.google.maps.places.v1.Pl" + + "ace.OpeningHours.SpecialDay\032\251\002\n\006Period\022D" + + "\n\004open\030\001 \001(\01326.google.maps.places.v1.Pla" + + "ce.OpeningHours.Period.Point\022E\n\005close\030\002 " + + "\001(\01326.google.maps.places.v1.Place.Openin" + + "gHours.Period.Point\032\221\001\n\005Point\022\020\n\003day\030\001 \001" + + "(\005H\000\210\001\001\022\021\n\004hour\030\002 \001(\005H\001\210\001\001\022\023\n\006minute\030\003 \001" + + "(\005H\002\210\001\001\022\037\n\004date\030\006 \001(\0132\021.google.type.Date" + + "\022\021\n\ttruncated\030\005 \001(\010B\006\n\004_dayB\007\n\005_hourB\t\n\007" + + "_minute\032-\n\nSpecialDay\022\037\n\004date\030\001 \001(\0132\021.go" + + "ogle.type.Date\"\373\001\n\022SecondaryHoursType\022$\n" + + " SECONDARY_HOURS_TYPE_UNSPECIFIED\020\000\022\021\n\rD" + + "RIVE_THROUGH\020\001\022\016\n\nHAPPY_HOUR\020\002\022\014\n\010DELIVE" + + "RY\020\003\022\013\n\007TAKEOUT\020\004\022\013\n\007KITCHEN\020\005\022\r\n\tBREAKF" + + "AST\020\006\022\t\n\005LUNCH\020\007\022\n\n\006DINNER\020\010\022\n\n\006BRUNCH\020\t" + + "\022\n\n\006PICKUP\020\n\022\n\n\006ACCESS\020\013\022\020\n\014SENIOR_HOURS" + + "\020\014\022\030\n\024ONLINE_SERVICE_HOURS\020\rB\013\n\t_open_no" + + "w\0325\n\013Attribution\022\020\n\010provider\030\001 \001(\t\022\024\n\014pr" + + "ovider_uri\030\002 \001(\t\032\346\001\n\016PaymentOptions\022!\n\024a" + + "ccepts_credit_cards\030\001 \001(\010H\000\210\001\001\022 \n\023accept" + + "s_debit_cards\030\002 \001(\010H\001\210\001\001\022\036\n\021accepts_cash" + + "_only\030\003 \001(\010H\002\210\001\001\022\030\n\013accepts_nfc\030\004 \001(\010H\003\210" + + "\001\001B\027\n\025_accepts_credit_cardsB\026\n\024_accepts_" + + "debit_cardsB\024\n\022_accepts_cash_onlyB\016\n\014_ac" + + "cepts_nfc\032\216\003\n\016ParkingOptions\022\035\n\020free_par" + + "king_lot\030\001 \001(\010H\000\210\001\001\022\035\n\020paid_parking_lot\030" + + "\002 \001(\010H\001\210\001\001\022 \n\023free_street_parking\030\003 \001(\010H" + + "\002\210\001\001\022 \n\023paid_street_parking\030\004 \001(\010H\003\210\001\001\022\032" + + "\n\rvalet_parking\030\005 \001(\010H\004\210\001\001\022 \n\023free_garag" + + "e_parking\030\006 \001(\010H\005\210\001\001\022 \n\023paid_garage_park" + + "ing\030\007 \001(\010H\006\210\001\001B\023\n\021_free_parking_lotB\023\n\021_" + + "paid_parking_lotB\026\n\024_free_street_parking" + + "B\026\n\024_paid_street_parkingB\020\n\016_valet_parki" + + "ngB\026\n\024_free_garage_parkingB\026\n\024_paid_gara" + + "ge_parking\032L\n\016SubDestination\022.\n\004name\030\001 \001" + + "(\tB \372A\035\n\033places.googleapis.com/Place\022\n\n\002" + + "id\030\002 \001(\t\032\322\002\n\024AccessibilityOptions\022*\n\035whe" + + "elchair_accessible_parking\030\001 \001(\010H\000\210\001\001\022+\n" + + "\036wheelchair_accessible_entrance\030\002 \001(\010H\001\210" + + "\001\001\022+\n\036wheelchair_accessible_restroom\030\003 \001" + + "(\010H\002\210\001\001\022*\n\035wheelchair_accessible_seating" + + "\030\004 \001(\010H\003\210\001\001B \n\036_wheelchair_accessible_pa" + + "rkingB!\n\037_wheelchair_accessible_entrance" + + "B!\n\037_wheelchair_accessible_restroomB \n\036_" + + "wheelchair_accessible_seating\032\251\001\n\021Genera" + + "tiveSummary\022,\n\010overview\030\001 \001(\0132\032.google.t" + + "ype.LocalizedText\022/\n\013description\030\002 \001(\0132\032" + + ".google.type.LocalizedText\0225\n\nreferences" + + "\030\003 \001(\0132!.google.maps.places.v1.Reference" + + "s\032J\n\013AreaSummary\022;\n\016content_blocks\030\004 \003(\013" + + "2#.google.maps.places.v1.ContentBlock\"r\n" + + "\016BusinessStatus\022\037\n\033BUSINESS_STATUS_UNSPE" + + "CIFIED\020\000\022\017\n\013OPERATIONAL\020\001\022\026\n\022CLOSED_TEMP" + + "ORARILY\020\002\022\026\n\022CLOSED_PERMANENTLY\020\003:B\352A?\n\033" + + "places.googleapis.com/Place\022\021places/{pla" + + "ce_id}*\006places2\005placeB\025\n\023_utc_offset_min" + + "utesB\024\n\022_user_rating_countB\n\n\010_takeoutB\013" + + "\n\t_deliveryB\n\n\010_dine_inB\022\n\020_curbside_pic" + + "kupB\r\n\013_reservableB\023\n\021_serves_breakfastB" + + "\017\n\r_serves_lunchB\020\n\016_serves_dinnerB\016\n\014_s" + + "erves_beerB\016\n\014_serves_wineB\020\n\016_serves_br" + + "unchB\031\n\027_serves_vegetarian_foodB\022\n\020_outd" + + "oor_seatingB\r\n\013_live_musicB\024\n\022_menu_for_" + + "childrenB\023\n\021_serves_cocktailsB\021\n\017_serves" + + "_dessertB\020\n\016_serves_coffeeB\024\n\022_good_for_" + + "childrenB\016\n\014_allows_dogsB\013\n\t_restroomB\022\n" + + "\020_good_for_groupsB\033\n\031_good_for_watching_" + + "sportsB\030\n\026_accessibility_options*\261\001\n\nPri" + + "ceLevel\022\033\n\027PRICE_LEVEL_UNSPECIFIED\020\000\022\024\n\020" + + "PRICE_LEVEL_FREE\020\001\022\033\n\027PRICE_LEVEL_INEXPE" + + "NSIVE\020\002\022\030\n\024PRICE_LEVEL_MODERATE\020\003\022\031\n\025PRI" + + "CE_LEVEL_EXPENSIVE\020\004\022\036\n\032PRICE_LEVEL_VERY" + + "_EXPENSIVE\020\005B\236\001\n\031com.google.maps.places." + + "v1B\nPlaceProtoP\001Z7cloud.google.com/go/ma" + + "ps/places/apiv1/placespb;placespb\370\001\001\242\002\006G" + + "MPSV1\252\002\025Google.Maps.Places.V1\312\002\025Google\\M" + + "aps\\Places\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -243,9 +263,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.ResourceProto.getDescriptor(), com.google.geo.type.ViewportProto.getDescriptor(), + com.google.maps.places.v1.ContentBlockProto.getDescriptor(), com.google.maps.places.v1.EvChargingProto.getDescriptor(), com.google.maps.places.v1.FuelOptionsProto.getDescriptor(), com.google.maps.places.v1.PhotoProto.getDescriptor(), + com.google.maps.places.v1.ReferenceProto.getDescriptor(), com.google.maps.places.v1.ReviewProto.getDescriptor(), com.google.type.DateProto.getDescriptor(), com.google.type.LatLngProto.getDescriptor(), @@ -318,6 +340,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AccessibilityOptions", "FuelOptions", "EvChargeOptions", + "GenerativeSummary", + "AreaSummary", }); internal_static_google_maps_places_v1_Place_AddressComponent_descriptor = internal_static_google_maps_places_v1_Place_descriptor.getNestedTypes().get(0); @@ -418,6 +442,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WheelchairAccessibleRestroom", "WheelchairAccessibleSeating", }); + internal_static_google_maps_places_v1_Place_GenerativeSummary_descriptor = + internal_static_google_maps_places_v1_Place_descriptor.getNestedTypes().get(8); + internal_static_google_maps_places_v1_Place_GenerativeSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_places_v1_Place_GenerativeSummary_descriptor, + new java.lang.String[] { + "Overview", "Description", "References", + }); + internal_static_google_maps_places_v1_Place_AreaSummary_descriptor = + internal_static_google_maps_places_v1_Place_descriptor.getNestedTypes().get(9); + internal_static_google_maps_places_v1_Place_AreaSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_places_v1_Place_AreaSummary_descriptor, + new java.lang.String[] { + "ContentBlocks", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ResourceProto.resource); @@ -426,9 +466,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.ResourceProto.getDescriptor(); com.google.geo.type.ViewportProto.getDescriptor(); + com.google.maps.places.v1.ContentBlockProto.getDescriptor(); com.google.maps.places.v1.EvChargingProto.getDescriptor(); com.google.maps.places.v1.FuelOptionsProto.getDescriptor(); com.google.maps.places.v1.PhotoProto.getDescriptor(); + com.google.maps.places.v1.ReferenceProto.getDescriptor(); com.google.maps.places.v1.ReviewProto.getDescriptor(); com.google.type.DateProto.getDescriptor(); com.google.type.LatLngProto.getDescriptor(); diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlacesServiceProto.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlacesServiceProto.java index 9c3d47bdec6f..813b4be8aceb 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlacesServiceProto.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlacesServiceProto.java @@ -126,52 +126,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "annotations.proto\032\027google/api/client.pro" + "to\032\037google/api/field_behavior.proto\032\031goo" + "gle/api/resource.proto\032\036google/geo/type/" - + "viewport.proto\032\'google/maps/places/v1/ev" - + "_charging.proto\032$google/maps/places/v1/g" - + "eometry.proto\032!google/maps/places/v1/pla" - + "ce.proto\032\030google/type/latlng.proto\"\243\004\n\023S" - + "earchNearbyRequest\022\025\n\rlanguage_code\030\001 \001(" - + "\t\022\023\n\013region_code\030\002 \001(\t\022\026\n\016included_types" - + "\030\003 \003(\t\022\026\n\016excluded_types\030\004 \003(\t\022\036\n\026includ" - + "ed_primary_types\030\005 \003(\t\022\036\n\026excluded_prima" - + "ry_types\030\006 \003(\t\022\030\n\020max_result_count\030\007 \001(\005" - + "\022a\n\024location_restriction\030\010 \001(\0132>.google." - + "maps.places.v1.SearchNearbyRequest.Locat" - + "ionRestrictionB\003\340A\002\022R\n\017rank_preference\030\t" - + " \001(\01629.google.maps.places.v1.SearchNearb" - + "yRequest.RankPreference\032N\n\023LocationRestr" - + "iction\022/\n\006circle\030\002 \001(\0132\035.google.maps.pla" - + "ces.v1.CircleH\000B\006\n\004type\"O\n\016RankPreferenc" - + "e\022\037\n\033RANK_PREFERENCE_UNSPECIFIED\020\000\022\014\n\010DI" - + "STANCE\020\001\022\016\n\nPOPULARITY\020\002\"D\n\024SearchNearby" - + "Response\022,\n\006places\030\001 \003(\0132\034.google.maps.p" - + "laces.v1.Place\"\342\007\n\021SearchTextRequest\022\027\n\n" - + "text_query\030\001 \001(\tB\003\340A\002\022\025\n\rlanguage_code\030\002" - + " \001(\t\022\023\n\013region_code\030\003 \001(\t\022P\n\017rank_prefer" - + "ence\030\004 \001(\01627.google.maps.places.v1.Searc" - + "hTextRequest.RankPreference\022\025\n\rincluded_" - + "type\030\006 \001(\t\022\020\n\010open_now\030\007 \001(\010\022\022\n\nmin_rati" - + "ng\030\t \001(\001\022\030\n\020max_result_count\030\n \001(\005\0227\n\014pr" - + "ice_levels\030\013 \003(\0162!.google.maps.places.v1" - + ".PriceLevel\022\035\n\025strict_type_filtering\030\014 \001" - + "(\010\022L\n\rlocation_bias\030\r \001(\01325.google.maps." - + "places.v1.SearchTextRequest.LocationBias" - + "\022Z\n\024location_restriction\030\016 \001(\0132<.google." - + "maps.places.v1.SearchTextRequest.Locatio" - + "nRestriction\022K\n\nev_options\030\017 \001(\01322.googl" - + "e.maps.places.v1.SearchTextRequest.EVOpt" - + "ionsB\003\340A\001\032w\n\014LocationBias\022.\n\trectangle\030\001" - + " \001(\0132\031.google.geo.type.ViewportH\000\022/\n\006cir" - + "cle\030\002 \001(\0132\035.google.maps.places.v1.Circle" - + "H\000B\006\n\004type\032M\n\023LocationRestriction\022.\n\trec" + + "viewport.proto\032.google/maps/places/v1/co" + + "ntextual_content.proto\032\'google/maps/plac" + + "es/v1/ev_charging.proto\032$google/maps/pla" + + "ces/v1/geometry.proto\032!google/maps/place" + + "s/v1/place.proto\032\030google/type/latlng.pro" + + "to\"\243\004\n\023SearchNearbyRequest\022\025\n\rlanguage_c" + + "ode\030\001 \001(\t\022\023\n\013region_code\030\002 \001(\t\022\026\n\016includ" + + "ed_types\030\003 \003(\t\022\026\n\016excluded_types\030\004 \003(\t\022\036" + + "\n\026included_primary_types\030\005 \003(\t\022\036\n\026exclud" + + "ed_primary_types\030\006 \003(\t\022\030\n\020max_result_cou" + + "nt\030\007 \001(\005\022a\n\024location_restriction\030\010 \001(\0132>" + + ".google.maps.places.v1.SearchNearbyReque" + + "st.LocationRestrictionB\003\340A\002\022R\n\017rank_pref" + + "erence\030\t \001(\01629.google.maps.places.v1.Sea" + + "rchNearbyRequest.RankPreference\032N\n\023Locat" + + "ionRestriction\022/\n\006circle\030\002 \001(\0132\035.google." + + "maps.places.v1.CircleH\000B\006\n\004type\"O\n\016RankP" + + "reference\022\037\n\033RANK_PREFERENCE_UNSPECIFIED" + + "\020\000\022\014\n\010DISTANCE\020\001\022\016\n\nPOPULARITY\020\002\"D\n\024Sear" + + "chNearbyResponse\022,\n\006places\030\001 \003(\0132\034.googl" + + "e.maps.places.v1.Place\"\342\007\n\021SearchTextReq" + + "uest\022\027\n\ntext_query\030\001 \001(\tB\003\340A\002\022\025\n\rlanguag" + + "e_code\030\002 \001(\t\022\023\n\013region_code\030\003 \001(\t\022P\n\017ran" + + "k_preference\030\004 \001(\01627.google.maps.places." + + "v1.SearchTextRequest.RankPreference\022\025\n\ri" + + "ncluded_type\030\006 \001(\t\022\020\n\010open_now\030\007 \001(\010\022\022\n\n" + + "min_rating\030\t \001(\001\022\030\n\020max_result_count\030\n \001" + + "(\005\0227\n\014price_levels\030\013 \003(\0162!.google.maps.p" + + "laces.v1.PriceLevel\022\035\n\025strict_type_filte" + + "ring\030\014 \001(\010\022L\n\rlocation_bias\030\r \001(\01325.goog" + + "le.maps.places.v1.SearchTextRequest.Loca" + + "tionBias\022Z\n\024location_restriction\030\016 \001(\0132<" + + ".google.maps.places.v1.SearchTextRequest" + + ".LocationRestriction\022K\n\nev_options\030\017 \001(\013" + + "22.google.maps.places.v1.SearchTextReque" + + "st.EVOptionsB\003\340A\001\032w\n\014LocationBias\022.\n\trec" + "tangle\030\001 \001(\0132\031.google.geo.type.ViewportH" - + "\000B\006\n\004type\032x\n\tEVOptions\022%\n\030minimum_chargi" - + "ng_rate_kw\030\001 \001(\001B\003\340A\001\022D\n\017connector_types" - + "\030\002 \003(\0162&.google.maps.places.v1.EVConnect" - + "orTypeB\003\340A\001\"N\n\016RankPreference\022\037\n\033RANK_PR" - + "EFERENCE_UNSPECIFIED\020\000\022\014\n\010DISTANCE\020\001\022\r\n\t" - + "RELEVANCE\020\002\"B\n\022SearchTextResponse\022,\n\006pla" - + "ces\030\001 \003(\0132\034.google.maps.places.v1.Place\"" + + "\000\022/\n\006circle\030\002 \001(\0132\035.google.maps.places.v" + + "1.CircleH\000B\006\n\004type\032M\n\023LocationRestrictio" + + "n\022.\n\trectangle\030\001 \001(\0132\031.google.geo.type.V" + + "iewportH\000B\006\n\004type\032x\n\tEVOptions\022%\n\030minimu" + + "m_charging_rate_kw\030\001 \001(\001B\003\340A\001\022D\n\017connect" + + "or_types\030\002 \003(\0162&.google.maps.places.v1.E" + + "VConnectorTypeB\003\340A\001\"N\n\016RankPreference\022\037\n" + + "\033RANK_PREFERENCE_UNSPECIFIED\020\000\022\014\n\010DISTAN" + + "CE\020\001\022\r\n\tRELEVANCE\020\002\"\211\001\n\022SearchTextRespon" + + "se\022,\n\006places\030\001 \003(\0132\034.google.maps.places." + + "v1.Place\022E\n\023contextual_contents\030\003 \003(\0132(." + + "google.maps.places.v1.ContextualContent\"" + "\246\001\n\024GetPhotoMediaRequest\0226\n\004name\030\001 \001(\tB(" + "\340A\002\372A\"\n places.googleapis.com/PhotoMedia" + "\022\031\n\014max_width_px\030\002 \001(\005B\003\340A\001\022\032\n\rmax_heigh" @@ -269,6 +272,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.geo.type.ViewportProto.getDescriptor(), + com.google.maps.places.v1.ContextualContentProto.getDescriptor(), com.google.maps.places.v1.EvChargingProto.getDescriptor(), com.google.maps.places.v1.GeometryProto.getDescriptor(), com.google.maps.places.v1.PlaceProto.getDescriptor(), @@ -358,7 +362,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_maps_places_v1_SearchTextResponse_descriptor, new java.lang.String[] { - "Places", + "Places", "ContextualContents", }); internal_static_google_maps_places_v1_GetPhotoMediaRequest_descriptor = getDescriptor().getMessageTypes().get(4); @@ -505,6 +509,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.geo.type.ViewportProto.getDescriptor(); + com.google.maps.places.v1.ContextualContentProto.getDescriptor(); com.google.maps.places.v1.EvChargingProto.getDescriptor(); com.google.maps.places.v1.GeometryProto.getDescriptor(); com.google.maps.places.v1.PlaceProto.getDescriptor(); diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReferenceProto.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReferenceProto.java new file mode 100644 index 000000000000..8487d4060cb7 --- /dev/null +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReferenceProto.java @@ -0,0 +1,81 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/places/v1/reference.proto + +// Protobuf Java Version: 3.25.3 +package com.google.maps.places.v1; + +public final class ReferenceProto { + private ReferenceProto() {} + + 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_maps_places_v1_References_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_places_v1_References_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/maps/places/v1/reference.proto\022" + + "\025google.maps.places.v1\032\031google/api/resou" + + "rce.proto\032\"google/maps/places/v1/review." + + "proto\"n\n\nReferences\022.\n\007reviews\030\001 \003(\0132\035.g" + + "oogle.maps.places.v1.Review\0220\n\006places\030\002 " + + "\003(\tB \372A\035\n\033places.googleapis.com/PlaceB\242\001" + + "\n\031com.google.maps.places.v1B\016ReferencePr" + + "otoP\001Z7cloud.google.com/go/maps/places/a" + + "piv1/placespb;placespb\370\001\001\242\002\006GMPSV1\252\002\025Goo" + + "gle.Maps.Places.V1\312\002\025Google\\Maps\\Places\\" + + "V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.maps.places.v1.ReviewProto.getDescriptor(), + }); + internal_static_google_maps_places_v1_References_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_places_v1_References_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_places_v1_References_descriptor, + new java.lang.String[] { + "Reviews", "Places", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.maps.places.v1.ReviewProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/References.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/References.java new file mode 100644 index 000000000000..9224e287ca88 --- /dev/null +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/References.java @@ -0,0 +1,1225 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/places/v1/reference.proto + +// Protobuf Java Version: 3.25.3 +package com.google.maps.places.v1; + +/** + * + * + *
+ * Experimental: See
+ * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+ * for more details.
+ *
+ * Reference that the generative content is related to.
+ * 
+ * + * Protobuf type {@code google.maps.places.v1.References} + */ +public final class References extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.places.v1.References) + ReferencesOrBuilder { + private static final long serialVersionUID = 0L; + // Use References.newBuilder() to construct. + private References(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private References() { + reviews_ = java.util.Collections.emptyList(); + places_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new References(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.ReferenceProto + .internal_static_google_maps_places_v1_References_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.ReferenceProto + .internal_static_google_maps_places_v1_References_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.References.class, + com.google.maps.places.v1.References.Builder.class); + } + + public static final int REVIEWS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List reviews_; + /** + * + * + *
+   * Reviews that serve as references.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + @java.lang.Override + public java.util.List getReviewsList() { + return reviews_; + } + /** + * + * + *
+   * Reviews that serve as references.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + @java.lang.Override + public java.util.List + getReviewsOrBuilderList() { + return reviews_; + } + /** + * + * + *
+   * Reviews that serve as references.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + @java.lang.Override + public int getReviewsCount() { + return reviews_.size(); + } + /** + * + * + *
+   * Reviews that serve as references.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + @java.lang.Override + public com.google.maps.places.v1.Review getReviews(int index) { + return reviews_.get(index); + } + /** + * + * + *
+   * Reviews that serve as references.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + @java.lang.Override + public com.google.maps.places.v1.ReviewOrBuilder getReviewsOrBuilder(int index) { + return reviews_.get(index); + } + + public static final int PLACES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList places_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * The list of resource names of the referenced places. This name can be used
+   * in other APIs that accept Place resource names.
+   * 
+ * + * repeated string places = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the places. + */ + public com.google.protobuf.ProtocolStringList getPlacesList() { + return places_; + } + /** + * + * + *
+   * The list of resource names of the referenced places. This name can be used
+   * in other APIs that accept Place resource names.
+   * 
+ * + * repeated string places = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of places. + */ + public int getPlacesCount() { + return places_.size(); + } + /** + * + * + *
+   * The list of resource names of the referenced places. This name can be used
+   * in other APIs that accept Place resource names.
+   * 
+ * + * repeated string places = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The places at the given index. + */ + public java.lang.String getPlaces(int index) { + return places_.get(index); + } + /** + * + * + *
+   * The list of resource names of the referenced places. This name can be used
+   * in other APIs that accept Place resource names.
+   * 
+ * + * repeated string places = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the places at the given index. + */ + public com.google.protobuf.ByteString getPlacesBytes(int index) { + return places_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < reviews_.size(); i++) { + output.writeMessage(1, reviews_.get(i)); + } + for (int i = 0; i < places_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, places_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < reviews_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, reviews_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < places_.size(); i++) { + dataSize += computeStringSizeNoTag(places_.getRaw(i)); + } + size += dataSize; + size += 1 * getPlacesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.maps.places.v1.References)) { + return super.equals(obj); + } + com.google.maps.places.v1.References other = (com.google.maps.places.v1.References) obj; + + if (!getReviewsList().equals(other.getReviewsList())) return false; + if (!getPlacesList().equals(other.getPlacesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getReviewsCount() > 0) { + hash = (37 * hash) + REVIEWS_FIELD_NUMBER; + hash = (53 * hash) + getReviewsList().hashCode(); + } + if (getPlacesCount() > 0) { + hash = (37 * hash) + PLACES_FIELD_NUMBER; + hash = (53 * hash) + getPlacesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.places.v1.References parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.References parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.References parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.References parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.References parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.References parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.References parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.References 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.maps.places.v1.References parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.References 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.maps.places.v1.References parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.References 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.maps.places.v1.References prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * Reference that the generative content is related to.
+   * 
+ * + * Protobuf type {@code google.maps.places.v1.References} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.References) + com.google.maps.places.v1.ReferencesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.ReferenceProto + .internal_static_google_maps_places_v1_References_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.ReferenceProto + .internal_static_google_maps_places_v1_References_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.References.class, + com.google.maps.places.v1.References.Builder.class); + } + + // Construct using com.google.maps.places.v1.References.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (reviewsBuilder_ == null) { + reviews_ = java.util.Collections.emptyList(); + } else { + reviews_ = null; + reviewsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + places_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.places.v1.ReferenceProto + .internal_static_google_maps_places_v1_References_descriptor; + } + + @java.lang.Override + public com.google.maps.places.v1.References getDefaultInstanceForType() { + return com.google.maps.places.v1.References.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.places.v1.References build() { + com.google.maps.places.v1.References result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.places.v1.References buildPartial() { + com.google.maps.places.v1.References result = new com.google.maps.places.v1.References(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.maps.places.v1.References result) { + if (reviewsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + reviews_ = java.util.Collections.unmodifiableList(reviews_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.reviews_ = reviews_; + } else { + result.reviews_ = reviewsBuilder_.build(); + } + } + + private void buildPartial0(com.google.maps.places.v1.References result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + places_.makeImmutable(); + result.places_ = places_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.places.v1.References) { + return mergeFrom((com.google.maps.places.v1.References) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.places.v1.References other) { + if (other == com.google.maps.places.v1.References.getDefaultInstance()) return this; + if (reviewsBuilder_ == null) { + if (!other.reviews_.isEmpty()) { + if (reviews_.isEmpty()) { + reviews_ = other.reviews_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureReviewsIsMutable(); + reviews_.addAll(other.reviews_); + } + onChanged(); + } + } else { + if (!other.reviews_.isEmpty()) { + if (reviewsBuilder_.isEmpty()) { + reviewsBuilder_.dispose(); + reviewsBuilder_ = null; + reviews_ = other.reviews_; + bitField0_ = (bitField0_ & ~0x00000001); + reviewsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReviewsFieldBuilder() + : null; + } else { + reviewsBuilder_.addAllMessages(other.reviews_); + } + } + } + if (!other.places_.isEmpty()) { + if (places_.isEmpty()) { + places_ = other.places_; + bitField0_ |= 0x00000002; + } else { + ensurePlacesIsMutable(); + places_.addAll(other.places_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.maps.places.v1.Review m = + input.readMessage(com.google.maps.places.v1.Review.parser(), extensionRegistry); + if (reviewsBuilder_ == null) { + ensureReviewsIsMutable(); + reviews_.add(m); + } else { + reviewsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePlacesIsMutable(); + places_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List reviews_ = + java.util.Collections.emptyList(); + + private void ensureReviewsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + reviews_ = new java.util.ArrayList(reviews_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Review, + com.google.maps.places.v1.Review.Builder, + com.google.maps.places.v1.ReviewOrBuilder> + reviewsBuilder_; + + /** + * + * + *
+     * Reviews that serve as references.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public java.util.List getReviewsList() { + if (reviewsBuilder_ == null) { + return java.util.Collections.unmodifiableList(reviews_); + } else { + return reviewsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Reviews that serve as references.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public int getReviewsCount() { + if (reviewsBuilder_ == null) { + return reviews_.size(); + } else { + return reviewsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Reviews that serve as references.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public com.google.maps.places.v1.Review getReviews(int index) { + if (reviewsBuilder_ == null) { + return reviews_.get(index); + } else { + return reviewsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Reviews that serve as references.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public Builder setReviews(int index, com.google.maps.places.v1.Review value) { + if (reviewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReviewsIsMutable(); + reviews_.set(index, value); + onChanged(); + } else { + reviewsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Reviews that serve as references.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public Builder setReviews(int index, com.google.maps.places.v1.Review.Builder builderForValue) { + if (reviewsBuilder_ == null) { + ensureReviewsIsMutable(); + reviews_.set(index, builderForValue.build()); + onChanged(); + } else { + reviewsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Reviews that serve as references.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public Builder addReviews(com.google.maps.places.v1.Review value) { + if (reviewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReviewsIsMutable(); + reviews_.add(value); + onChanged(); + } else { + reviewsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Reviews that serve as references.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public Builder addReviews(int index, com.google.maps.places.v1.Review value) { + if (reviewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReviewsIsMutable(); + reviews_.add(index, value); + onChanged(); + } else { + reviewsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Reviews that serve as references.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public Builder addReviews(com.google.maps.places.v1.Review.Builder builderForValue) { + if (reviewsBuilder_ == null) { + ensureReviewsIsMutable(); + reviews_.add(builderForValue.build()); + onChanged(); + } else { + reviewsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Reviews that serve as references.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public Builder addReviews(int index, com.google.maps.places.v1.Review.Builder builderForValue) { + if (reviewsBuilder_ == null) { + ensureReviewsIsMutable(); + reviews_.add(index, builderForValue.build()); + onChanged(); + } else { + reviewsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Reviews that serve as references.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public Builder addAllReviews( + java.lang.Iterable values) { + if (reviewsBuilder_ == null) { + ensureReviewsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reviews_); + onChanged(); + } else { + reviewsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Reviews that serve as references.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public Builder clearReviews() { + if (reviewsBuilder_ == null) { + reviews_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + reviewsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Reviews that serve as references.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public Builder removeReviews(int index) { + if (reviewsBuilder_ == null) { + ensureReviewsIsMutable(); + reviews_.remove(index); + onChanged(); + } else { + reviewsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Reviews that serve as references.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public com.google.maps.places.v1.Review.Builder getReviewsBuilder(int index) { + return getReviewsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Reviews that serve as references.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public com.google.maps.places.v1.ReviewOrBuilder getReviewsOrBuilder(int index) { + if (reviewsBuilder_ == null) { + return reviews_.get(index); + } else { + return reviewsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Reviews that serve as references.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public java.util.List + getReviewsOrBuilderList() { + if (reviewsBuilder_ != null) { + return reviewsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(reviews_); + } + } + /** + * + * + *
+     * Reviews that serve as references.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public com.google.maps.places.v1.Review.Builder addReviewsBuilder() { + return getReviewsFieldBuilder() + .addBuilder(com.google.maps.places.v1.Review.getDefaultInstance()); + } + /** + * + * + *
+     * Reviews that serve as references.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public com.google.maps.places.v1.Review.Builder addReviewsBuilder(int index) { + return getReviewsFieldBuilder() + .addBuilder(index, com.google.maps.places.v1.Review.getDefaultInstance()); + } + /** + * + * + *
+     * Reviews that serve as references.
+     * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + public java.util.List getReviewsBuilderList() { + return getReviewsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Review, + com.google.maps.places.v1.Review.Builder, + com.google.maps.places.v1.ReviewOrBuilder> + getReviewsFieldBuilder() { + if (reviewsBuilder_ == null) { + reviewsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Review, + com.google.maps.places.v1.Review.Builder, + com.google.maps.places.v1.ReviewOrBuilder>( + reviews_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + reviews_ = null; + } + return reviewsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList places_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePlacesIsMutable() { + if (!places_.isModifiable()) { + places_ = new com.google.protobuf.LazyStringArrayList(places_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+     * The list of resource names of the referenced places. This name can be used
+     * in other APIs that accept Place resource names.
+     * 
+ * + * repeated string places = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the places. + */ + public com.google.protobuf.ProtocolStringList getPlacesList() { + places_.makeImmutable(); + return places_; + } + /** + * + * + *
+     * The list of resource names of the referenced places. This name can be used
+     * in other APIs that accept Place resource names.
+     * 
+ * + * repeated string places = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of places. + */ + public int getPlacesCount() { + return places_.size(); + } + /** + * + * + *
+     * The list of resource names of the referenced places. This name can be used
+     * in other APIs that accept Place resource names.
+     * 
+ * + * repeated string places = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The places at the given index. + */ + public java.lang.String getPlaces(int index) { + return places_.get(index); + } + /** + * + * + *
+     * The list of resource names of the referenced places. This name can be used
+     * in other APIs that accept Place resource names.
+     * 
+ * + * repeated string places = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the places at the given index. + */ + public com.google.protobuf.ByteString getPlacesBytes(int index) { + return places_.getByteString(index); + } + /** + * + * + *
+     * The list of resource names of the referenced places. This name can be used
+     * in other APIs that accept Place resource names.
+     * 
+ * + * repeated string places = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index to set the value at. + * @param value The places to set. + * @return This builder for chaining. + */ + public Builder setPlaces(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePlacesIsMutable(); + places_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of resource names of the referenced places. This name can be used
+     * in other APIs that accept Place resource names.
+     * 
+ * + * repeated string places = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The places to add. + * @return This builder for chaining. + */ + public Builder addPlaces(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePlacesIsMutable(); + places_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of resource names of the referenced places. This name can be used
+     * in other APIs that accept Place resource names.
+     * 
+ * + * repeated string places = 2 [(.google.api.resource_reference) = { ... } + * + * @param values The places to add. + * @return This builder for chaining. + */ + public Builder addAllPlaces(java.lang.Iterable values) { + ensurePlacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, places_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of resource names of the referenced places. This name can be used
+     * in other APIs that accept Place resource names.
+     * 
+ * + * repeated string places = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearPlaces() { + places_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of resource names of the referenced places. This name can be used
+     * in other APIs that accept Place resource names.
+     * 
+ * + * repeated string places = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes of the places to add. + * @return This builder for chaining. + */ + public Builder addPlacesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePlacesIsMutable(); + places_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.References) + } + + // @@protoc_insertion_point(class_scope:google.maps.places.v1.References) + private static final com.google.maps.places.v1.References DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.places.v1.References(); + } + + public static com.google.maps.places.v1.References getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public References parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.maps.places.v1.References getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReferencesOrBuilder.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReferencesOrBuilder.java new file mode 100644 index 000000000000..8a28dead10d0 --- /dev/null +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReferencesOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/places/v1/reference.proto + +// Protobuf Java Version: 3.25.3 +package com.google.maps.places.v1; + +public interface ReferencesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.References) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Reviews that serve as references.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + java.util.List getReviewsList(); + /** + * + * + *
+   * Reviews that serve as references.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + com.google.maps.places.v1.Review getReviews(int index); + /** + * + * + *
+   * Reviews that serve as references.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + int getReviewsCount(); + /** + * + * + *
+   * Reviews that serve as references.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + java.util.List getReviewsOrBuilderList(); + /** + * + * + *
+   * Reviews that serve as references.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 1; + */ + com.google.maps.places.v1.ReviewOrBuilder getReviewsOrBuilder(int index); + + /** + * + * + *
+   * The list of resource names of the referenced places. This name can be used
+   * in other APIs that accept Place resource names.
+   * 
+ * + * repeated string places = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the places. + */ + java.util.List getPlacesList(); + /** + * + * + *
+   * The list of resource names of the referenced places. This name can be used
+   * in other APIs that accept Place resource names.
+   * 
+ * + * repeated string places = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of places. + */ + int getPlacesCount(); + /** + * + * + *
+   * The list of resource names of the referenced places. This name can be used
+   * in other APIs that accept Place resource names.
+   * 
+ * + * repeated string places = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The places at the given index. + */ + java.lang.String getPlaces(int index); + /** + * + * + *
+   * The list of resource names of the referenced places. This name can be used
+   * in other APIs that accept Place resource names.
+   * 
+ * + * repeated string places = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the places at the given index. + */ + com.google.protobuf.ByteString getPlacesBytes(int index); +} diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/SearchTextResponse.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/SearchTextResponse.java index 52e08ac827d6..bb38a785b39b 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/SearchTextResponse.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/SearchTextResponse.java @@ -40,6 +40,7 @@ private SearchTextResponse(com.google.protobuf.GeneratedMessageV3.Builder bui private SearchTextResponse() { places_ = java.util.Collections.emptyList(); + contextualContents_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -134,6 +135,128 @@ public com.google.maps.places.v1.PlaceOrBuilder getPlacesOrBuilder(int index) { return places_.get(index); } + public static final int CONTEXTUAL_CONTENTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List contextualContents_; + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * A list of contextual contents where each entry associates to the
+   * corresponding place in the same index in the places field. The contents
+   * that are relevant to the `text_query` in the request are preferred. If the
+   * contextual content is not available for one of the places, it will return
+   * non-contextual content. It will be empty only when the content is
+   * unavailable for this place. This list should have as many entries as the
+   * list of places if requested.
+   * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + @java.lang.Override + public java.util.List getContextualContentsList() { + return contextualContents_; + } + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * A list of contextual contents where each entry associates to the
+   * corresponding place in the same index in the places field. The contents
+   * that are relevant to the `text_query` in the request are preferred. If the
+   * contextual content is not available for one of the places, it will return
+   * non-contextual content. It will be empty only when the content is
+   * unavailable for this place. This list should have as many entries as the
+   * list of places if requested.
+   * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + @java.lang.Override + public java.util.List + getContextualContentsOrBuilderList() { + return contextualContents_; + } + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * A list of contextual contents where each entry associates to the
+   * corresponding place in the same index in the places field. The contents
+   * that are relevant to the `text_query` in the request are preferred. If the
+   * contextual content is not available for one of the places, it will return
+   * non-contextual content. It will be empty only when the content is
+   * unavailable for this place. This list should have as many entries as the
+   * list of places if requested.
+   * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + @java.lang.Override + public int getContextualContentsCount() { + return contextualContents_.size(); + } + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * A list of contextual contents where each entry associates to the
+   * corresponding place in the same index in the places field. The contents
+   * that are relevant to the `text_query` in the request are preferred. If the
+   * contextual content is not available for one of the places, it will return
+   * non-contextual content. It will be empty only when the content is
+   * unavailable for this place. This list should have as many entries as the
+   * list of places if requested.
+   * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + @java.lang.Override + public com.google.maps.places.v1.ContextualContent getContextualContents(int index) { + return contextualContents_.get(index); + } + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * A list of contextual contents where each entry associates to the
+   * corresponding place in the same index in the places field. The contents
+   * that are relevant to the `text_query` in the request are preferred. If the
+   * contextual content is not available for one of the places, it will return
+   * non-contextual content. It will be empty only when the content is
+   * unavailable for this place. This list should have as many entries as the
+   * list of places if requested.
+   * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + @java.lang.Override + public com.google.maps.places.v1.ContextualContentOrBuilder getContextualContentsOrBuilder( + int index) { + return contextualContents_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -151,6 +274,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < places_.size(); i++) { output.writeMessage(1, places_.get(i)); } + for (int i = 0; i < contextualContents_.size(); i++) { + output.writeMessage(3, contextualContents_.get(i)); + } getUnknownFields().writeTo(output); } @@ -163,6 +289,10 @@ public int getSerializedSize() { for (int i = 0; i < places_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, places_.get(i)); } + for (int i = 0; i < contextualContents_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, contextualContents_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -180,6 +310,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.maps.places.v1.SearchTextResponse) obj; if (!getPlacesList().equals(other.getPlacesList())) return false; + if (!getContextualContentsList().equals(other.getContextualContentsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -195,6 +326,10 @@ public int hashCode() { hash = (37 * hash) + PLACES_FIELD_NUMBER; hash = (53 * hash) + getPlacesList().hashCode(); } + if (getContextualContentsCount() > 0) { + hash = (37 * hash) + CONTEXTUAL_CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getContextualContentsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -341,6 +476,13 @@ public Builder clear() { placesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); + if (contextualContentsBuilder_ == null) { + contextualContents_ = java.util.Collections.emptyList(); + } else { + contextualContents_ = null; + contextualContentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -386,6 +528,15 @@ private void buildPartialRepeatedFields(com.google.maps.places.v1.SearchTextResp } else { result.places_ = placesBuilder_.build(); } + if (contextualContentsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + contextualContents_ = java.util.Collections.unmodifiableList(contextualContents_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.contextualContents_ = contextualContents_; + } else { + result.contextualContents_ = contextualContentsBuilder_.build(); + } } private void buildPartial0(com.google.maps.places.v1.SearchTextResponse result) { @@ -464,6 +615,33 @@ public Builder mergeFrom(com.google.maps.places.v1.SearchTextResponse other) { } } } + if (contextualContentsBuilder_ == null) { + if (!other.contextualContents_.isEmpty()) { + if (contextualContents_.isEmpty()) { + contextualContents_ = other.contextualContents_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureContextualContentsIsMutable(); + contextualContents_.addAll(other.contextualContents_); + } + onChanged(); + } + } else { + if (!other.contextualContents_.isEmpty()) { + if (contextualContentsBuilder_.isEmpty()) { + contextualContentsBuilder_.dispose(); + contextualContentsBuilder_ = null; + contextualContents_ = other.contextualContents_; + bitField0_ = (bitField0_ & ~0x00000002); + contextualContentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContextualContentsFieldBuilder() + : null; + } else { + contextualContentsBuilder_.addAllMessages(other.contextualContents_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -502,6 +680,19 @@ public Builder mergeFrom( } break; } // case 10 + case 26: + { + com.google.maps.places.v1.ContextualContent m = + input.readMessage( + com.google.maps.places.v1.ContextualContent.parser(), extensionRegistry); + if (contextualContentsBuilder_ == null) { + ensureContextualContentsIsMutable(); + contextualContents_.add(m); + } else { + contextualContentsBuilder_.addMessage(m); + } + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -867,6 +1058,546 @@ public java.util.List getPlacesBuilderL return placesBuilder_; } + private java.util.List contextualContents_ = + java.util.Collections.emptyList(); + + private void ensureContextualContentsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + contextualContents_ = + new java.util.ArrayList( + contextualContents_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.ContextualContent, + com.google.maps.places.v1.ContextualContent.Builder, + com.google.maps.places.v1.ContextualContentOrBuilder> + contextualContentsBuilder_; + + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * A list of contextual contents where each entry associates to the
+     * corresponding place in the same index in the places field. The contents
+     * that are relevant to the `text_query` in the request are preferred. If the
+     * contextual content is not available for one of the places, it will return
+     * non-contextual content. It will be empty only when the content is
+     * unavailable for this place. This list should have as many entries as the
+     * list of places if requested.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + public java.util.List getContextualContentsList() { + if (contextualContentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contextualContents_); + } else { + return contextualContentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * A list of contextual contents where each entry associates to the
+     * corresponding place in the same index in the places field. The contents
+     * that are relevant to the `text_query` in the request are preferred. If the
+     * contextual content is not available for one of the places, it will return
+     * non-contextual content. It will be empty only when the content is
+     * unavailable for this place. This list should have as many entries as the
+     * list of places if requested.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + public int getContextualContentsCount() { + if (contextualContentsBuilder_ == null) { + return contextualContents_.size(); + } else { + return contextualContentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * A list of contextual contents where each entry associates to the
+     * corresponding place in the same index in the places field. The contents
+     * that are relevant to the `text_query` in the request are preferred. If the
+     * contextual content is not available for one of the places, it will return
+     * non-contextual content. It will be empty only when the content is
+     * unavailable for this place. This list should have as many entries as the
+     * list of places if requested.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + public com.google.maps.places.v1.ContextualContent getContextualContents(int index) { + if (contextualContentsBuilder_ == null) { + return contextualContents_.get(index); + } else { + return contextualContentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * A list of contextual contents where each entry associates to the
+     * corresponding place in the same index in the places field. The contents
+     * that are relevant to the `text_query` in the request are preferred. If the
+     * contextual content is not available for one of the places, it will return
+     * non-contextual content. It will be empty only when the content is
+     * unavailable for this place. This list should have as many entries as the
+     * list of places if requested.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + public Builder setContextualContents( + int index, com.google.maps.places.v1.ContextualContent value) { + if (contextualContentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContextualContentsIsMutable(); + contextualContents_.set(index, value); + onChanged(); + } else { + contextualContentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * A list of contextual contents where each entry associates to the
+     * corresponding place in the same index in the places field. The contents
+     * that are relevant to the `text_query` in the request are preferred. If the
+     * contextual content is not available for one of the places, it will return
+     * non-contextual content. It will be empty only when the content is
+     * unavailable for this place. This list should have as many entries as the
+     * list of places if requested.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + public Builder setContextualContents( + int index, com.google.maps.places.v1.ContextualContent.Builder builderForValue) { + if (contextualContentsBuilder_ == null) { + ensureContextualContentsIsMutable(); + contextualContents_.set(index, builderForValue.build()); + onChanged(); + } else { + contextualContentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * A list of contextual contents where each entry associates to the
+     * corresponding place in the same index in the places field. The contents
+     * that are relevant to the `text_query` in the request are preferred. If the
+     * contextual content is not available for one of the places, it will return
+     * non-contextual content. It will be empty only when the content is
+     * unavailable for this place. This list should have as many entries as the
+     * list of places if requested.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + public Builder addContextualContents(com.google.maps.places.v1.ContextualContent value) { + if (contextualContentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContextualContentsIsMutable(); + contextualContents_.add(value); + onChanged(); + } else { + contextualContentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * A list of contextual contents where each entry associates to the
+     * corresponding place in the same index in the places field. The contents
+     * that are relevant to the `text_query` in the request are preferred. If the
+     * contextual content is not available for one of the places, it will return
+     * non-contextual content. It will be empty only when the content is
+     * unavailable for this place. This list should have as many entries as the
+     * list of places if requested.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + public Builder addContextualContents( + int index, com.google.maps.places.v1.ContextualContent value) { + if (contextualContentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContextualContentsIsMutable(); + contextualContents_.add(index, value); + onChanged(); + } else { + contextualContentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * A list of contextual contents where each entry associates to the
+     * corresponding place in the same index in the places field. The contents
+     * that are relevant to the `text_query` in the request are preferred. If the
+     * contextual content is not available for one of the places, it will return
+     * non-contextual content. It will be empty only when the content is
+     * unavailable for this place. This list should have as many entries as the
+     * list of places if requested.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + public Builder addContextualContents( + com.google.maps.places.v1.ContextualContent.Builder builderForValue) { + if (contextualContentsBuilder_ == null) { + ensureContextualContentsIsMutable(); + contextualContents_.add(builderForValue.build()); + onChanged(); + } else { + contextualContentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * A list of contextual contents where each entry associates to the
+     * corresponding place in the same index in the places field. The contents
+     * that are relevant to the `text_query` in the request are preferred. If the
+     * contextual content is not available for one of the places, it will return
+     * non-contextual content. It will be empty only when the content is
+     * unavailable for this place. This list should have as many entries as the
+     * list of places if requested.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + public Builder addContextualContents( + int index, com.google.maps.places.v1.ContextualContent.Builder builderForValue) { + if (contextualContentsBuilder_ == null) { + ensureContextualContentsIsMutable(); + contextualContents_.add(index, builderForValue.build()); + onChanged(); + } else { + contextualContentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * A list of contextual contents where each entry associates to the
+     * corresponding place in the same index in the places field. The contents
+     * that are relevant to the `text_query` in the request are preferred. If the
+     * contextual content is not available for one of the places, it will return
+     * non-contextual content. It will be empty only when the content is
+     * unavailable for this place. This list should have as many entries as the
+     * list of places if requested.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + public Builder addAllContextualContents( + java.lang.Iterable values) { + if (contextualContentsBuilder_ == null) { + ensureContextualContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contextualContents_); + onChanged(); + } else { + contextualContentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * A list of contextual contents where each entry associates to the
+     * corresponding place in the same index in the places field. The contents
+     * that are relevant to the `text_query` in the request are preferred. If the
+     * contextual content is not available for one of the places, it will return
+     * non-contextual content. It will be empty only when the content is
+     * unavailable for this place. This list should have as many entries as the
+     * list of places if requested.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + public Builder clearContextualContents() { + if (contextualContentsBuilder_ == null) { + contextualContents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + contextualContentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * A list of contextual contents where each entry associates to the
+     * corresponding place in the same index in the places field. The contents
+     * that are relevant to the `text_query` in the request are preferred. If the
+     * contextual content is not available for one of the places, it will return
+     * non-contextual content. It will be empty only when the content is
+     * unavailable for this place. This list should have as many entries as the
+     * list of places if requested.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + public Builder removeContextualContents(int index) { + if (contextualContentsBuilder_ == null) { + ensureContextualContentsIsMutable(); + contextualContents_.remove(index); + onChanged(); + } else { + contextualContentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * A list of contextual contents where each entry associates to the
+     * corresponding place in the same index in the places field. The contents
+     * that are relevant to the `text_query` in the request are preferred. If the
+     * contextual content is not available for one of the places, it will return
+     * non-contextual content. It will be empty only when the content is
+     * unavailable for this place. This list should have as many entries as the
+     * list of places if requested.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + public com.google.maps.places.v1.ContextualContent.Builder getContextualContentsBuilder( + int index) { + return getContextualContentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * A list of contextual contents where each entry associates to the
+     * corresponding place in the same index in the places field. The contents
+     * that are relevant to the `text_query` in the request are preferred. If the
+     * contextual content is not available for one of the places, it will return
+     * non-contextual content. It will be empty only when the content is
+     * unavailable for this place. This list should have as many entries as the
+     * list of places if requested.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + public com.google.maps.places.v1.ContextualContentOrBuilder getContextualContentsOrBuilder( + int index) { + if (contextualContentsBuilder_ == null) { + return contextualContents_.get(index); + } else { + return contextualContentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * A list of contextual contents where each entry associates to the
+     * corresponding place in the same index in the places field. The contents
+     * that are relevant to the `text_query` in the request are preferred. If the
+     * contextual content is not available for one of the places, it will return
+     * non-contextual content. It will be empty only when the content is
+     * unavailable for this place. This list should have as many entries as the
+     * list of places if requested.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + public java.util.List + getContextualContentsOrBuilderList() { + if (contextualContentsBuilder_ != null) { + return contextualContentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contextualContents_); + } + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * A list of contextual contents where each entry associates to the
+     * corresponding place in the same index in the places field. The contents
+     * that are relevant to the `text_query` in the request are preferred. If the
+     * contextual content is not available for one of the places, it will return
+     * non-contextual content. It will be empty only when the content is
+     * unavailable for this place. This list should have as many entries as the
+     * list of places if requested.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + public com.google.maps.places.v1.ContextualContent.Builder addContextualContentsBuilder() { + return getContextualContentsFieldBuilder() + .addBuilder(com.google.maps.places.v1.ContextualContent.getDefaultInstance()); + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * A list of contextual contents where each entry associates to the
+     * corresponding place in the same index in the places field. The contents
+     * that are relevant to the `text_query` in the request are preferred. If the
+     * contextual content is not available for one of the places, it will return
+     * non-contextual content. It will be empty only when the content is
+     * unavailable for this place. This list should have as many entries as the
+     * list of places if requested.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + public com.google.maps.places.v1.ContextualContent.Builder addContextualContentsBuilder( + int index) { + return getContextualContentsFieldBuilder() + .addBuilder(index, com.google.maps.places.v1.ContextualContent.getDefaultInstance()); + } + /** + * + * + *
+     * Experimental: See
+     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+     * for more details.
+     *
+     * A list of contextual contents where each entry associates to the
+     * corresponding place in the same index in the places field. The contents
+     * that are relevant to the `text_query` in the request are preferred. If the
+     * contextual content is not available for one of the places, it will return
+     * non-contextual content. It will be empty only when the content is
+     * unavailable for this place. This list should have as many entries as the
+     * list of places if requested.
+     * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + public java.util.List + getContextualContentsBuilderList() { + return getContextualContentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.ContextualContent, + com.google.maps.places.v1.ContextualContent.Builder, + com.google.maps.places.v1.ContextualContentOrBuilder> + getContextualContentsFieldBuilder() { + if (contextualContentsBuilder_ == null) { + contextualContentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.ContextualContent, + com.google.maps.places.v1.ContextualContent.Builder, + com.google.maps.places.v1.ContextualContentOrBuilder>( + contextualContents_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + contextualContents_ = null; + } + return contextualContentsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/SearchTextResponseOrBuilder.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/SearchTextResponseOrBuilder.java index b04a1fb6900b..7ae3f9d52f7d 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/SearchTextResponseOrBuilder.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/SearchTextResponseOrBuilder.java @@ -74,4 +74,106 @@ public interface SearchTextResponseOrBuilder * repeated .google.maps.places.v1.Place places = 1; */ com.google.maps.places.v1.PlaceOrBuilder getPlacesOrBuilder(int index); + + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * A list of contextual contents where each entry associates to the
+   * corresponding place in the same index in the places field. The contents
+   * that are relevant to the `text_query` in the request are preferred. If the
+   * contextual content is not available for one of the places, it will return
+   * non-contextual content. It will be empty only when the content is
+   * unavailable for this place. This list should have as many entries as the
+   * list of places if requested.
+   * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + java.util.List getContextualContentsList(); + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * A list of contextual contents where each entry associates to the
+   * corresponding place in the same index in the places field. The contents
+   * that are relevant to the `text_query` in the request are preferred. If the
+   * contextual content is not available for one of the places, it will return
+   * non-contextual content. It will be empty only when the content is
+   * unavailable for this place. This list should have as many entries as the
+   * list of places if requested.
+   * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + com.google.maps.places.v1.ContextualContent getContextualContents(int index); + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * A list of contextual contents where each entry associates to the
+   * corresponding place in the same index in the places field. The contents
+   * that are relevant to the `text_query` in the request are preferred. If the
+   * contextual content is not available for one of the places, it will return
+   * non-contextual content. It will be empty only when the content is
+   * unavailable for this place. This list should have as many entries as the
+   * list of places if requested.
+   * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + int getContextualContentsCount(); + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * A list of contextual contents where each entry associates to the
+   * corresponding place in the same index in the places field. The contents
+   * that are relevant to the `text_query` in the request are preferred. If the
+   * contextual content is not available for one of the places, it will return
+   * non-contextual content. It will be empty only when the content is
+   * unavailable for this place. This list should have as many entries as the
+   * list of places if requested.
+   * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + java.util.List + getContextualContentsOrBuilderList(); + /** + * + * + *
+   * Experimental: See
+   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
+   * for more details.
+   *
+   * A list of contextual contents where each entry associates to the
+   * corresponding place in the same index in the places field. The contents
+   * that are relevant to the `text_query` in the request are preferred. If the
+   * contextual content is not available for one of the places, it will return
+   * non-contextual content. It will be empty only when the content is
+   * unavailable for this place. This list should have as many entries as the
+   * list of places if requested.
+   * 
+ * + * repeated .google.maps.places.v1.ContextualContent contextual_contents = 3; + */ + com.google.maps.places.v1.ContextualContentOrBuilder getContextualContentsOrBuilder(int index); } diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/content_block.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/content_block.proto new file mode 100644 index 000000000000..1a2352f26b68 --- /dev/null +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/content_block.proto @@ -0,0 +1,45 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.maps.places.v1; + +import "google/maps/places/v1/reference.proto"; +import "google/type/localized_text.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Maps.Places.V1"; +option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; +option java_multiple_files = true; +option java_outer_classname = "ContentBlockProto"; +option java_package = "com.google.maps.places.v1"; +option objc_class_prefix = "GMPSV1"; +option php_namespace = "Google\\Maps\\Places\\V1"; + +// A block of content that can be served individually. +message ContentBlock { + // The topic of the content, for example "overview" or "restaurant". + string topic = 1; + + // Content related to the topic. + google.type.LocalizedText content = 2; + + // Experimental: See + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative + // for more details. + // + // References that are related to this block of content. + References references = 3; +} diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/contextual_content.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/contextual_content.proto new file mode 100644 index 000000000000..a732e91e3924 --- /dev/null +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/contextual_content.proto @@ -0,0 +1,120 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.maps.places.v1; + +import "google/maps/places/v1/photo.proto"; +import "google/maps/places/v1/review.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Maps.Places.V1"; +option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; +option java_multiple_files = true; +option java_outer_classname = "ContextualContentProto"; +option java_package = "com.google.maps.places.v1"; +option objc_class_prefix = "GMPSV1"; +option php_namespace = "Google\\Maps\\Places\\V1"; + +// Experimental: See +// https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative +// for more details. +// +// Content that is contextual to the place query. +message ContextualContent { + // Experimental: See + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative + // for more details. + // + // Justifications for the place. Justifications answers the question of why a + // place could interest an end user. + message Justification { + // Experimental: See + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative + // for more details. + // + // User review justifications. This highlights a section of the user review + // that would interest an end user. For instance, if the search query is + // "firewood pizza", the review justification highlights the text relevant + // to the search query. + message ReviewJustification { + // The text highlighted by the justification. This is a subset of the + // review itself. The exact word to highlight is marked by the + // HighlightedTextRange. There could be several words in the text being + // highlighted. + message HighlightedText { + // The range of highlighted text. + message HighlightedTextRange { + int32 start_index = 1; + + int32 end_index = 2; + } + + string text = 1; + + // The list of the ranges of the highlighted text. + repeated HighlightedTextRange highlighted_text_ranges = 2; + } + + HighlightedText highlighted_text = 1; + + // The review that the highlighted text is generated from. + Review review = 2; + } + + // Experimental: See + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative + // for more details. + // BusinessAvailabilityAttributes justifications. This shows some attributes + // a business has that could interest an end user. + message BusinessAvailabilityAttributesJustification { + // If a place provides takeout. + bool takeout = 1; + + // If a place provides delivery. + bool delivery = 2; + + // If a place provides dine-in. + bool dine_in = 3; + } + + oneof justification { + // Experimental: See + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative + // for more details. + ReviewJustification review_justification = 1; + + // Experimental: See + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative + // for more details. + BusinessAvailabilityAttributesJustification + business_availability_attributes_justification = 2; + } + } + + // List of reviews about this place, contexual to the place query. + repeated Review reviews = 1; + + // Information (including references) about photos of this place, contexual to + // the place query. + repeated Photo photos = 2; + + // Experimental: See + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative + // for more details. + // + // Justifications for the place. + repeated Justification justifications = 3; +} diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/place.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/place.proto index 3fbf76e5ae51..47e8206accec 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/place.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/place.proto @@ -18,9 +18,11 @@ package google.maps.places.v1; import "google/api/resource.proto"; import "google/geo/type/viewport.proto"; +import "google/maps/places/v1/content_block.proto"; import "google/maps/places/v1/ev_charging.proto"; import "google/maps/places/v1/fuel_options.proto"; import "google/maps/places/v1/photo.proto"; +import "google/maps/places/v1/reference.proto"; import "google/maps/places/v1/review.proto"; import "google/type/date.proto"; import "google/type/latlng.proto"; @@ -283,6 +285,33 @@ message Place { optional bool wheelchair_accessible_seating = 4; } + // Experimental: See + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative + // for more details. + // + // AI-generated summary of the place. + message GenerativeSummary { + // The overview of the place. + google.type.LocalizedText overview = 1; + + // The detailed description of the place. + google.type.LocalizedText description = 2; + + // References that are used to generate the summary description. + References references = 3; + } + + // Experimental: See + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative + // for more details. + // + // AI-generated summary of the area that the place is in. + message AreaSummary { + // Content blocks that compose the area summary. Each block has a separate + // topic about the area. + repeated ContentBlock content_blocks = 4; + } + // This Place's resource name, in `places/{place_id}` format. Can be used to // look up the Place. string name = 1; @@ -517,6 +546,20 @@ message Place { // Information of ev charging options. EVChargeOptions ev_charge_options = 79; + + // Experimental: See + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative + // for more details. + // + // AI-generated summary of the place. + GenerativeSummary generative_summary = 80; + + // Experimental: See + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative + // for more details. + // + // AI-generated summary of the area that the place is in. + AreaSummary area_summary = 81; } // Price level of the place. diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/places_service.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/places_service.proto index 947ee1040e92..ea9f82aa2e05 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/places_service.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/places_service.proto @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/geo/type/viewport.proto"; +import "google/maps/places/v1/contextual_content.proto"; import "google/maps/places/v1/ev_charging.proto"; import "google/maps/places/v1/geometry.proto"; import "google/maps/places/v1/place.proto"; @@ -371,6 +372,19 @@ message SearchTextRequest { message SearchTextResponse { // A list of places that meet the user's text search criteria. repeated Place places = 1; + + // Experimental: See + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative + // for more details. + // + // A list of contextual contents where each entry associates to the + // corresponding place in the same index in the places field. The contents + // that are relevant to the `text_query` in the request are preferred. If the + // contextual content is not available for one of the places, it will return + // non-contextual content. It will be empty only when the content is + // unavailable for this place. This list should have as many entries as the + // list of places if requested. + repeated ContextualContent contextual_contents = 3; } // Request for fetching a photo of a place using a photo resource name. @@ -542,11 +556,11 @@ message AutocompletePlacesRequest { [(google.api.field_behavior) = OPTIONAL]; // Optional. Included primary Place type (for example, "restaurant" or - // "gas_station") from - // https://developers.google.com/maps/documentation/places/web-service/place-types. - // A Place is only returned if its primary type is included in this list. Up - // to 5 values can be specified. If no types are specified, all Place types - // are returned. + // "gas_station") in Place Types + // (https://developers.google.com/maps/documentation/places/web-service/place-types), + // or only `(regions)`, or only `(cities)`. A Place is only returned if its + // primary type is included in this list. Up to 5 values can be specified. If + // no types are specified, all Place types are returned. repeated string included_primary_types = 4 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/reference.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/reference.proto new file mode 100644 index 000000000000..dc5947e75c3f --- /dev/null +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/reference.proto @@ -0,0 +1,45 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.maps.places.v1; + +import "google/api/resource.proto"; +import "google/maps/places/v1/review.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Maps.Places.V1"; +option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; +option java_multiple_files = true; +option java_outer_classname = "ReferenceProto"; +option java_package = "com.google.maps.places.v1"; +option objc_class_prefix = "GMPSV1"; +option php_namespace = "Google\\Maps\\Places\\V1"; + +// Experimental: See +// https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative +// for more details. +// +// Reference that the generative content is related to. +message References { + // Reviews that serve as references. + repeated Review reviews = 1; + + // The list of resource names of the referenced places. This name can be used + // in other APIs that accept Place resource names. + repeated string places = 2 [ + (google.api.resource_reference) = { type: "places.googleapis.com/Place" } + ]; +} diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java index c07458138d2e..fd8f8d391849 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java @@ -430,6 +430,65 @@ * * * + *

GetSecurityCenterService + *

Gets service settings for the specified Security Command Center service. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getSecurityCenterService(GetSecurityCenterServiceRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getSecurityCenterService(SecurityCenterServiceName name) + *

  • getSecurityCenterService(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getSecurityCenterServiceCallable() + *

+ * + * + * + *

ListSecurityCenterServices + *

Returns a list of all Security Command Center services for the given parent. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listSecurityCenterServices(ListSecurityCenterServicesRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listSecurityCenterServices(FolderLocationName parent) + *

  • listSecurityCenterServices(LocationName parent) + *

  • listSecurityCenterServices(OrganizationLocationName parent) + *

  • listSecurityCenterServices(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listSecurityCenterServicesPagedCallable() + *

  • listSecurityCenterServicesCallable() + *

+ * + * + * + *

UpdateSecurityCenterService + *

Updates a Security Command Center service using the given update mask. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateSecurityCenterService(UpdateSecurityCenterServiceRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateSecurityCenterService(SecurityCenterService securityCenterService, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateSecurityCenterServiceCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -594,9 +653,13 @@ public SecurityCenterManagementStub getStub() { * } * }

* - * @param parent Required. Name of parent to list effective custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * @param parent Required. Name of parent to list effective custom modules. specified in one of + * the following formats: + *
    + *
  • `organizations/{organization}/locations/{location}` + *
  • `folders/{folder}/locations/{location}` or `projects/{project}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse @@ -634,9 +697,13 @@ public SecurityCenterManagementStub getStub() { * } * }
* - * @param parent Required. Name of parent to list effective custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * @param parent Required. Name of parent to list effective custom modules. specified in one of + * the following formats: + *
    + *
  • `organizations/{organization}/locations/{location}` + *
  • `folders/{folder}/locations/{location}` or `projects/{project}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse @@ -674,9 +741,13 @@ public SecurityCenterManagementStub getStub() { * } * }
* - * @param parent Required. Name of parent to list effective custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * @param parent Required. Name of parent to list effective custom modules. specified in one of + * the following formats: + *
    + *
  • `organizations/{organization}/locations/{location}` + *
  • `folders/{folder}/locations/{location}` or `projects/{project}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse @@ -714,9 +785,13 @@ public SecurityCenterManagementStub getStub() { * } * }
* - * @param parent Required. Name of parent to list effective custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * @param parent Required. Name of parent to list effective custom modules. specified in one of + * the following formats: + *
    + *
  • `organizations/{organization}/locations/{location}` + *
  • `folders/{folder}/locations/{location}` or `projects/{project}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse @@ -879,14 +954,14 @@ public SecurityCenterManagementStub getStub() { * } * }
* - * @param name Required. The resource name of the SHA custom module. - *

Its format is: - *

* - * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}". - * * - * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}". - * * - * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}". + * @param name Required. The full resource name of the custom module, specified in one of the + * following formats: + *

    + *
  • `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}` + *
  • `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}` + *
  • `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EffectiveSecurityHealthAnalyticsCustomModule @@ -925,14 +1000,14 @@ public SecurityCenterManagementStub getStub() { * } * }
* - * @param name Required. The resource name of the SHA custom module. - *

Its format is: - *

* - * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}". - * * - * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}". - * * - * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}". + * @param name Required. The full resource name of the custom module, specified in one of the + * following formats: + *

    + *
  • `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}` + *
  • `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}` + *
  • `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EffectiveSecurityHealthAnalyticsCustomModule @@ -1046,9 +1121,14 @@ public SecurityCenterManagementStub getStub() { * } * }
* - * @param parent Required. Name of parent to list custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * @param parent Required. Name of parent organization, folder, or project in which to list custom + * modules, specified in one of the following formats: + *
    + *
  • `organizations/{organization}/locations/{location}` + *
  • `folders/{folder}/locations/{location}` + *
  • `projects/{project}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSecurityHealthAnalyticsCustomModulesPagedResponse @@ -1086,9 +1166,14 @@ public SecurityCenterManagementStub getStub() { * } * }
* - * @param parent Required. Name of parent to list custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * @param parent Required. Name of parent organization, folder, or project in which to list custom + * modules, specified in one of the following formats: + *
    + *
  • `organizations/{organization}/locations/{location}` + *
  • `folders/{folder}/locations/{location}` + *
  • `projects/{project}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSecurityHealthAnalyticsCustomModulesPagedResponse @@ -1126,9 +1211,14 @@ public SecurityCenterManagementStub getStub() { * } * }
* - * @param parent Required. Name of parent to list custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * @param parent Required. Name of parent organization, folder, or project in which to list custom + * modules, specified in one of the following formats: + *
    + *
  • `organizations/{organization}/locations/{location}` + *
  • `folders/{folder}/locations/{location}` + *
  • `projects/{project}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSecurityHealthAnalyticsCustomModulesPagedResponse @@ -1166,9 +1256,14 @@ public SecurityCenterManagementStub getStub() { * } * }
* - * @param parent Required. Name of parent to list custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * @param parent Required. Name of parent organization, folder, or project in which to list custom + * modules, specified in one of the following formats: + *
    + *
  • `organizations/{organization}/locations/{location}` + *
  • `folders/{folder}/locations/{location}` + *
  • `projects/{project}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSecurityHealthAnalyticsCustomModulesPagedResponse @@ -1331,9 +1426,14 @@ public SecurityCenterManagementStub getStub() { * } * }
* - * @param parent Required. Name of parent to list custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * @param parent Required. Name of the parent organization, folder, or project in which to list + * custom modules, specified in one of the following formats: + *
    + *
  • `organizations/{organization}/locations/{location}` + *
  • `folders/{folder}/locations/{location}` + *
  • `projects/{project}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse @@ -1370,9 +1470,14 @@ public SecurityCenterManagementStub getStub() { * } * }
* - * @param parent Required. Name of parent to list custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * @param parent Required. Name of the parent organization, folder, or project in which to list + * custom modules, specified in one of the following formats: + *
    + *
  • `organizations/{organization}/locations/{location}` + *
  • `folders/{folder}/locations/{location}` + *
  • `projects/{project}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse @@ -1409,9 +1514,14 @@ public SecurityCenterManagementStub getStub() { * } * }
* - * @param parent Required. Name of parent to list custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * @param parent Required. Name of the parent organization, folder, or project in which to list + * custom modules, specified in one of the following formats: + *
    + *
  • `organizations/{organization}/locations/{location}` + *
  • `folders/{folder}/locations/{location}` + *
  • `projects/{project}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse @@ -1448,9 +1558,14 @@ public SecurityCenterManagementStub getStub() { * } * }
* - * @param parent Required. Name of parent to list custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * @param parent Required. Name of the parent organization, folder, or project in which to list + * custom modules, specified in one of the following formats: + *
    + *
  • `organizations/{organization}/locations/{location}` + *
  • `folders/{folder}/locations/{location}` + *
  • `projects/{project}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse @@ -1753,9 +1868,14 @@ public final SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCusto * } * }
* - * @param parent Required. Name of the parent for the module. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * @param parent Required. Name of the parent organization, folder, or project of the module, + * specified in one of the following formats: + *
    + *
  • `organizations/{organization}/locations/{location}` + *
  • `folders/{folder}/locations/{location}` + *
  • `projects/{project}/locations/{location}` + *
+ * * @param securityHealthAnalyticsCustomModule Required. The resource being created * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1795,9 +1915,14 @@ public final SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCu * } * }
* - * @param parent Required. Name of the parent for the module. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * @param parent Required. Name of the parent organization, folder, or project of the module, + * specified in one of the following formats: + *
    + *
  • `organizations/{organization}/locations/{location}` + *
  • `folders/{folder}/locations/{location}` + *
  • `projects/{project}/locations/{location}` + *
+ * * @param securityHealthAnalyticsCustomModule Required. The resource being created * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1837,9 +1962,14 @@ public final SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCu * } * }
* - * @param parent Required. Name of the parent for the module. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * @param parent Required. Name of the parent organization, folder, or project of the module, + * specified in one of the following formats: + *
    + *
  • `organizations/{organization}/locations/{location}` + *
  • `folders/{folder}/locations/{location}` + *
  • `projects/{project}/locations/{location}` + *
+ * * @param securityHealthAnalyticsCustomModule Required. The resource being created * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1879,9 +2009,14 @@ public final SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCu * } * }
* - * @param parent Required. Name of the parent for the module. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * @param parent Required. Name of the parent organization, folder, or project of the module, + * specified in one of the following formats: + *
    + *
  • `organizations/{organization}/locations/{location}` + *
  • `folders/{folder}/locations/{location}` + *
  • `projects/{project}/locations/{location}` + *
+ * * @param securityHealthAnalyticsCustomModule Required. The resource being created * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2114,11 +2249,11 @@ public final SecurityHealthAnalyticsCustomModule updateSecurityHealthAnalyticsCu * @param name Required. The resource name of the SHA custom module. *

Its format is: *

* - * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". + * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. * * - * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". + * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. * * - * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". + * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteSecurityHealthAnalyticsCustomModule( @@ -2157,11 +2292,11 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * @param name Required. The resource name of the SHA custom module. *

Its format is: *

* - * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". + * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. * * - * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". + * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. * * - * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". + * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteSecurityHealthAnalyticsCustomModule(String name) { @@ -2391,8 +2526,8 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * }

* * @param parent Required. Name of parent to list effective custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * `organizations/{organization}/locations/{location}`, + * `folders/{folder}/locations/{location}`, or `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEffectiveEventThreatDetectionCustomModulesPagedResponse @@ -2431,8 +2566,8 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * }
* * @param parent Required. Name of parent to list effective custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * `organizations/{organization}/locations/{location}`, + * `folders/{folder}/locations/{location}`, or `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEffectiveEventThreatDetectionCustomModulesPagedResponse @@ -2471,8 +2606,8 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * }
* * @param parent Required. Name of parent to list effective custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * `organizations/{organization}/locations/{location}`, + * `folders/{folder}/locations/{location}`, or `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEffectiveEventThreatDetectionCustomModulesPagedResponse @@ -2511,8 +2646,8 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * } * * @param parent Required. Name of parent to list effective custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * `organizations/{organization}/locations/{location}`, + * `folders/{folder}/locations/{location}`, or `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEffectiveEventThreatDetectionCustomModulesPagedResponse @@ -2683,11 +2818,11 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * @param name Required. The resource name of the ETD custom module. *

Its format is: *

* - * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * - * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * - * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EffectiveEventThreatDetectionCustomModule @@ -2734,11 +2869,11 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * @param name Required. The resource name of the ETD custom module. *

Its format is: *

* - * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * - * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * - * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EffectiveEventThreatDetectionCustomModule @@ -2863,8 +2998,8 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * } * * @param parent Required. Name of parent to list custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * `organizations/{organization}/locations/{location}`, + * `folders/{folder}/locations/{location}`, or `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEventThreatDetectionCustomModulesPagedResponse @@ -2903,8 +3038,8 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * } * * @param parent Required. Name of parent to list custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * `organizations/{organization}/locations/{location}`, + * `folders/{folder}/locations/{location}`, or `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEventThreatDetectionCustomModulesPagedResponse @@ -2943,8 +3078,8 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * } * * @param parent Required. Name of parent to list custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * `organizations/{organization}/locations/{location}`, + * `folders/{folder}/locations/{location}`, or `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEventThreatDetectionCustomModulesPagedResponse @@ -2983,8 +3118,8 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * } * * @param parent Required. Name of parent to list custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * `organizations/{organization}/locations/{location}`, + * `folders/{folder}/locations/{location}`, or `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEventThreatDetectionCustomModulesPagedResponse @@ -3147,8 +3282,8 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * } * * @param parent Required. Name of parent to list custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * `organizations/{organization}/locations/{location}`, + * `folders/{folder}/locations/{location}`, or `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDescendantEventThreatDetectionCustomModulesPagedResponse @@ -3186,8 +3321,8 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * } * * @param parent Required. Name of parent to list custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * `organizations/{organization}/locations/{location}`, + * `folders/{folder}/locations/{location}`, or `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDescendantEventThreatDetectionCustomModulesPagedResponse @@ -3225,8 +3360,8 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * } * * @param parent Required. Name of parent to list custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * `organizations/{organization}/locations/{location}`, + * `folders/{folder}/locations/{location}`, or `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDescendantEventThreatDetectionCustomModulesPagedResponse @@ -3264,8 +3399,8 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * } * * @param parent Required. Name of parent to list custom modules. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * `organizations/{organization}/locations/{location}`, + * `folders/{folder}/locations/{location}`, or `projects/{project}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDescendantEventThreatDetectionCustomModulesPagedResponse @@ -3428,11 +3563,11 @@ public final void deleteSecurityHealthAnalyticsCustomModule( * @param name Required. The resource name of the ETD custom module. *

Its format is: *

* - * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * - * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * - * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EventThreatDetectionCustomModule getEventThreatDetectionCustomModule( @@ -3471,11 +3606,11 @@ public final EventThreatDetectionCustomModule getEventThreatDetectionCustomModul * @param name Required. The resource name of the ETD custom module. *

Its format is: *

* - * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * - * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * - * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EventThreatDetectionCustomModule getEventThreatDetectionCustomModule(String name) { @@ -3582,8 +3717,8 @@ public final EventThreatDetectionCustomModule getEventThreatDetectionCustomModul * } * * @param parent Required. Name of parent for the module. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * `organizations/{organization}/locations/{location}`, + * `folders/{folder}/locations/{location}`, or `projects/{project}/locations/{location}` * @param eventThreatDetectionCustomModule Required. The module to create. The * event_threat_detection_custom_module.name will be ignored and server generated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -3625,8 +3760,8 @@ public final EventThreatDetectionCustomModule createEventThreatDetectionCustomMo * } * * @param parent Required. Name of parent for the module. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * `organizations/{organization}/locations/{location}`, + * `folders/{folder}/locations/{location}`, or `projects/{project}/locations/{location}` * @param eventThreatDetectionCustomModule Required. The module to create. The * event_threat_detection_custom_module.name will be ignored and server generated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -3667,8 +3802,8 @@ public final EventThreatDetectionCustomModule createEventThreatDetectionCustomMo * } * * @param parent Required. Name of parent for the module. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * `organizations/{organization}/locations/{location}`, + * `folders/{folder}/locations/{location}`, or `projects/{project}/locations/{location}` * @param eventThreatDetectionCustomModule Required. The module to create. The * event_threat_detection_custom_module.name will be ignored and server generated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -3710,8 +3845,8 @@ public final EventThreatDetectionCustomModule createEventThreatDetectionCustomMo * } * * @param parent Required. Name of parent for the module. Its format is - * "organizations/{organization}/locations/{location}", - * "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}" + * `organizations/{organization}/locations/{location}`, + * `folders/{folder}/locations/{location}`, or `projects/{project}/locations/{location}` * @param eventThreatDetectionCustomModule Required. The module to create. The * event_threat_detection_custom_module.name will be ignored and server generated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -3949,11 +4084,11 @@ public final EventThreatDetectionCustomModule updateEventThreatDetectionCustomMo * @param name Required. The resource name of the ETD custom module. *

Its format is: *

* - * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * - * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * - * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteEventThreatDetectionCustomModule( @@ -3992,11 +4127,11 @@ public final void deleteEventThreatDetectionCustomModule( * @param name Required. The resource name of the ETD custom module. *

Its format is: *

* - * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * - * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * - * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteEventThreatDetectionCustomModule(String name) { @@ -4149,6 +4284,512 @@ public final void deleteEventThreatDetectionCustomModule( return stub.validateEventThreatDetectionCustomModuleCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets service settings for the specified Security Command Center service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecurityCenterManagementClient securityCenterManagementClient =
+   *     SecurityCenterManagementClient.create()) {
+   *   SecurityCenterServiceName name =
+   *       SecurityCenterServiceName.ofProjectLocationServiceName(
+   *           "[PROJECT]", "[LOCATION]", "[SERVICE]");
+   *   SecurityCenterService response =
+   *       securityCenterManagementClient.getSecurityCenterService(name);
+   * }
+   * }
+ * + * @param name Required. The Security Command Center service to retrieve. + *

Formats: + *

* organizations/{organization}/locations/{location}/securityCenterServices/{service} + * * folders/{folder}/locations/{location}/securityCenterServices/{service} * + * projects/{project}/locations/{location}/securityCenterServices/{service} + *

The possible values for id {service} are: + *

* container-threat-detection * event-threat-detection * + * security-health-analytics * vm-threat-detection * web-security-scanner + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SecurityCenterService getSecurityCenterService(SecurityCenterServiceName name) { + GetSecurityCenterServiceRequest request = + GetSecurityCenterServiceRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getSecurityCenterService(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets service settings for the specified Security Command Center service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecurityCenterManagementClient securityCenterManagementClient =
+   *     SecurityCenterManagementClient.create()) {
+   *   String name =
+   *       SecurityCenterServiceName.ofProjectLocationServiceName(
+   *               "[PROJECT]", "[LOCATION]", "[SERVICE]")
+   *           .toString();
+   *   SecurityCenterService response =
+   *       securityCenterManagementClient.getSecurityCenterService(name);
+   * }
+   * }
+ * + * @param name Required. The Security Command Center service to retrieve. + *

Formats: + *

* organizations/{organization}/locations/{location}/securityCenterServices/{service} + * * folders/{folder}/locations/{location}/securityCenterServices/{service} * + * projects/{project}/locations/{location}/securityCenterServices/{service} + *

The possible values for id {service} are: + *

* container-threat-detection * event-threat-detection * + * security-health-analytics * vm-threat-detection * web-security-scanner + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SecurityCenterService getSecurityCenterService(String name) { + GetSecurityCenterServiceRequest request = + GetSecurityCenterServiceRequest.newBuilder().setName(name).build(); + return getSecurityCenterService(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets service settings for the specified Security Command Center service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecurityCenterManagementClient securityCenterManagementClient =
+   *     SecurityCenterManagementClient.create()) {
+   *   GetSecurityCenterServiceRequest request =
+   *       GetSecurityCenterServiceRequest.newBuilder()
+   *           .setName(
+   *               SecurityCenterServiceName.ofProjectLocationServiceName(
+   *                       "[PROJECT]", "[LOCATION]", "[SERVICE]")
+   *                   .toString())
+   *           .build();
+   *   SecurityCenterService response =
+   *       securityCenterManagementClient.getSecurityCenterService(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SecurityCenterService getSecurityCenterService( + GetSecurityCenterServiceRequest request) { + return getSecurityCenterServiceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets service settings for the specified Security Command Center service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecurityCenterManagementClient securityCenterManagementClient =
+   *     SecurityCenterManagementClient.create()) {
+   *   GetSecurityCenterServiceRequest request =
+   *       GetSecurityCenterServiceRequest.newBuilder()
+   *           .setName(
+   *               SecurityCenterServiceName.ofProjectLocationServiceName(
+   *                       "[PROJECT]", "[LOCATION]", "[SERVICE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       securityCenterManagementClient.getSecurityCenterServiceCallable().futureCall(request);
+   *   // Do something.
+   *   SecurityCenterService response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getSecurityCenterServiceCallable() { + return stub.getSecurityCenterServiceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all Security Command Center services for the given parent. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecurityCenterManagementClient securityCenterManagementClient =
+   *     SecurityCenterManagementClient.create()) {
+   *   FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
+   *   for (SecurityCenterService element :
+   *       securityCenterManagementClient.listSecurityCenterServices(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the parent to list Security Command Center services. + *

Formats: + *

* organizations/{organization}/locations/{location} * + * folders/{folder}/locations/{location} * projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSecurityCenterServicesPagedResponse listSecurityCenterServices( + FolderLocationName parent) { + ListSecurityCenterServicesRequest request = + ListSecurityCenterServicesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSecurityCenterServices(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all Security Command Center services for the given parent. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecurityCenterManagementClient securityCenterManagementClient =
+   *     SecurityCenterManagementClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (SecurityCenterService element :
+   *       securityCenterManagementClient.listSecurityCenterServices(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the parent to list Security Command Center services. + *

Formats: + *

* organizations/{organization}/locations/{location} * + * folders/{folder}/locations/{location} * projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSecurityCenterServicesPagedResponse listSecurityCenterServices( + LocationName parent) { + ListSecurityCenterServicesRequest request = + ListSecurityCenterServicesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSecurityCenterServices(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all Security Command Center services for the given parent. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecurityCenterManagementClient securityCenterManagementClient =
+   *     SecurityCenterManagementClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   for (SecurityCenterService element :
+   *       securityCenterManagementClient.listSecurityCenterServices(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the parent to list Security Command Center services. + *

Formats: + *

* organizations/{organization}/locations/{location} * + * folders/{folder}/locations/{location} * projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSecurityCenterServicesPagedResponse listSecurityCenterServices( + OrganizationLocationName parent) { + ListSecurityCenterServicesRequest request = + ListSecurityCenterServicesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSecurityCenterServices(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all Security Command Center services for the given parent. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecurityCenterManagementClient securityCenterManagementClient =
+   *     SecurityCenterManagementClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (SecurityCenterService element :
+   *       securityCenterManagementClient.listSecurityCenterServices(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the parent to list Security Command Center services. + *

Formats: + *

* organizations/{organization}/locations/{location} * + * folders/{folder}/locations/{location} * projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSecurityCenterServicesPagedResponse listSecurityCenterServices(String parent) { + ListSecurityCenterServicesRequest request = + ListSecurityCenterServicesRequest.newBuilder().setParent(parent).build(); + return listSecurityCenterServices(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all Security Command Center services for the given parent. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecurityCenterManagementClient securityCenterManagementClient =
+   *     SecurityCenterManagementClient.create()) {
+   *   ListSecurityCenterServicesRequest request =
+   *       ListSecurityCenterServicesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (SecurityCenterService element :
+   *       securityCenterManagementClient.listSecurityCenterServices(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSecurityCenterServicesPagedResponse listSecurityCenterServices( + ListSecurityCenterServicesRequest request) { + return listSecurityCenterServicesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all Security Command Center services for the given parent. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecurityCenterManagementClient securityCenterManagementClient =
+   *     SecurityCenterManagementClient.create()) {
+   *   ListSecurityCenterServicesRequest request =
+   *       ListSecurityCenterServicesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       securityCenterManagementClient
+   *           .listSecurityCenterServicesPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (SecurityCenterService element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListSecurityCenterServicesRequest, ListSecurityCenterServicesPagedResponse> + listSecurityCenterServicesPagedCallable() { + return stub.listSecurityCenterServicesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all Security Command Center services for the given parent. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecurityCenterManagementClient securityCenterManagementClient =
+   *     SecurityCenterManagementClient.create()) {
+   *   ListSecurityCenterServicesRequest request =
+   *       ListSecurityCenterServicesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListSecurityCenterServicesResponse response =
+   *         securityCenterManagementClient.listSecurityCenterServicesCallable().call(request);
+   *     for (SecurityCenterService element : response.getSecurityCenterServicesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listSecurityCenterServicesCallable() { + return stub.listSecurityCenterServicesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Security Command Center service using the given update mask. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecurityCenterManagementClient securityCenterManagementClient =
+   *     SecurityCenterManagementClient.create()) {
+   *   SecurityCenterService securityCenterService = SecurityCenterService.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   SecurityCenterService response =
+   *       securityCenterManagementClient.updateSecurityCenterService(
+   *           securityCenterService, updateMask);
+   * }
+   * }
+ * + * @param securityCenterService Required. The updated service. + * @param updateMask Required. The list of fields to be updated. Possible values: + *

* "intended_enablement_state" * "modules" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SecurityCenterService updateSecurityCenterService( + SecurityCenterService securityCenterService, FieldMask updateMask) { + UpdateSecurityCenterServiceRequest request = + UpdateSecurityCenterServiceRequest.newBuilder() + .setSecurityCenterService(securityCenterService) + .setUpdateMask(updateMask) + .build(); + return updateSecurityCenterService(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Security Command Center service using the given update mask. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecurityCenterManagementClient securityCenterManagementClient =
+   *     SecurityCenterManagementClient.create()) {
+   *   UpdateSecurityCenterServiceRequest request =
+   *       UpdateSecurityCenterServiceRequest.newBuilder()
+   *           .setSecurityCenterService(SecurityCenterService.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   SecurityCenterService response =
+   *       securityCenterManagementClient.updateSecurityCenterService(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SecurityCenterService updateSecurityCenterService( + UpdateSecurityCenterServiceRequest request) { + return updateSecurityCenterServiceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a Security Command Center service using the given update mask. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecurityCenterManagementClient securityCenterManagementClient =
+   *     SecurityCenterManagementClient.create()) {
+   *   UpdateSecurityCenterServiceRequest request =
+   *       UpdateSecurityCenterServiceRequest.newBuilder()
+   *           .setSecurityCenterService(SecurityCenterService.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   ApiFuture future =
+   *       securityCenterManagementClient.updateSecurityCenterServiceCallable().futureCall(request);
+   *   // Do something.
+   *   SecurityCenterService response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateSecurityCenterServiceCallable() { + return stub.updateSecurityCenterServiceCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. @@ -4959,6 +5600,102 @@ protected ListDescendantEventThreatDetectionCustomModulesFixedSizeCollection cre } } + public static class ListSecurityCenterServicesPagedResponse + extends AbstractPagedListResponse< + ListSecurityCenterServicesRequest, + ListSecurityCenterServicesResponse, + SecurityCenterService, + ListSecurityCenterServicesPage, + ListSecurityCenterServicesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListSecurityCenterServicesRequest, + ListSecurityCenterServicesResponse, + SecurityCenterService> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSecurityCenterServicesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListSecurityCenterServicesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListSecurityCenterServicesPagedResponse(ListSecurityCenterServicesPage page) { + super(page, ListSecurityCenterServicesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSecurityCenterServicesPage + extends AbstractPage< + ListSecurityCenterServicesRequest, + ListSecurityCenterServicesResponse, + SecurityCenterService, + ListSecurityCenterServicesPage> { + + private ListSecurityCenterServicesPage( + PageContext< + ListSecurityCenterServicesRequest, + ListSecurityCenterServicesResponse, + SecurityCenterService> + context, + ListSecurityCenterServicesResponse response) { + super(context, response); + } + + private static ListSecurityCenterServicesPage createEmptyPage() { + return new ListSecurityCenterServicesPage(null, null); + } + + @Override + protected ListSecurityCenterServicesPage createPage( + PageContext< + ListSecurityCenterServicesRequest, + ListSecurityCenterServicesResponse, + SecurityCenterService> + context, + ListSecurityCenterServicesResponse response) { + return new ListSecurityCenterServicesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListSecurityCenterServicesRequest, + ListSecurityCenterServicesResponse, + SecurityCenterService> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSecurityCenterServicesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSecurityCenterServicesRequest, + ListSecurityCenterServicesResponse, + SecurityCenterService, + ListSecurityCenterServicesPage, + ListSecurityCenterServicesFixedSizeCollection> { + + private ListSecurityCenterServicesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSecurityCenterServicesFixedSizeCollection createEmptyCollection() { + return new ListSecurityCenterServicesFixedSizeCollection(null, 0); + } + + @Override + protected ListSecurityCenterServicesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSecurityCenterServicesFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java index 91df9b03b146..40f4432ade68 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementSettings.java @@ -22,6 +22,7 @@ import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListLocationsPagedResponse; +import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListSecurityCenterServicesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse; import com.google.api.core.ApiFunction; @@ -294,6 +295,30 @@ public class SecurityCenterManagementSettings .validateEventThreatDetectionCustomModuleSettings(); } + /** Returns the object with the settings used for calls to getSecurityCenterService. */ + public UnaryCallSettings + getSecurityCenterServiceSettings() { + return ((SecurityCenterManagementStubSettings) getStubSettings()) + .getSecurityCenterServiceSettings(); + } + + /** Returns the object with the settings used for calls to listSecurityCenterServices. */ + public PagedCallSettings< + ListSecurityCenterServicesRequest, + ListSecurityCenterServicesResponse, + ListSecurityCenterServicesPagedResponse> + listSecurityCenterServicesSettings() { + return ((SecurityCenterManagementStubSettings) getStubSettings()) + .listSecurityCenterServicesSettings(); + } + + /** Returns the object with the settings used for calls to updateSecurityCenterService. */ + public UnaryCallSettings + updateSecurityCenterServiceSettings() { + return ((SecurityCenterManagementStubSettings) getStubSettings()) + .updateSecurityCenterServiceSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -610,6 +635,27 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().validateEventThreatDetectionCustomModuleSettings(); } + /** Returns the builder for the settings used for calls to getSecurityCenterService. */ + public UnaryCallSettings.Builder + getSecurityCenterServiceSettings() { + return getStubSettingsBuilder().getSecurityCenterServiceSettings(); + } + + /** Returns the builder for the settings used for calls to listSecurityCenterServices. */ + public PagedCallSettings.Builder< + ListSecurityCenterServicesRequest, + ListSecurityCenterServicesResponse, + ListSecurityCenterServicesPagedResponse> + listSecurityCenterServicesSettings() { + return getStubSettingsBuilder().listSecurityCenterServicesSettings(); + } + + /** Returns the builder for the settings used for calls to updateSecurityCenterService. */ + public UnaryCallSettings.Builder + updateSecurityCenterServiceSettings() { + return getStubSettingsBuilder().updateSecurityCenterServiceSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/gapic_metadata.json b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/gapic_metadata.json index 7192fff9bf14..c9efcc9f8982 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/gapic_metadata.json +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/gapic_metadata.json @@ -34,6 +34,9 @@ "GetLocation": { "methods": ["getLocation", "getLocationCallable"] }, + "GetSecurityCenterService": { + "methods": ["getSecurityCenterService", "getSecurityCenterService", "getSecurityCenterService", "getSecurityCenterServiceCallable"] + }, "GetSecurityHealthAnalyticsCustomModule": { "methods": ["getSecurityHealthAnalyticsCustomModule", "getSecurityHealthAnalyticsCustomModule", "getSecurityHealthAnalyticsCustomModule", "getSecurityHealthAnalyticsCustomModuleCallable"] }, @@ -55,6 +58,9 @@ "ListLocations": { "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] }, + "ListSecurityCenterServices": { + "methods": ["listSecurityCenterServices", "listSecurityCenterServices", "listSecurityCenterServices", "listSecurityCenterServices", "listSecurityCenterServices", "listSecurityCenterServicesPagedCallable", "listSecurityCenterServicesCallable"] + }, "ListSecurityHealthAnalyticsCustomModules": { "methods": ["listSecurityHealthAnalyticsCustomModules", "listSecurityHealthAnalyticsCustomModules", "listSecurityHealthAnalyticsCustomModules", "listSecurityHealthAnalyticsCustomModules", "listSecurityHealthAnalyticsCustomModules", "listSecurityHealthAnalyticsCustomModulesPagedCallable", "listSecurityHealthAnalyticsCustomModulesCallable"] }, @@ -64,6 +70,9 @@ "UpdateEventThreatDetectionCustomModule": { "methods": ["updateEventThreatDetectionCustomModule", "updateEventThreatDetectionCustomModule", "updateEventThreatDetectionCustomModuleCallable"] }, + "UpdateSecurityCenterService": { + "methods": ["updateSecurityCenterService", "updateSecurityCenterService", "updateSecurityCenterServiceCallable"] + }, "UpdateSecurityHealthAnalyticsCustomModule": { "methods": ["updateSecurityHealthAnalyticsCustomModule", "updateSecurityHealthAnalyticsCustomModule", "updateSecurityHealthAnalyticsCustomModuleCallable"] }, diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementStub.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementStub.java index 872d7bf07da1..382017359f04 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementStub.java +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/GrpcSecurityCenterManagementStub.java @@ -22,6 +22,7 @@ import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListLocationsPagedResponse; +import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListSecurityCenterServicesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse; import com.google.api.gax.core.BackgroundResource; @@ -45,6 +46,7 @@ import com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest; +import com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest; import com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest; import com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse; @@ -56,12 +58,16 @@ import com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse; import com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest; import com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse; +import com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest; +import com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse; import com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest; import com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterService; import com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule; import com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse; import com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest; +import com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest; import com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse; @@ -397,6 +403,44 @@ public class GrpcSecurityCenterManagementStub extends SecurityCenterManagementSt ValidateEventThreatDetectionCustomModuleResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + getSecurityCenterServiceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.securitycentermanagement.v1.SecurityCenterManagement/GetSecurityCenterService") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSecurityCenterServiceRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SecurityCenterService.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListSecurityCenterServicesRequest, ListSecurityCenterServicesResponse> + listSecurityCenterServicesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.securitycentermanagement.v1.SecurityCenterManagement/ListSecurityCenterServices") + .setRequestMarshaller( + ProtoUtils.marshaller(ListSecurityCenterServicesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSecurityCenterServicesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateSecurityCenterServiceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.securitycentermanagement.v1.SecurityCenterManagement/UpdateSecurityCenterService") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateSecurityCenterServiceRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SecurityCenterService.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -502,6 +546,15 @@ public class GrpcSecurityCenterManagementStub extends SecurityCenterManagementSt ValidateEventThreatDetectionCustomModuleRequest, ValidateEventThreatDetectionCustomModuleResponse> validateEventThreatDetectionCustomModuleCallable; + private final UnaryCallable + getSecurityCenterServiceCallable; + private final UnaryCallable + listSecurityCenterServicesCallable; + private final UnaryCallable< + ListSecurityCenterServicesRequest, ListSecurityCenterServicesPagedResponse> + listSecurityCenterServicesPagedCallable; + private final UnaryCallable + updateSecurityCenterServiceCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -829,6 +882,42 @@ protected GrpcSecurityCenterManagementStub( return builder.build(); }) .build(); + GrpcCallSettings + getSecurityCenterServiceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSecurityCenterServiceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listSecurityCenterServicesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listSecurityCenterServicesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateSecurityCenterServiceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSecurityCenterServiceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "security_center_service.name", + String.valueOf(request.getSecurityCenterService().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -970,6 +1059,26 @@ protected GrpcSecurityCenterManagementStub( validateEventThreatDetectionCustomModuleTransportSettings, settings.validateEventThreatDetectionCustomModuleSettings(), clientContext); + this.getSecurityCenterServiceCallable = + callableFactory.createUnaryCallable( + getSecurityCenterServiceTransportSettings, + settings.getSecurityCenterServiceSettings(), + clientContext); + this.listSecurityCenterServicesCallable = + callableFactory.createUnaryCallable( + listSecurityCenterServicesTransportSettings, + settings.listSecurityCenterServicesSettings(), + clientContext); + this.listSecurityCenterServicesPagedCallable = + callableFactory.createPagedCallable( + listSecurityCenterServicesTransportSettings, + settings.listSecurityCenterServicesSettings(), + clientContext); + this.updateSecurityCenterServiceCallable = + callableFactory.createUnaryCallable( + updateSecurityCenterServiceTransportSettings, + settings.updateSecurityCenterServiceSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1169,6 +1278,30 @@ public GrpcOperationsStub getOperationsStub() { return validateEventThreatDetectionCustomModuleCallable; } + @Override + public UnaryCallable + getSecurityCenterServiceCallable() { + return getSecurityCenterServiceCallable; + } + + @Override + public UnaryCallable + listSecurityCenterServicesCallable() { + return listSecurityCenterServicesCallable; + } + + @Override + public UnaryCallable + listSecurityCenterServicesPagedCallable() { + return listSecurityCenterServicesPagedCallable; + } + + @Override + public UnaryCallable + updateSecurityCenterServiceCallable() { + return updateSecurityCenterServiceCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementStub.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementStub.java index 26bd8b67caae..10356e614dfd 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementStub.java +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementStub.java @@ -22,6 +22,7 @@ import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListLocationsPagedResponse; +import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListSecurityCenterServicesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse; import com.google.api.core.InternalApi; @@ -50,6 +51,7 @@ import com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest; +import com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest; import com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest; import com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse; @@ -61,12 +63,16 @@ import com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse; import com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest; import com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse; +import com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest; +import com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse; import com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest; import com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterService; import com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule; import com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse; import com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest; +import com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest; import com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse; @@ -957,6 +963,138 @@ public class HttpJsonSecurityCenterManagementStub extends SecurityCenterManageme .build()) .build(); + private static final ApiMethodDescriptor + getSecurityCenterServiceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycentermanagement.v1.SecurityCenterManagement/GetSecurityCenterService") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/securityCenterServices/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/locations/*/securityCenterServices/*}", + "/v1/{name=organizations/*/locations/*/securityCenterServices/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SecurityCenterService.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListSecurityCenterServicesRequest, ListSecurityCenterServicesResponse> + listSecurityCenterServicesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.securitycentermanagement.v1.SecurityCenterManagement/ListSecurityCenterServices") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/securityCenterServices", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*/locations/*}/securityCenterServices", + "/v1/{parent=organizations/*/locations/*}/securityCenterServices") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSecurityCenterServicesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + UpdateSecurityCenterServiceRequest, SecurityCenterService> + updateSecurityCenterServiceMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.securitycentermanagement.v1.SecurityCenterManagement/UpdateSecurityCenterService") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{securityCenterService.name=projects/*/locations/*/securityCenterServices/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "securityCenterService.name", + request.getSecurityCenterService().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{securityCenterService.name=folders/*/locations/*/securityCenterServices/*}", + "/v1/{securityCenterService.name=organizations/*/locations/*/securityCenterServices/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "securityCenterService", + request.getSecurityCenterService(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SecurityCenterService.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1111,6 +1249,15 @@ public class HttpJsonSecurityCenterManagementStub extends SecurityCenterManageme ValidateEventThreatDetectionCustomModuleRequest, ValidateEventThreatDetectionCustomModuleResponse> validateEventThreatDetectionCustomModuleCallable; + private final UnaryCallable + getSecurityCenterServiceCallable; + private final UnaryCallable + listSecurityCenterServicesCallable; + private final UnaryCallable< + ListSecurityCenterServicesRequest, ListSecurityCenterServicesPagedResponse> + listSecurityCenterServicesPagedCallable; + private final UnaryCallable + updateSecurityCenterServiceCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -1458,6 +1605,47 @@ protected HttpJsonSecurityCenterManagementStub( return builder.build(); }) .build(); + HttpJsonCallSettings + getSecurityCenterServiceTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getSecurityCenterServiceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listSecurityCenterServicesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listSecurityCenterServicesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateSecurityCenterServiceTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(updateSecurityCenterServiceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "security_center_service.name", + String.valueOf(request.getSecurityCenterService().getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1602,6 +1790,26 @@ protected HttpJsonSecurityCenterManagementStub( validateEventThreatDetectionCustomModuleTransportSettings, settings.validateEventThreatDetectionCustomModuleSettings(), clientContext); + this.getSecurityCenterServiceCallable = + callableFactory.createUnaryCallable( + getSecurityCenterServiceTransportSettings, + settings.getSecurityCenterServiceSettings(), + clientContext); + this.listSecurityCenterServicesCallable = + callableFactory.createUnaryCallable( + listSecurityCenterServicesTransportSettings, + settings.listSecurityCenterServicesSettings(), + clientContext); + this.listSecurityCenterServicesPagedCallable = + callableFactory.createPagedCallable( + listSecurityCenterServicesTransportSettings, + settings.listSecurityCenterServicesSettings(), + clientContext); + this.updateSecurityCenterServiceCallable = + callableFactory.createUnaryCallable( + updateSecurityCenterServiceTransportSettings, + settings.updateSecurityCenterServiceSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1637,6 +1845,9 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateEventThreatDetectionCustomModuleMethodDescriptor); methodDescriptors.add(deleteEventThreatDetectionCustomModuleMethodDescriptor); methodDescriptors.add(validateEventThreatDetectionCustomModuleMethodDescriptor); + methodDescriptors.add(getSecurityCenterServiceMethodDescriptor); + methodDescriptors.add(listSecurityCenterServicesMethodDescriptor); + methodDescriptors.add(updateSecurityCenterServiceMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -1823,6 +2034,30 @@ public static List getMethodDescriptors() { return validateEventThreatDetectionCustomModuleCallable; } + @Override + public UnaryCallable + getSecurityCenterServiceCallable() { + return getSecurityCenterServiceCallable; + } + + @Override + public UnaryCallable + listSecurityCenterServicesCallable() { + return listSecurityCenterServicesCallable; + } + + @Override + public UnaryCallable + listSecurityCenterServicesPagedCallable() { + return listSecurityCenterServicesPagedCallable; + } + + @Override + public UnaryCallable + updateSecurityCenterServiceCallable() { + return updateSecurityCenterServiceCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStub.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStub.java index 471eb4bbf805..ce61511a2da1 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStub.java +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStub.java @@ -22,6 +22,7 @@ import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListLocationsPagedResponse; +import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListSecurityCenterServicesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse; import com.google.api.gax.core.BackgroundResource; @@ -40,6 +41,7 @@ import com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest; +import com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest; import com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest; import com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse; @@ -51,12 +53,16 @@ import com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse; import com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest; import com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse; +import com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest; +import com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse; import com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest; import com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterService; import com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule; import com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse; import com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest; +import com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest; import com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse; @@ -253,6 +259,29 @@ public abstract class SecurityCenterManagementStub implements BackgroundResource "Not implemented: validateEventThreatDetectionCustomModuleCallable()"); } + public UnaryCallable + getSecurityCenterServiceCallable() { + throw new UnsupportedOperationException("Not implemented: getSecurityCenterServiceCallable()"); + } + + public UnaryCallable + listSecurityCenterServicesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listSecurityCenterServicesPagedCallable()"); + } + + public UnaryCallable + listSecurityCenterServicesCallable() { + throw new UnsupportedOperationException( + "Not implemented: listSecurityCenterServicesCallable()"); + } + + public UnaryCallable + updateSecurityCenterServiceCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateSecurityCenterServiceCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java index d3de3bd9e5d2..afc8ea3f8f83 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/SecurityCenterManagementStubSettings.java @@ -22,6 +22,7 @@ import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListLocationsPagedResponse; +import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListSecurityCenterServicesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse; import com.google.api.core.ApiFunction; @@ -63,6 +64,7 @@ import com.google.cloud.securitycentermanagement.v1.GetEffectiveEventThreatDetectionCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.GetEventThreatDetectionCustomModuleRequest; +import com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest; import com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesRequest; import com.google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse; @@ -74,12 +76,16 @@ import com.google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse; import com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesRequest; import com.google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse; +import com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest; +import com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse; import com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest; import com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterService; import com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule; import com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse; import com.google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest; +import com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest; import com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleRequest; import com.google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse; @@ -208,6 +214,15 @@ public class SecurityCenterManagementStubSettings ValidateEventThreatDetectionCustomModuleRequest, ValidateEventThreatDetectionCustomModuleResponse> validateEventThreatDetectionCustomModuleSettings; + private final UnaryCallSettings + getSecurityCenterServiceSettings; + private final PagedCallSettings< + ListSecurityCenterServicesRequest, + ListSecurityCenterServicesResponse, + ListSecurityCenterServicesPagedResponse> + listSecurityCenterServicesSettings; + private final UnaryCallSettings + updateSecurityCenterServiceSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -517,6 +532,55 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ListSecurityCenterServicesRequest, + ListSecurityCenterServicesResponse, + SecurityCenterService> + LIST_SECURITY_CENTER_SERVICES_PAGE_STR_DESC = + new PagedListDescriptor< + ListSecurityCenterServicesRequest, + ListSecurityCenterServicesResponse, + SecurityCenterService>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSecurityCenterServicesRequest injectToken( + ListSecurityCenterServicesRequest payload, String token) { + return ListSecurityCenterServicesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListSecurityCenterServicesRequest injectPageSize( + ListSecurityCenterServicesRequest payload, int pageSize) { + return ListSecurityCenterServicesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListSecurityCenterServicesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSecurityCenterServicesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListSecurityCenterServicesResponse payload) { + return payload.getSecurityCenterServicesList() == null + ? ImmutableList.of() + : payload.getSecurityCenterServicesList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -761,6 +825,34 @@ public Iterable extractResources(ListLocationsResponse payload) { } }; + private static final PagedListResponseFactory< + ListSecurityCenterServicesRequest, + ListSecurityCenterServicesResponse, + ListSecurityCenterServicesPagedResponse> + LIST_SECURITY_CENTER_SERVICES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSecurityCenterServicesRequest, + ListSecurityCenterServicesResponse, + ListSecurityCenterServicesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListSecurityCenterServicesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListSecurityCenterServicesRequest, + ListSecurityCenterServicesResponse, + SecurityCenterService> + pageContext = + PageContext.create( + callable, LIST_SECURITY_CENTER_SERVICES_PAGE_STR_DESC, request, context); + return ListSecurityCenterServicesPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -964,6 +1056,27 @@ public ApiFuture getFuturePagedResponse( return validateEventThreatDetectionCustomModuleSettings; } + /** Returns the object with the settings used for calls to getSecurityCenterService. */ + public UnaryCallSettings + getSecurityCenterServiceSettings() { + return getSecurityCenterServiceSettings; + } + + /** Returns the object with the settings used for calls to listSecurityCenterServices. */ + public PagedCallSettings< + ListSecurityCenterServicesRequest, + ListSecurityCenterServicesResponse, + ListSecurityCenterServicesPagedResponse> + listSecurityCenterServicesSettings() { + return listSecurityCenterServicesSettings; + } + + /** Returns the object with the settings used for calls to updateSecurityCenterService. */ + public UnaryCallSettings + updateSecurityCenterServiceSettings() { + return updateSecurityCenterServiceSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -1121,6 +1234,11 @@ protected SecurityCenterManagementStubSettings(Builder settingsBuilder) throws I settingsBuilder.deleteEventThreatDetectionCustomModuleSettings().build(); validateEventThreatDetectionCustomModuleSettings = settingsBuilder.validateEventThreatDetectionCustomModuleSettings().build(); + getSecurityCenterServiceSettings = settingsBuilder.getSecurityCenterServiceSettings().build(); + listSecurityCenterServicesSettings = + settingsBuilder.listSecurityCenterServicesSettings().build(); + updateSecurityCenterServiceSettings = + settingsBuilder.updateSecurityCenterServiceSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -1197,6 +1315,16 @@ public static class Builder ValidateEventThreatDetectionCustomModuleRequest, ValidateEventThreatDetectionCustomModuleResponse> validateEventThreatDetectionCustomModuleSettings; + private final UnaryCallSettings.Builder + getSecurityCenterServiceSettings; + private final PagedCallSettings.Builder< + ListSecurityCenterServicesRequest, + ListSecurityCenterServicesResponse, + ListSecurityCenterServicesPagedResponse> + listSecurityCenterServicesSettings; + private final UnaryCallSettings.Builder< + UpdateSecurityCenterServiceRequest, SecurityCenterService> + updateSecurityCenterServiceSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -1293,6 +1421,10 @@ protected Builder(ClientContext clientContext) { UnaryCallSettings.newUnaryCallSettingsBuilder(); validateEventThreatDetectionCustomModuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getSecurityCenterServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listSecurityCenterServicesSettings = + PagedCallSettings.newBuilder(LIST_SECURITY_CENTER_SERVICES_PAGE_STR_FACT); + updateSecurityCenterServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1316,6 +1448,9 @@ protected Builder(ClientContext clientContext) { updateEventThreatDetectionCustomModuleSettings, deleteEventThreatDetectionCustomModuleSettings, validateEventThreatDetectionCustomModuleSettings, + getSecurityCenterServiceSettings, + listSecurityCenterServicesSettings, + updateSecurityCenterServiceSettings, listLocationsSettings, getLocationSettings); initDefaults(this); @@ -1360,6 +1495,10 @@ protected Builder(SecurityCenterManagementStubSettings settings) { settings.deleteEventThreatDetectionCustomModuleSettings.toBuilder(); validateEventThreatDetectionCustomModuleSettings = settings.validateEventThreatDetectionCustomModuleSettings.toBuilder(); + getSecurityCenterServiceSettings = settings.getSecurityCenterServiceSettings.toBuilder(); + listSecurityCenterServicesSettings = settings.listSecurityCenterServicesSettings.toBuilder(); + updateSecurityCenterServiceSettings = + settings.updateSecurityCenterServiceSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); @@ -1383,6 +1522,9 @@ protected Builder(SecurityCenterManagementStubSettings settings) { updateEventThreatDetectionCustomModuleSettings, deleteEventThreatDetectionCustomModuleSettings, validateEventThreatDetectionCustomModuleSettings, + getSecurityCenterServiceSettings, + listSecurityCenterServicesSettings, + updateSecurityCenterServiceSettings, listLocationsSettings, getLocationSettings); } @@ -1502,6 +1644,21 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .getSecurityCenterServiceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listSecurityCenterServicesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateSecurityCenterServiceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -1722,6 +1879,27 @@ public Builder applyToAllUnaryMethods( return validateEventThreatDetectionCustomModuleSettings; } + /** Returns the builder for the settings used for calls to getSecurityCenterService. */ + public UnaryCallSettings.Builder + getSecurityCenterServiceSettings() { + return getSecurityCenterServiceSettings; + } + + /** Returns the builder for the settings used for calls to listSecurityCenterServices. */ + public PagedCallSettings.Builder< + ListSecurityCenterServicesRequest, + ListSecurityCenterServicesResponse, + ListSecurityCenterServicesPagedResponse> + listSecurityCenterServicesSettings() { + return listSecurityCenterServicesSettings; + } + + /** Returns the builder for the settings used for calls to updateSecurityCenterService. */ + public UnaryCallSettings.Builder + updateSecurityCenterServiceSettings() { + return updateSecurityCenterServiceSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/resources/META-INF/native-image/com.google.cloud.securitycentermanagement.v1/reflect-config.json b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/resources/META-INF/native-image/com.google.cloud.securitycentermanagement.v1/reflect-config.json index 2635712977c0..19acf15138d3 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/resources/META-INF/native-image/com.google.cloud.securitycentermanagement.v1/reflect-config.json +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/resources/META-INF/native-image/com.google.cloud.securitycentermanagement.v1/reflect-config.json @@ -737,6 +737,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycentermanagement.v1.GetSecurityHealthAnalyticsCustomModuleRequest", "queryAllDeclaredConstructors": true, @@ -935,6 +953,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesRequest", "queryAllDeclaredConstructors": true, @@ -971,6 +1025,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securitycentermanagement.v1.SecurityCenterService", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycentermanagement.v1.SecurityCenterService$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycentermanagement.v1.SecurityCenterService$EnablementState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycentermanagement.v1.SecurityCenterService$ModuleSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycentermanagement.v1.SecurityCenterService$ModuleSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule", "queryAllDeclaredConstructors": true, @@ -1133,6 +1232,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycentermanagement.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest", "queryAllDeclaredConstructors": true, diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagementImpl.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagementImpl.java index 1077c9ffd0ea..7847cf0c918c 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagementImpl.java +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/MockSecurityCenterManagementImpl.java @@ -456,4 +456,70 @@ public void validateEventThreatDetectionCustomModule( Exception.class.getName()))); } } + + @Override + public void getSecurityCenterService( + GetSecurityCenterServiceRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SecurityCenterService) { + requests.add(request); + responseObserver.onNext(((SecurityCenterService) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSecurityCenterService, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SecurityCenterService.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listSecurityCenterServices( + ListSecurityCenterServicesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSecurityCenterServicesResponse) { + requests.add(request); + responseObserver.onNext(((ListSecurityCenterServicesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListSecurityCenterServices, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSecurityCenterServicesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSecurityCenterService( + UpdateSecurityCenterServiceRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SecurityCenterService) { + requests.add(request); + responseObserver.onNext(((SecurityCenterService) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateSecurityCenterService, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SecurityCenterService.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientHttpJsonTest.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientHttpJsonTest.java index d1193b7b0989..708500797458 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientHttpJsonTest.java +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientHttpJsonTest.java @@ -22,6 +22,7 @@ import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListLocationsPagedResponse; +import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListSecurityCenterServicesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -2864,6 +2865,387 @@ public void validateEventThreatDetectionCustomModuleExceptionTest() throws Excep } } + @Test + public void getSecurityCenterServiceTest() throws Exception { + SecurityCenterService expectedResponse = + SecurityCenterService.newBuilder() + .setName( + SecurityCenterServiceName.ofProjectLocationServiceName( + "[PROJECT]", "[LOCATION]", "[SERVICE]") + .toString()) + .putAllModules(new HashMap()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setServiceConfig(Struct.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SecurityCenterServiceName name = + SecurityCenterServiceName.ofProjectLocationServiceName( + "[PROJECT]", "[LOCATION]", "[SERVICE]"); + + SecurityCenterService actualResponse = client.getSecurityCenterService(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 getSecurityCenterServiceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SecurityCenterServiceName name = + SecurityCenterServiceName.ofProjectLocationServiceName( + "[PROJECT]", "[LOCATION]", "[SERVICE]"); + client.getSecurityCenterService(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSecurityCenterServiceTest2() throws Exception { + SecurityCenterService expectedResponse = + SecurityCenterService.newBuilder() + .setName( + SecurityCenterServiceName.ofProjectLocationServiceName( + "[PROJECT]", "[LOCATION]", "[SERVICE]") + .toString()) + .putAllModules(new HashMap()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setServiceConfig(Struct.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9363/locations/location-9363/securityCenterServices/securityCenterService-9363"; + + SecurityCenterService actualResponse = client.getSecurityCenterService(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 getSecurityCenterServiceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9363/locations/location-9363/securityCenterServices/securityCenterService-9363"; + client.getSecurityCenterService(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSecurityCenterServicesTest() throws Exception { + SecurityCenterService responsesElement = SecurityCenterService.newBuilder().build(); + ListSecurityCenterServicesResponse expectedResponse = + ListSecurityCenterServicesResponse.newBuilder() + .setNextPageToken("") + .addAllSecurityCenterServices(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + + ListSecurityCenterServicesPagedResponse pagedListResponse = + client.listSecurityCenterServices(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSecurityCenterServicesList().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 listSecurityCenterServicesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + client.listSecurityCenterServices(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSecurityCenterServicesTest2() throws Exception { + SecurityCenterService responsesElement = SecurityCenterService.newBuilder().build(); + ListSecurityCenterServicesResponse expectedResponse = + ListSecurityCenterServicesResponse.newBuilder() + .setNextPageToken("") + .addAllSecurityCenterServices(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListSecurityCenterServicesPagedResponse pagedListResponse = + client.listSecurityCenterServices(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSecurityCenterServicesList().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 listSecurityCenterServicesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listSecurityCenterServices(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSecurityCenterServicesTest3() throws Exception { + SecurityCenterService responsesElement = SecurityCenterService.newBuilder().build(); + ListSecurityCenterServicesResponse expectedResponse = + ListSecurityCenterServicesResponse.newBuilder() + .setNextPageToken("") + .addAllSecurityCenterServices(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListSecurityCenterServicesPagedResponse pagedListResponse = + client.listSecurityCenterServices(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSecurityCenterServicesList().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 listSecurityCenterServicesExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listSecurityCenterServices(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSecurityCenterServicesTest4() throws Exception { + SecurityCenterService responsesElement = SecurityCenterService.newBuilder().build(); + ListSecurityCenterServicesResponse expectedResponse = + ListSecurityCenterServicesResponse.newBuilder() + .setNextPageToken("") + .addAllSecurityCenterServices(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListSecurityCenterServicesPagedResponse pagedListResponse = + client.listSecurityCenterServices(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSecurityCenterServicesList().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 listSecurityCenterServicesExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listSecurityCenterServices(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSecurityCenterServiceTest() throws Exception { + SecurityCenterService expectedResponse = + SecurityCenterService.newBuilder() + .setName( + SecurityCenterServiceName.ofProjectLocationServiceName( + "[PROJECT]", "[LOCATION]", "[SERVICE]") + .toString()) + .putAllModules(new HashMap()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setServiceConfig(Struct.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SecurityCenterService securityCenterService = + SecurityCenterService.newBuilder() + .setName( + SecurityCenterServiceName.ofProjectLocationServiceName( + "[PROJECT]", "[LOCATION]", "[SERVICE]") + .toString()) + .putAllModules(new HashMap()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setServiceConfig(Struct.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + SecurityCenterService actualResponse = + client.updateSecurityCenterService(securityCenterService, 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 updateSecurityCenterServiceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SecurityCenterService securityCenterService = + SecurityCenterService.newBuilder() + .setName( + SecurityCenterServiceName.ofProjectLocationServiceName( + "[PROJECT]", "[LOCATION]", "[SERVICE]") + .toString()) + .putAllModules(new HashMap()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setServiceConfig(Struct.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSecurityCenterService(securityCenterService, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientTest.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientTest.java index ed45d471c372..276b494ed532 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientTest.java +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/test/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClientTest.java @@ -22,6 +22,7 @@ import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListLocationsPagedResponse; +import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListSecurityCenterServicesPagedResponse; import static com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -2583,6 +2584,333 @@ public void validateEventThreatDetectionCustomModuleExceptionTest() throws Excep } } + @Test + public void getSecurityCenterServiceTest() throws Exception { + SecurityCenterService expectedResponse = + SecurityCenterService.newBuilder() + .setName( + SecurityCenterServiceName.ofProjectLocationServiceName( + "[PROJECT]", "[LOCATION]", "[SERVICE]") + .toString()) + .putAllModules(new HashMap()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setServiceConfig(Struct.newBuilder().build()) + .build(); + mockSecurityCenterManagement.addResponse(expectedResponse); + + SecurityCenterServiceName name = + SecurityCenterServiceName.ofProjectLocationServiceName( + "[PROJECT]", "[LOCATION]", "[SERVICE]"); + + SecurityCenterService actualResponse = client.getSecurityCenterService(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecurityCenterManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSecurityCenterServiceRequest actualRequest = + ((GetSecurityCenterServiceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSecurityCenterServiceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecurityCenterManagement.addException(exception); + + try { + SecurityCenterServiceName name = + SecurityCenterServiceName.ofProjectLocationServiceName( + "[PROJECT]", "[LOCATION]", "[SERVICE]"); + client.getSecurityCenterService(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSecurityCenterServiceTest2() throws Exception { + SecurityCenterService expectedResponse = + SecurityCenterService.newBuilder() + .setName( + SecurityCenterServiceName.ofProjectLocationServiceName( + "[PROJECT]", "[LOCATION]", "[SERVICE]") + .toString()) + .putAllModules(new HashMap()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setServiceConfig(Struct.newBuilder().build()) + .build(); + mockSecurityCenterManagement.addResponse(expectedResponse); + + String name = "name3373707"; + + SecurityCenterService actualResponse = client.getSecurityCenterService(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecurityCenterManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSecurityCenterServiceRequest actualRequest = + ((GetSecurityCenterServiceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSecurityCenterServiceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecurityCenterManagement.addException(exception); + + try { + String name = "name3373707"; + client.getSecurityCenterService(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSecurityCenterServicesTest() throws Exception { + SecurityCenterService responsesElement = SecurityCenterService.newBuilder().build(); + ListSecurityCenterServicesResponse expectedResponse = + ListSecurityCenterServicesResponse.newBuilder() + .setNextPageToken("") + .addAllSecurityCenterServices(Arrays.asList(responsesElement)) + .build(); + mockSecurityCenterManagement.addResponse(expectedResponse); + + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + + ListSecurityCenterServicesPagedResponse pagedListResponse = + client.listSecurityCenterServices(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSecurityCenterServicesList().get(0), resources.get(0)); + + List actualRequests = mockSecurityCenterManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSecurityCenterServicesRequest actualRequest = + ((ListSecurityCenterServicesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSecurityCenterServicesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecurityCenterManagement.addException(exception); + + try { + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + client.listSecurityCenterServices(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSecurityCenterServicesTest2() throws Exception { + SecurityCenterService responsesElement = SecurityCenterService.newBuilder().build(); + ListSecurityCenterServicesResponse expectedResponse = + ListSecurityCenterServicesResponse.newBuilder() + .setNextPageToken("") + .addAllSecurityCenterServices(Arrays.asList(responsesElement)) + .build(); + mockSecurityCenterManagement.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListSecurityCenterServicesPagedResponse pagedListResponse = + client.listSecurityCenterServices(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSecurityCenterServicesList().get(0), resources.get(0)); + + List actualRequests = mockSecurityCenterManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSecurityCenterServicesRequest actualRequest = + ((ListSecurityCenterServicesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSecurityCenterServicesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecurityCenterManagement.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listSecurityCenterServices(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSecurityCenterServicesTest3() throws Exception { + SecurityCenterService responsesElement = SecurityCenterService.newBuilder().build(); + ListSecurityCenterServicesResponse expectedResponse = + ListSecurityCenterServicesResponse.newBuilder() + .setNextPageToken("") + .addAllSecurityCenterServices(Arrays.asList(responsesElement)) + .build(); + mockSecurityCenterManagement.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListSecurityCenterServicesPagedResponse pagedListResponse = + client.listSecurityCenterServices(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSecurityCenterServicesList().get(0), resources.get(0)); + + List actualRequests = mockSecurityCenterManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSecurityCenterServicesRequest actualRequest = + ((ListSecurityCenterServicesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSecurityCenterServicesExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecurityCenterManagement.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listSecurityCenterServices(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSecurityCenterServicesTest4() throws Exception { + SecurityCenterService responsesElement = SecurityCenterService.newBuilder().build(); + ListSecurityCenterServicesResponse expectedResponse = + ListSecurityCenterServicesResponse.newBuilder() + .setNextPageToken("") + .addAllSecurityCenterServices(Arrays.asList(responsesElement)) + .build(); + mockSecurityCenterManagement.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSecurityCenterServicesPagedResponse pagedListResponse = + client.listSecurityCenterServices(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSecurityCenterServicesList().get(0), resources.get(0)); + + List actualRequests = mockSecurityCenterManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSecurityCenterServicesRequest actualRequest = + ((ListSecurityCenterServicesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSecurityCenterServicesExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecurityCenterManagement.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSecurityCenterServices(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSecurityCenterServiceTest() throws Exception { + SecurityCenterService expectedResponse = + SecurityCenterService.newBuilder() + .setName( + SecurityCenterServiceName.ofProjectLocationServiceName( + "[PROJECT]", "[LOCATION]", "[SERVICE]") + .toString()) + .putAllModules(new HashMap()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setServiceConfig(Struct.newBuilder().build()) + .build(); + mockSecurityCenterManagement.addResponse(expectedResponse); + + SecurityCenterService securityCenterService = SecurityCenterService.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + SecurityCenterService actualResponse = + client.updateSecurityCenterService(securityCenterService, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecurityCenterManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSecurityCenterServiceRequest actualRequest = + ((UpdateSecurityCenterServiceRequest) actualRequests.get(0)); + + Assert.assertEquals(securityCenterService, actualRequest.getSecurityCenterService()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSecurityCenterServiceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecurityCenterManagement.addException(exception); + + try { + SecurityCenterService securityCenterService = SecurityCenterService.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSecurityCenterService(securityCenterService, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java b/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java index 5955e6fe364e..3afec94730fc 100644 --- a/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java +++ b/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementGrpc.java @@ -1208,6 +1208,173 @@ private SecurityCenterManagementGrpc() {} return getValidateEventThreatDetectionCustomModuleMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService> + getGetSecurityCenterServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSecurityCenterService", + requestType = + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest.class, + responseType = com.google.cloud.securitycentermanagement.v1.SecurityCenterService.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService> + getGetSecurityCenterServiceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService> + getGetSecurityCenterServiceMethod; + if ((getGetSecurityCenterServiceMethod = + SecurityCenterManagementGrpc.getGetSecurityCenterServiceMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getGetSecurityCenterServiceMethod = + SecurityCenterManagementGrpc.getGetSecurityCenterServiceMethod) + == null) { + SecurityCenterManagementGrpc.getGetSecurityCenterServiceMethod = + getGetSecurityCenterServiceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetSecurityCenterService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .GetSecurityCenterServiceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "GetSecurityCenterService")) + .build(); + } + } + } + return getGetSecurityCenterServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest, + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse> + getListSecurityCenterServicesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSecurityCenterServices", + requestType = + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest.class, + responseType = + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest, + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse> + getListSecurityCenterServicesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest, + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse> + getListSecurityCenterServicesMethod; + if ((getListSecurityCenterServicesMethod = + SecurityCenterManagementGrpc.getListSecurityCenterServicesMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getListSecurityCenterServicesMethod = + SecurityCenterManagementGrpc.getListSecurityCenterServicesMethod) + == null) { + SecurityCenterManagementGrpc.getListSecurityCenterServicesMethod = + getListSecurityCenterServicesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListSecurityCenterServices")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .ListSecurityCenterServicesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .ListSecurityCenterServicesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "ListSecurityCenterServices")) + .build(); + } + } + } + return getListSecurityCenterServicesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService> + getUpdateSecurityCenterServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSecurityCenterService", + requestType = + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest.class, + responseType = com.google.cloud.securitycentermanagement.v1.SecurityCenterService.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService> + getUpdateSecurityCenterServiceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService> + getUpdateSecurityCenterServiceMethod; + if ((getUpdateSecurityCenterServiceMethod = + SecurityCenterManagementGrpc.getUpdateSecurityCenterServiceMethod) + == null) { + synchronized (SecurityCenterManagementGrpc.class) { + if ((getUpdateSecurityCenterServiceMethod = + SecurityCenterManagementGrpc.getUpdateSecurityCenterServiceMethod) + == null) { + SecurityCenterManagementGrpc.getUpdateSecurityCenterServiceMethod = + getUpdateSecurityCenterServiceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateSecurityCenterService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityCenterServiceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterManagementMethodDescriptorSupplier( + "UpdateSecurityCenterService")) + .build(); + } + } + } + return getUpdateSecurityCenterServiceMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static SecurityCenterManagementStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -1615,6 +1782,55 @@ default void validateEventThreatDetectionCustomModule( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getValidateEventThreatDetectionCustomModuleMethod(), responseObserver); } + + /** + * + * + *
+     * Gets service settings for the specified Security Command Center service.
+     * 
+ */ + default void getSecurityCenterService( + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1.SecurityCenterService> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSecurityCenterServiceMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a list of all Security Command Center services for the given
+     * parent.
+     * 
+ */ + default void listSecurityCenterServices( + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSecurityCenterServicesMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a Security Command Center service using the given update mask.
+     * 
+ */ + default void updateSecurityCenterService( + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1.SecurityCenterService> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSecurityCenterServiceMethod(), responseObserver); + } } /** @@ -2061,6 +2277,61 @@ public void validateEventThreatDetectionCustomModule( request, responseObserver); } + + /** + * + * + *
+     * Gets service settings for the specified Security Command Center service.
+     * 
+ */ + public void getSecurityCenterService( + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1.SecurityCenterService> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSecurityCenterServiceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a list of all Security Command Center services for the given
+     * parent.
+     * 
+ */ + public void listSecurityCenterServices( + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSecurityCenterServicesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a Security Command Center service using the given update mask.
+     * 
+ */ + public void updateSecurityCenterService( + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1.SecurityCenterService> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSecurityCenterServiceMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -2461,6 +2732,51 @@ public com.google.protobuf.Empty deleteEventThreatDetectionCustomModule( getCallOptions(), request); } + + /** + * + * + *
+     * Gets service settings for the specified Security Command Center service.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService + getSecurityCenterService( + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSecurityCenterServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a list of all Security Command Center services for the given
+     * parent.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse + listSecurityCenterServices( + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSecurityCenterServicesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a Security Command Center service using the given update mask.
+     * 
+ */ + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService + updateSecurityCenterService( + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSecurityCenterServiceMethod(), getCallOptions(), request); + } } /** @@ -2865,6 +3181,54 @@ protected SecurityCenterManagementFutureStub build( .newCall(getValidateEventThreatDetectionCustomModuleMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Gets service settings for the specified Security Command Center service.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycentermanagement.v1.SecurityCenterService> + getSecurityCenterService( + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSecurityCenterServiceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a list of all Security Command Center services for the given
+     * parent.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse> + listSecurityCenterServices( + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSecurityCenterServicesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a Security Command Center service using the given update mask.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycentermanagement.v1.SecurityCenterService> + updateSecurityCenterService( + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSecurityCenterServiceMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES = 0; @@ -2885,6 +3249,9 @@ protected SecurityCenterManagementFutureStub build( private static final int METHODID_UPDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 15; private static final int METHODID_DELETE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 16; private static final int METHODID_VALIDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE = 17; + private static final int METHODID_GET_SECURITY_CENTER_SERVICE = 18; + private static final int METHODID_LIST_SECURITY_CENTER_SERVICES = 19; + private static final int METHODID_UPDATE_SECURITY_CENTER_SERVICE = 20; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3077,6 +3444,31 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv .ValidateEventThreatDetectionCustomModuleResponse>) responseObserver); break; + case METHODID_GET_SECURITY_CENTER_SERVICE: + serviceImpl.getSecurityCenterService( + (com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1.SecurityCenterService>) + responseObserver); + break; + case METHODID_LIST_SECURITY_CENTER_SERVICES: + serviceImpl.listSecurityCenterServices( + (com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1 + .ListSecurityCenterServicesResponse>) + responseObserver); + break; + case METHODID_UPDATE_SECURITY_CENTER_SERVICE: + serviceImpl.updateSecurityCenterService( + (com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycentermanagement.v1.SecurityCenterService>) + responseObserver); + break; default: throw new AssertionError(); } @@ -3252,6 +3644,28 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.securitycentermanagement.v1 .ValidateEventThreatDetectionCustomModuleResponse>( service, METHODID_VALIDATE_EVENT_THREAT_DETECTION_CUSTOM_MODULE))) + .addMethod( + getGetSecurityCenterServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService>( + service, METHODID_GET_SECURITY_CENTER_SERVICE))) + .addMethod( + getListSecurityCenterServicesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest, + com.google.cloud.securitycentermanagement.v1 + .ListSecurityCenterServicesResponse>( + service, METHODID_LIST_SECURITY_CENTER_SERVICES))) + .addMethod( + getUpdateSecurityCenterServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService>( + service, METHODID_UPDATE_SECURITY_CENTER_SERVICE))) .build(); } @@ -3322,6 +3736,9 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateEventThreatDetectionCustomModuleMethod()) .addMethod(getDeleteEventThreatDetectionCustomModuleMethod()) .addMethod(getValidateEventThreatDetectionCustomModuleMethod()) + .addMethod(getGetSecurityCenterServiceMethod()) + .addMethod(getListSecurityCenterServicesMethod()) + .addMethod(getUpdateSecurityCenterServiceMethod()) .build(); } } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequest.java index 4feca47dba9c..05f49cd497e8 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequest.java @@ -78,10 +78,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Name of parent for the module. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
+   * `organizations/{organization}/locations/{location}`,
+   * `folders/{folder}/locations/{location}`,
    * or
-   * "projects/{project}/locations/{location}"
+   * `projects/{project}/locations/{location}`
    * 
* * @@ -107,10 +107,10 @@ public java.lang.String getParent() { * *
    * Required. Name of parent for the module. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
+   * `organizations/{organization}/locations/{location}`,
+   * `folders/{folder}/locations/{location}`,
    * or
-   * "projects/{project}/locations/{location}"
+   * `projects/{project}/locations/{location}`
    * 
* * @@ -697,10 +697,10 @@ public Builder mergeFrom( * *
      * Required. Name of parent for the module. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * `organizations/{organization}/locations/{location}`,
+     * `folders/{folder}/locations/{location}`,
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * @@ -725,10 +725,10 @@ public java.lang.String getParent() { * *
      * Required. Name of parent for the module. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * `organizations/{organization}/locations/{location}`,
+     * `folders/{folder}/locations/{location}`,
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * @@ -753,10 +753,10 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. Name of parent for the module. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * `organizations/{organization}/locations/{location}`,
+     * `folders/{folder}/locations/{location}`,
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * @@ -780,10 +780,10 @@ public Builder setParent(java.lang.String value) { * *
      * Required. Name of parent for the module. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * `organizations/{organization}/locations/{location}`,
+     * `folders/{folder}/locations/{location}`,
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * @@ -803,10 +803,10 @@ public Builder clearParent() { * *
      * Required. Name of parent for the module. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * `organizations/{organization}/locations/{location}`,
+     * `folders/{folder}/locations/{location}`,
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequestOrBuilder.java index 550c580abe63..ef5f1c347923 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateEventThreatDetectionCustomModuleRequestOrBuilder.java @@ -29,10 +29,10 @@ public interface CreateEventThreatDetectionCustomModuleRequestOrBuilder * *
    * Required. Name of parent for the module. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
+   * `organizations/{organization}/locations/{location}`,
+   * `folders/{folder}/locations/{location}`,
    * or
-   * "projects/{project}/locations/{location}"
+   * `projects/{project}/locations/{location}`
    * 
* * @@ -47,10 +47,10 @@ public interface CreateEventThreatDetectionCustomModuleRequestOrBuilder * *
    * Required. Name of parent for the module. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
+   * `organizations/{organization}/locations/{location}`,
+   * `folders/{folder}/locations/{location}`,
    * or
-   * "projects/{project}/locations/{location}"
+   * `projects/{project}/locations/{location}`
    * 
* * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java index 0951f43b85e2..4c86f816f11c 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java @@ -77,11 +77,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Name of the parent for the module. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
-   * or
-   * "projects/{project}/locations/{location}"
+   * Required. Name of the parent organization, folder, or project of the
+   * module, specified in one of the following formats:
+   *
+   * * `organizations/{organization}/locations/{location}`
+   * * `folders/{folder}/locations/{location}`
+   * * `projects/{project}/locations/{location}`
    * 
* * @@ -106,11 +107,12 @@ public java.lang.String getParent() { * * *
-   * Required. Name of the parent for the module. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
-   * or
-   * "projects/{project}/locations/{location}"
+   * Required. Name of the parent organization, folder, or project of the
+   * module, specified in one of the following formats:
+   *
+   * * `organizations/{organization}/locations/{location}`
+   * * `folders/{folder}/locations/{location}`
+   * * `projects/{project}/locations/{location}`
    * 
* * @@ -693,11 +695,12 @@ public Builder mergeFrom( * * *
-     * Required. Name of the parent for the module. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
-     * or
-     * "projects/{project}/locations/{location}"
+     * Required. Name of the parent organization, folder, or project of the
+     * module, specified in one of the following formats:
+     *
+     * * `organizations/{organization}/locations/{location}`
+     * * `folders/{folder}/locations/{location}`
+     * * `projects/{project}/locations/{location}`
      * 
* * @@ -721,11 +724,12 @@ public java.lang.String getParent() { * * *
-     * Required. Name of the parent for the module. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
-     * or
-     * "projects/{project}/locations/{location}"
+     * Required. Name of the parent organization, folder, or project of the
+     * module, specified in one of the following formats:
+     *
+     * * `organizations/{organization}/locations/{location}`
+     * * `folders/{folder}/locations/{location}`
+     * * `projects/{project}/locations/{location}`
      * 
* * @@ -749,11 +753,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. Name of the parent for the module. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
-     * or
-     * "projects/{project}/locations/{location}"
+     * Required. Name of the parent organization, folder, or project of the
+     * module, specified in one of the following formats:
+     *
+     * * `organizations/{organization}/locations/{location}`
+     * * `folders/{folder}/locations/{location}`
+     * * `projects/{project}/locations/{location}`
      * 
* * @@ -776,11 +781,12 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. Name of the parent for the module. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
-     * or
-     * "projects/{project}/locations/{location}"
+     * Required. Name of the parent organization, folder, or project of the
+     * module, specified in one of the following formats:
+     *
+     * * `organizations/{organization}/locations/{location}`
+     * * `folders/{folder}/locations/{location}`
+     * * `projects/{project}/locations/{location}`
      * 
* * @@ -799,11 +805,12 @@ public Builder clearParent() { * * *
-     * Required. Name of the parent for the module. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
-     * or
-     * "projects/{project}/locations/{location}"
+     * Required. Name of the parent organization, folder, or project of the
+     * module, specified in one of the following formats:
+     *
+     * * `organizations/{organization}/locations/{location}`
+     * * `folders/{folder}/locations/{location}`
+     * * `projects/{project}/locations/{location}`
      * 
* * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java index c6cce0fbe12b..586463131a5c 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java @@ -28,11 +28,12 @@ public interface CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder * * *
-   * Required. Name of the parent for the module. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
-   * or
-   * "projects/{project}/locations/{location}"
+   * Required. Name of the parent organization, folder, or project of the
+   * module, specified in one of the following formats:
+   *
+   * * `organizations/{organization}/locations/{location}`
+   * * `folders/{folder}/locations/{location}`
+   * * `projects/{project}/locations/{location}`
    * 
* * @@ -46,11 +47,12 @@ public interface CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder * * *
-   * Required. Name of the parent for the module. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
-   * or
-   * "projects/{project}/locations/{location}"
+   * Required. Name of the parent organization, folder, or project of the
+   * module, specified in one of the following formats:
+   *
+   * * `organizations/{organization}/locations/{location}`
+   * * `folders/{folder}/locations/{location}`
+   * * `projects/{project}/locations/{location}`
    * 
* * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequest.java index 93a201baec5e..28632aa44c1a 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequest.java @@ -80,9 +80,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * @@ -111,9 +111,9 @@ public java.lang.String getName() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * @@ -584,9 +584,9 @@ public Builder mergeFrom( * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * @@ -614,9 +614,9 @@ public java.lang.String getName() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * @@ -644,9 +644,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * @@ -673,9 +673,9 @@ public Builder setName(java.lang.String value) { * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * @@ -698,9 +698,9 @@ public Builder clearName() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequestOrBuilder.java index a2926c1f8e97..4c5350c4d44b 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteEventThreatDetectionCustomModuleRequestOrBuilder.java @@ -32,9 +32,9 @@ public interface DeleteEventThreatDetectionCustomModuleRequestOrBuilder * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * @@ -52,9 +52,9 @@ public interface DeleteEventThreatDetectionCustomModuleRequestOrBuilder * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java index c6137a5954d6..3042bfe2ef46 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java @@ -80,9 +80,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". - * * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". - * * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". + * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. + * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. + * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. * * * @@ -111,9 +111,9 @@ public java.lang.String getName() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". - * * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". - * * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". + * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. + * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. + * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. * * * @@ -586,9 +586,9 @@ public Builder mergeFrom( * * Its format is: * - * * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". - * * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". - * * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". + * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. + * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. + * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. * * * @@ -616,9 +616,9 @@ public java.lang.String getName() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". - * * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". - * * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". + * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. + * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. + * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. * * * @@ -646,9 +646,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". - * * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". - * * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". + * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. + * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. + * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. * * * @@ -675,9 +675,9 @@ public Builder setName(java.lang.String value) { * * Its format is: * - * * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". - * * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". - * * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". + * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. + * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. + * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. * * * @@ -700,9 +700,9 @@ public Builder clearName() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". - * * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". - * * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". + * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. + * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. + * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. * * * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java index bf42f7266ede..352b5d4eee2a 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java @@ -32,9 +32,9 @@ public interface DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder * * Its format is: * - * * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". - * * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". - * * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". + * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. + * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. + * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. * * * @@ -52,9 +52,9 @@ public interface DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder * * Its format is: * - * * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". - * * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". - * * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". + * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. + * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. + * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. * * * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModule.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModule.java index b8b6e495c11c..529f52ff5287 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModule.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModule.java @@ -254,9 +254,9 @@ private EnablementState(int value) { * * Its format is: * - * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -283,9 +283,9 @@ public java.lang.String getName() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1097,9 +1097,9 @@ public Builder mergeFrom( * * Its format is: * - * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1125,9 +1125,9 @@ public java.lang.String getName() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1153,9 +1153,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1180,9 +1180,9 @@ public Builder setName(java.lang.String value) { * * Its format is: * - * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1203,9 +1203,9 @@ public Builder clearName() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleOrBuilder.java index c6d46cdd05f1..4b9d5b234c84 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveEventThreatDetectionCustomModuleOrBuilder.java @@ -32,9 +32,9 @@ public interface EffectiveEventThreatDetectionCustomModuleOrBuilder * * Its format is: * - * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -50,9 +50,9 @@ public interface EffectiveEventThreatDetectionCustomModuleOrBuilder * * Its format is: * - * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModule.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModule.java index e8f9d87519ce..d92fda73f7e9 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModule.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModule.java @@ -250,13 +250,12 @@ private EnablementState(int value) { * * *
-   * Identifier. The resource name of the custom module.
-   * Its format is
-   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
-   * or
-   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
-   * or
-   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}"
+   * Identifier. The full resource name of the custom module, specified in one
+   * of the following formats:
+   *
+   * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+   * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+   * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -279,13 +278,12 @@ public java.lang.String getName() { * * *
-   * Identifier. The resource name of the custom module.
-   * Its format is
-   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
-   * or
-   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
-   * or
-   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}"
+   * Identifier. The full resource name of the custom module, specified in one
+   * of the following formats:
+   *
+   * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+   * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+   * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -967,13 +965,12 @@ public Builder mergeFrom( * * *
-     * Identifier. The resource name of the custom module.
-     * Its format is
-     * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
-     * or
-     * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
-     * or
-     * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}"
+     * Identifier. The full resource name of the custom module, specified in one
+     * of the following formats:
+     *
+     * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+     * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+     * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -995,13 +992,12 @@ public java.lang.String getName() { * * *
-     * Identifier. The resource name of the custom module.
-     * Its format is
-     * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
-     * or
-     * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
-     * or
-     * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}"
+     * Identifier. The full resource name of the custom module, specified in one
+     * of the following formats:
+     *
+     * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+     * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+     * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1023,13 +1019,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Identifier. The resource name of the custom module.
-     * Its format is
-     * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
-     * or
-     * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
-     * or
-     * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}"
+     * Identifier. The full resource name of the custom module, specified in one
+     * of the following formats:
+     *
+     * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+     * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+     * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1050,13 +1045,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Identifier. The resource name of the custom module.
-     * Its format is
-     * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
-     * or
-     * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
-     * or
-     * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}"
+     * Identifier. The full resource name of the custom module, specified in one
+     * of the following formats:
+     *
+     * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+     * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+     * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1073,13 +1067,12 @@ public Builder clearName() { * * *
-     * Identifier. The resource name of the custom module.
-     * Its format is
-     * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
-     * or
-     * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
-     * or
-     * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}"
+     * Identifier. The full resource name of the custom module, specified in one
+     * of the following formats:
+     *
+     * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+     * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+     * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.java index 4af3ad62ec5d..d34bca0a7623 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.java @@ -28,13 +28,12 @@ public interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder * * *
-   * Identifier. The resource name of the custom module.
-   * Its format is
-   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
-   * or
-   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
-   * or
-   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}"
+   * Identifier. The full resource name of the custom module, specified in one
+   * of the following formats:
+   *
+   * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+   * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+   * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -46,13 +45,12 @@ public interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder * * *
-   * Identifier. The resource name of the custom module.
-   * Its format is
-   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
-   * or
-   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}",
-   * or
-   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}"
+   * Identifier. The full resource name of the custom module, specified in one
+   * of the following formats:
+   *
+   * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+   * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+   * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModule.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModule.java index 3d2eeb59078a..bac933cafb92 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModule.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModule.java @@ -279,9 +279,9 @@ private EnablementState(int value) { * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -308,9 +308,9 @@ public java.lang.String getName() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1341,9 +1341,9 @@ public Builder mergeFrom( * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1369,9 +1369,9 @@ public java.lang.String getName() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1397,9 +1397,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1424,9 +1424,9 @@ public Builder setName(java.lang.String value) { * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1447,9 +1447,9 @@ public Builder clearName() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleOrBuilder.java index 0fbda11516ef..c3c96f984efa 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/EventThreatDetectionCustomModuleOrBuilder.java @@ -32,9 +32,9 @@ public interface EventThreatDetectionCustomModuleOrBuilder * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -50,9 +50,9 @@ public interface EventThreatDetectionCustomModuleOrBuilder * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequest.java index 87561ca33bb5..d03c09c06b39 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequest.java @@ -80,9 +80,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * * @@ -111,9 +111,9 @@ public java.lang.String getName() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * * @@ -544,9 +544,9 @@ public Builder mergeFrom( * * Its format is: * - * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * * @@ -574,9 +574,9 @@ public java.lang.String getName() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * * @@ -604,9 +604,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * * @@ -633,9 +633,9 @@ public Builder setName(java.lang.String value) { * * Its format is: * - * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * * @@ -658,9 +658,9 @@ public Builder clearName() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder.java index add5b0553b2e..bd818ef33afb 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder.java @@ -32,9 +32,9 @@ public interface GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder * * Its format is: * - * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * * @@ -52,9 +52,9 @@ public interface GetEffectiveEventThreatDetectionCustomModuleRequestOrBuilder * * Its format is: * - * * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. * * * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java index cba876a88f1d..d8ec2954ed78 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java @@ -76,13 +76,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The resource name of the SHA custom module.
+   * Required. The full resource name of the custom module, specified in one of
+   * the following formats:
    *
-   * Its format is:
-   *
-   *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-   *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-   *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+   * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+   * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+   * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
    * 
* * @@ -107,13 +106,12 @@ public java.lang.String getName() { * * *
-   * Required. The resource name of the SHA custom module.
-   *
-   * Its format is:
+   * Required. The full resource name of the custom module, specified in one of
+   * the following formats:
    *
-   *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-   *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-   *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+   * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+   * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+   * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
    * 
* * @@ -541,13 +539,12 @@ public Builder mergeFrom( * * *
-     * Required. The resource name of the SHA custom module.
+     * Required. The full resource name of the custom module, specified in one of
+     * the following formats:
      *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+     * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+     * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
      * 
* * @@ -571,13 +568,12 @@ public java.lang.String getName() { * * *
-     * Required. The resource name of the SHA custom module.
-     *
-     * Its format is:
+     * Required. The full resource name of the custom module, specified in one of
+     * the following formats:
      *
-     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+     * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+     * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
      * 
* * @@ -601,13 +597,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The resource name of the SHA custom module.
+     * Required. The full resource name of the custom module, specified in one of
+     * the following formats:
      *
-     * Its format is:
-     *
-     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+     * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+     * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
      * 
* * @@ -630,13 +625,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The resource name of the SHA custom module.
-     *
-     * Its format is:
+     * Required. The full resource name of the custom module, specified in one of
+     * the following formats:
      *
-     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+     * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+     * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
      * 
* * @@ -655,13 +649,12 @@ public Builder clearName() { * * *
-     * Required. The resource name of the SHA custom module.
-     *
-     * Its format is:
+     * Required. The full resource name of the custom module, specified in one of
+     * the following formats:
      *
-     *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-     *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+     * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+     * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+     * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
      * 
* * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java index 8e7abd9faaff..0341f8eeb834 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java @@ -28,13 +28,12 @@ public interface GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder * * *
-   * Required. The resource name of the SHA custom module.
+   * Required. The full resource name of the custom module, specified in one of
+   * the following formats:
    *
-   * Its format is:
-   *
-   *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-   *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-   *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+   * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+   * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+   * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
    * 
* * @@ -48,13 +47,12 @@ public interface GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder * * *
-   * Required. The resource name of the SHA custom module.
-   *
-   * Its format is:
+   * Required. The full resource name of the custom module, specified in one of
+   * the following formats:
    *
-   *   * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-   *   * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
-   *   * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}".
+   * * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+   * * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
+   * * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}`
    * 
* * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequest.java index 9bd2ef2b2fd0..d0a283bd96ea 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequest.java @@ -80,9 +80,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * @@ -111,9 +111,9 @@ public java.lang.String getName() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * @@ -531,9 +531,9 @@ public Builder mergeFrom( * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * @@ -561,9 +561,9 @@ public java.lang.String getName() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * @@ -591,9 +591,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * @@ -620,9 +620,9 @@ public Builder setName(java.lang.String value) { * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * @@ -645,9 +645,9 @@ public Builder clearName() { * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequestOrBuilder.java index 59048292a57a..0e287906e703 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetEventThreatDetectionCustomModuleRequestOrBuilder.java @@ -32,9 +32,9 @@ public interface GetEventThreatDetectionCustomModuleRequestOrBuilder * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * @@ -52,9 +52,9 @@ public interface GetEventThreatDetectionCustomModuleRequestOrBuilder * * Its format is: * - * * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - * * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + * * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + * * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. * * * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityCenterServiceRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityCenterServiceRequest.java new file mode 100644 index 000000000000..bb59bf28cbbe --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityCenterServiceRequest.java @@ -0,0 +1,762 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycentermanagement.v1; + +/** + * + * + *
+ * Request message for getting a Security Command Center service.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest} + */ +public final class GetSecurityCenterServiceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest) + GetSecurityCenterServiceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetSecurityCenterServiceRequest.newBuilder() to construct. + private GetSecurityCenterServiceRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSecurityCenterServiceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSecurityCenterServiceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetSecurityCenterServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetSecurityCenterServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest.class, + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The Security Command Center service to retrieve.
+   *
+   * Formats:
+   *
+   *   * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+   *   * folders/{folder}/locations/{location}/securityCenterServices/{service}
+   *   * projects/{project}/locations/{location}/securityCenterServices/{service}
+   *
+   * The possible values for id {service} are:
+   *
+   *   * container-threat-detection
+   *   * event-threat-detection
+   *   * security-health-analytics
+   *   * vm-threat-detection
+   *   * web-security-scanner
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The Security Command Center service to retrieve.
+   *
+   * Formats:
+   *
+   *   * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+   *   * folders/{folder}/locations/{location}/securityCenterServices/{service}
+   *   * projects/{project}/locations/{location}/securityCenterServices/{service}
+   *
+   * The possible values for id {service} are:
+   *
+   *   * container-threat-detection
+   *   * event-threat-detection
+   *   * security-health-analytics
+   *   * vm-threat-detection
+   *   * web-security-scanner
+   * 
+ * + * + * 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() { + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest other = + (com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest + 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.securitycentermanagement.v1.GetSecurityCenterServiceRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest + 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.securitycentermanagement.v1.GetSecurityCenterServiceRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest + 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.securitycentermanagement.v1.GetSecurityCenterServiceRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest + 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for getting a Security Command Center service.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest) + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetSecurityCenterServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetSecurityCenterServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest.class, + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_GetSecurityCenterServiceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest build() { + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest result = + new com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest other) { + if (other + == com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The Security Command Center service to retrieve.
+     *
+     * Formats:
+     *
+     *   * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+     *   * folders/{folder}/locations/{location}/securityCenterServices/{service}
+     *   * projects/{project}/locations/{location}/securityCenterServices/{service}
+     *
+     * The possible values for id {service} are:
+     *
+     *   * container-threat-detection
+     *   * event-threat-detection
+     *   * security-health-analytics
+     *   * vm-threat-detection
+     *   * web-security-scanner
+     * 
+ * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The Security Command Center service to retrieve.
+     *
+     * Formats:
+     *
+     *   * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+     *   * folders/{folder}/locations/{location}/securityCenterServices/{service}
+     *   * projects/{project}/locations/{location}/securityCenterServices/{service}
+     *
+     * The possible values for id {service} are:
+     *
+     *   * container-threat-detection
+     *   * event-threat-detection
+     *   * security-health-analytics
+     *   * vm-threat-detection
+     *   * web-security-scanner
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The Security Command Center service to retrieve.
+     *
+     * Formats:
+     *
+     *   * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+     *   * folders/{folder}/locations/{location}/securityCenterServices/{service}
+     *   * projects/{project}/locations/{location}/securityCenterServices/{service}
+     *
+     * The possible values for id {service} are:
+     *
+     *   * container-threat-detection
+     *   * event-threat-detection
+     *   * security-health-analytics
+     *   * vm-threat-detection
+     *   * web-security-scanner
+     * 
+ * + * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Security Command Center service to retrieve.
+     *
+     * Formats:
+     *
+     *   * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+     *   * folders/{folder}/locations/{location}/securityCenterServices/{service}
+     *   * projects/{project}/locations/{location}/securityCenterServices/{service}
+     *
+     * The possible values for id {service} are:
+     *
+     *   * container-threat-detection
+     *   * event-threat-detection
+     *   * security-health-analytics
+     *   * vm-threat-detection
+     *   * web-security-scanner
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Security Command Center service to retrieve.
+     *
+     * Formats:
+     *
+     *   * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+     *   * folders/{folder}/locations/{location}/securityCenterServices/{service}
+     *   * projects/{project}/locations/{location}/securityCenterServices/{service}
+     *
+     * The possible values for id {service} are:
+     *
+     *   * container-threat-detection
+     *   * event-threat-detection
+     *   * security-health-analytics
+     *   * vm-threat-detection
+     *   * web-security-scanner
+     * 
+ * + * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest) + private static final com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest(); + } + + public static com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSecurityCenterServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityCenterServiceRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityCenterServiceRequestOrBuilder.java new file mode 100644 index 000000000000..899a020a3608 --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityCenterServiceRequestOrBuilder.java @@ -0,0 +1,83 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycentermanagement.v1; + +public interface GetSecurityCenterServiceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Security Command Center service to retrieve.
+   *
+   * Formats:
+   *
+   *   * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+   *   * folders/{folder}/locations/{location}/securityCenterServices/{service}
+   *   * projects/{project}/locations/{location}/securityCenterServices/{service}
+   *
+   * The possible values for id {service} are:
+   *
+   *   * container-threat-detection
+   *   * event-threat-detection
+   *   * security-health-analytics
+   *   * vm-threat-detection
+   *   * web-security-scanner
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The Security Command Center service to retrieve.
+   *
+   * Formats:
+   *
+   *   * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+   *   * folders/{folder}/locations/{location}/securityCenterServices/{service}
+   *   * projects/{project}/locations/{location}/securityCenterServices/{service}
+   *
+   * The possible values for id {service} are:
+   *
+   *   * container-threat-detection
+   *   * event-threat-detection
+   *   * security-health-analytics
+   *   * vm-threat-detection
+   *   * web-security-scanner
+   * 
+ * + * + * 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/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequest.java index 98228a161f91..f35433d335e3 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequest.java @@ -79,10 +79,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Name of parent to list custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
+   * `organizations/{organization}/locations/{location}`,
+   * `folders/{folder}/locations/{location}`,
    * or
-   * "projects/{project}/locations/{location}"
+   * `projects/{project}/locations/{location}`
    * 
* * @@ -108,10 +108,10 @@ public java.lang.String getParent() { * *
    * Required. Name of parent to list custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
+   * `organizations/{organization}/locations/{location}`,
+   * `folders/{folder}/locations/{location}`,
    * or
-   * "projects/{project}/locations/{location}"
+   * `projects/{project}/locations/{location}`
    * 
* * @@ -658,10 +658,10 @@ public Builder mergeFrom( * *
      * Required. Name of parent to list custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * `organizations/{organization}/locations/{location}`,
+     * `folders/{folder}/locations/{location}`,
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * @@ -686,10 +686,10 @@ public java.lang.String getParent() { * *
      * Required. Name of parent to list custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * `organizations/{organization}/locations/{location}`,
+     * `folders/{folder}/locations/{location}`,
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * @@ -714,10 +714,10 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. Name of parent to list custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * `organizations/{organization}/locations/{location}`,
+     * `folders/{folder}/locations/{location}`,
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * @@ -741,10 +741,10 @@ public Builder setParent(java.lang.String value) { * *
      * Required. Name of parent to list custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * `organizations/{organization}/locations/{location}`,
+     * `folders/{folder}/locations/{location}`,
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * @@ -764,10 +764,10 @@ public Builder clearParent() { * *
      * Required. Name of parent to list custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * `organizations/{organization}/locations/{location}`,
+     * `folders/{folder}/locations/{location}`,
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder.java index 0bc89886b394..839797adad89 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder.java @@ -29,10 +29,10 @@ public interface ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder * *
    * Required. Name of parent to list custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
+   * `organizations/{organization}/locations/{location}`,
+   * `folders/{folder}/locations/{location}`,
    * or
-   * "projects/{project}/locations/{location}"
+   * `projects/{project}/locations/{location}`
    * 
* * @@ -47,10 +47,10 @@ public interface ListDescendantEventThreatDetectionCustomModulesRequestOrBuilder * *
    * Required. Name of parent to list custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
+   * `organizations/{organization}/locations/{location}`,
+   * `folders/{folder}/locations/{location}`,
    * or
-   * "projects/{project}/locations/{location}"
+   * `projects/{project}/locations/{location}`
    * 
* * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java index 9fb2b3c28993..1dc9dff74a80 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java @@ -78,11 +78,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Name of parent to list custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
-   * or
-   * "projects/{project}/locations/{location}"
+   * Required. Name of the parent organization, folder, or project in which to
+   * list custom modules, specified in one of the following formats:
+   *
+   * * `organizations/{organization}/locations/{location}`
+   * * `folders/{folder}/locations/{location}`
+   * * `projects/{project}/locations/{location}`
    * 
* * @@ -107,11 +108,12 @@ public java.lang.String getParent() { * * *
-   * Required. Name of parent to list custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
-   * or
-   * "projects/{project}/locations/{location}"
+   * Required. Name of the parent organization, folder, or project in which to
+   * list custom modules, specified in one of the following formats:
+   *
+   * * `organizations/{organization}/locations/{location}`
+   * * `folders/{folder}/locations/{location}`
+   * * `projects/{project}/locations/{location}`
    * 
* * @@ -656,11 +658,12 @@ public Builder mergeFrom( * * *
-     * Required. Name of parent to list custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
-     * or
-     * "projects/{project}/locations/{location}"
+     * Required. Name of the parent organization, folder, or project in which to
+     * list custom modules, specified in one of the following formats:
+     *
+     * * `organizations/{organization}/locations/{location}`
+     * * `folders/{folder}/locations/{location}`
+     * * `projects/{project}/locations/{location}`
      * 
* * @@ -684,11 +687,12 @@ public java.lang.String getParent() { * * *
-     * Required. Name of parent to list custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
-     * or
-     * "projects/{project}/locations/{location}"
+     * Required. Name of the parent organization, folder, or project in which to
+     * list custom modules, specified in one of the following formats:
+     *
+     * * `organizations/{organization}/locations/{location}`
+     * * `folders/{folder}/locations/{location}`
+     * * `projects/{project}/locations/{location}`
      * 
* * @@ -712,11 +716,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. Name of parent to list custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
-     * or
-     * "projects/{project}/locations/{location}"
+     * Required. Name of the parent organization, folder, or project in which to
+     * list custom modules, specified in one of the following formats:
+     *
+     * * `organizations/{organization}/locations/{location}`
+     * * `folders/{folder}/locations/{location}`
+     * * `projects/{project}/locations/{location}`
      * 
* * @@ -739,11 +744,12 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. Name of parent to list custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
-     * or
-     * "projects/{project}/locations/{location}"
+     * Required. Name of the parent organization, folder, or project in which to
+     * list custom modules, specified in one of the following formats:
+     *
+     * * `organizations/{organization}/locations/{location}`
+     * * `folders/{folder}/locations/{location}`
+     * * `projects/{project}/locations/{location}`
      * 
* * @@ -762,11 +768,12 @@ public Builder clearParent() { * * *
-     * Required. Name of parent to list custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
-     * or
-     * "projects/{project}/locations/{location}"
+     * Required. Name of the parent organization, folder, or project in which to
+     * list custom modules, specified in one of the following formats:
+     *
+     * * `organizations/{organization}/locations/{location}`
+     * * `folders/{folder}/locations/{location}`
+     * * `projects/{project}/locations/{location}`
      * 
* * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java index b0153b516281..242906fe1246 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java @@ -28,11 +28,12 @@ public interface ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuil * * *
-   * Required. Name of parent to list custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
-   * or
-   * "projects/{project}/locations/{location}"
+   * Required. Name of the parent organization, folder, or project in which to
+   * list custom modules, specified in one of the following formats:
+   *
+   * * `organizations/{organization}/locations/{location}`
+   * * `folders/{folder}/locations/{location}`
+   * * `projects/{project}/locations/{location}`
    * 
* * @@ -46,11 +47,12 @@ public interface ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuil * * *
-   * Required. Name of parent to list custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
-   * or
-   * "projects/{project}/locations/{location}"
+   * Required. Name of the parent organization, folder, or project in which to
+   * list custom modules, specified in one of the following formats:
+   *
+   * * `organizations/{organization}/locations/{location}`
+   * * `folders/{folder}/locations/{location}`
+   * * `projects/{project}/locations/{location}`
    * 
* * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequest.java index 35306424fa33..9e252af5395e 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequest.java @@ -79,10 +79,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Name of parent to list effective custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
+   * `organizations/{organization}/locations/{location}`,
+   * `folders/{folder}/locations/{location}`,
    * or
-   * "projects/{project}/locations/{location}"
+   * `projects/{project}/locations/{location}`
    * 
* * @@ -108,10 +108,10 @@ public java.lang.String getParent() { * *
    * Required. Name of parent to list effective custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
+   * `organizations/{organization}/locations/{location}`,
+   * `folders/{folder}/locations/{location}`,
    * or
-   * "projects/{project}/locations/{location}"
+   * `projects/{project}/locations/{location}`
    * 
* * @@ -657,10 +657,10 @@ public Builder mergeFrom( * *
      * Required. Name of parent to list effective custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * `organizations/{organization}/locations/{location}`,
+     * `folders/{folder}/locations/{location}`,
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * @@ -685,10 +685,10 @@ public java.lang.String getParent() { * *
      * Required. Name of parent to list effective custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * `organizations/{organization}/locations/{location}`,
+     * `folders/{folder}/locations/{location}`,
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * @@ -713,10 +713,10 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. Name of parent to list effective custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * `organizations/{organization}/locations/{location}`,
+     * `folders/{folder}/locations/{location}`,
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * @@ -740,10 +740,10 @@ public Builder setParent(java.lang.String value) { * *
      * Required. Name of parent to list effective custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * `organizations/{organization}/locations/{location}`,
+     * `folders/{folder}/locations/{location}`,
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * @@ -763,10 +763,10 @@ public Builder clearParent() { * *
      * Required. Name of parent to list effective custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * `organizations/{organization}/locations/{location}`,
+     * `folders/{folder}/locations/{location}`,
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder.java index 64b6f22a49b6..af7b464bc56e 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder.java @@ -29,10 +29,10 @@ public interface ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder * *
    * Required. Name of parent to list effective custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
+   * `organizations/{organization}/locations/{location}`,
+   * `folders/{folder}/locations/{location}`,
    * or
-   * "projects/{project}/locations/{location}"
+   * `projects/{project}/locations/{location}`
    * 
* * @@ -47,10 +47,10 @@ public interface ListEffectiveEventThreatDetectionCustomModulesRequestOrBuilder * *
    * Required. Name of parent to list effective custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
+   * `organizations/{organization}/locations/{location}`,
+   * `folders/{folder}/locations/{location}`,
    * or
-   * "projects/{project}/locations/{location}"
+   * `projects/{project}/locations/{location}`
    * 
* * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java index 451f8f6b681a..785de756b28c 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java @@ -78,11 +78,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Name of parent to list effective custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
+   * Required. Name of parent to list effective custom modules. specified in one
+   * of the following formats:
+   * * `organizations/{organization}/locations/{location}`
+   * * `folders/{folder}/locations/{location}`
    * or
-   * "projects/{project}/locations/{location}"
+   * `projects/{project}/locations/{location}`
    * 
* * @@ -107,11 +108,12 @@ public java.lang.String getParent() { * * *
-   * Required. Name of parent to list effective custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
+   * Required. Name of parent to list effective custom modules. specified in one
+   * of the following formats:
+   * * `organizations/{organization}/locations/{location}`
+   * * `folders/{folder}/locations/{location}`
    * or
-   * "projects/{project}/locations/{location}"
+   * `projects/{project}/locations/{location}`
    * 
* * @@ -656,11 +658,12 @@ public Builder mergeFrom( * * *
-     * Required. Name of parent to list effective custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * Required. Name of parent to list effective custom modules. specified in one
+     * of the following formats:
+     * * `organizations/{organization}/locations/{location}`
+     * * `folders/{folder}/locations/{location}`
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * @@ -684,11 +687,12 @@ public java.lang.String getParent() { * * *
-     * Required. Name of parent to list effective custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * Required. Name of parent to list effective custom modules. specified in one
+     * of the following formats:
+     * * `organizations/{organization}/locations/{location}`
+     * * `folders/{folder}/locations/{location}`
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * @@ -712,11 +716,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. Name of parent to list effective custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * Required. Name of parent to list effective custom modules. specified in one
+     * of the following formats:
+     * * `organizations/{organization}/locations/{location}`
+     * * `folders/{folder}/locations/{location}`
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * @@ -739,11 +744,12 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. Name of parent to list effective custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * Required. Name of parent to list effective custom modules. specified in one
+     * of the following formats:
+     * * `organizations/{organization}/locations/{location}`
+     * * `folders/{folder}/locations/{location}`
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * @@ -762,11 +768,12 @@ public Builder clearParent() { * * *
-     * Required. Name of parent to list effective custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * Required. Name of parent to list effective custom modules. specified in one
+     * of the following formats:
+     * * `organizations/{organization}/locations/{location}`
+     * * `folders/{folder}/locations/{location}`
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java index 65cc7866d22d..debb9cae6bc6 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java @@ -28,11 +28,12 @@ public interface ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuild * * *
-   * Required. Name of parent to list effective custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
+   * Required. Name of parent to list effective custom modules. specified in one
+   * of the following formats:
+   * * `organizations/{organization}/locations/{location}`
+   * * `folders/{folder}/locations/{location}`
    * or
-   * "projects/{project}/locations/{location}"
+   * `projects/{project}/locations/{location}`
    * 
* * @@ -46,11 +47,12 @@ public interface ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuild * * *
-   * Required. Name of parent to list effective custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
+   * Required. Name of parent to list effective custom modules. specified in one
+   * of the following formats:
+   * * `organizations/{organization}/locations/{location}`
+   * * `folders/{folder}/locations/{location}`
    * or
-   * "projects/{project}/locations/{location}"
+   * `projects/{project}/locations/{location}`
    * 
* * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequest.java index 40d5b88d8813..90eabc316d8d 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequest.java @@ -78,10 +78,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Name of parent to list custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
+   * `organizations/{organization}/locations/{location}`,
+   * `folders/{folder}/locations/{location}`,
    * or
-   * "projects/{project}/locations/{location}"
+   * `projects/{project}/locations/{location}`
    * 
* * @@ -107,10 +107,10 @@ public java.lang.String getParent() { * *
    * Required. Name of parent to list custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
+   * `organizations/{organization}/locations/{location}`,
+   * `folders/{folder}/locations/{location}`,
    * or
-   * "projects/{project}/locations/{location}"
+   * `projects/{project}/locations/{location}`
    * 
* * @@ -658,10 +658,10 @@ public Builder mergeFrom( * *
      * Required. Name of parent to list custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * `organizations/{organization}/locations/{location}`,
+     * `folders/{folder}/locations/{location}`,
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * @@ -686,10 +686,10 @@ public java.lang.String getParent() { * *
      * Required. Name of parent to list custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * `organizations/{organization}/locations/{location}`,
+     * `folders/{folder}/locations/{location}`,
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * @@ -714,10 +714,10 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. Name of parent to list custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * `organizations/{organization}/locations/{location}`,
+     * `folders/{folder}/locations/{location}`,
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * @@ -741,10 +741,10 @@ public Builder setParent(java.lang.String value) { * *
      * Required. Name of parent to list custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * `organizations/{organization}/locations/{location}`,
+     * `folders/{folder}/locations/{location}`,
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * @@ -764,10 +764,10 @@ public Builder clearParent() { * *
      * Required. Name of parent to list custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
+     * `organizations/{organization}/locations/{location}`,
+     * `folders/{folder}/locations/{location}`,
      * or
-     * "projects/{project}/locations/{location}"
+     * `projects/{project}/locations/{location}`
      * 
* * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequestOrBuilder.java index e7f7015351b9..74823d27d208 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListEventThreatDetectionCustomModulesRequestOrBuilder.java @@ -29,10 +29,10 @@ public interface ListEventThreatDetectionCustomModulesRequestOrBuilder * *
    * Required. Name of parent to list custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
+   * `organizations/{organization}/locations/{location}`,
+   * `folders/{folder}/locations/{location}`,
    * or
-   * "projects/{project}/locations/{location}"
+   * `projects/{project}/locations/{location}`
    * 
* * @@ -47,10 +47,10 @@ public interface ListEventThreatDetectionCustomModulesRequestOrBuilder * *
    * Required. Name of parent to list custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
+   * `organizations/{organization}/locations/{location}`,
+   * `folders/{folder}/locations/{location}`,
    * or
-   * "projects/{project}/locations/{location}"
+   * `projects/{project}/locations/{location}`
    * 
* * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesRequest.java new file mode 100644 index 000000000000..f92541f59a93 --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesRequest.java @@ -0,0 +1,989 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycentermanagement.v1; + +/** + * + * + *
+ * Request message for listing Security Command Center services.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest} + */ +public final class ListSecurityCenterServicesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest) + ListSecurityCenterServicesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSecurityCenterServicesRequest.newBuilder() to construct. + private ListSecurityCenterServicesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSecurityCenterServicesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSecurityCenterServicesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityCenterServicesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityCenterServicesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest.class, + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of the parent to list Security Command Center services.
+   *
+   * Formats:
+   *
+   *   * organizations/{organization}/locations/{location}
+   *   * folders/{folder}/locations/{location}
+   *   * projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the parent to list Security Command Center services.
+   *
+   * Formats:
+   *
+   *   * organizations/{organization}/locations/{location}
+   *   * folders/{folder}/locations/{location}
+   *   * projects/{project}/locations/{location}
+   * 
+ * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of results to return in a single response.
+   * Default is 10, minimum is 1, maximum is 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. The value returned by the last call indicating a continuation.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The value returned by the last call indicating a continuation.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest other = + (com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest + 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.securitycentermanagement.v1.ListSecurityCenterServicesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest + 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.securitycentermanagement.v1.ListSecurityCenterServicesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest + 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.securitycentermanagement.v1.ListSecurityCenterServicesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest + 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for listing Security Command Center services.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest) + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityCenterServicesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityCenterServicesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest.class, + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityCenterServicesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest build() { + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest result = + new com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest other) { + if (other + == com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The name of the parent to list Security Command Center services.
+     *
+     * Formats:
+     *
+     *   * organizations/{organization}/locations/{location}
+     *   * folders/{folder}/locations/{location}
+     *   * projects/{project}/locations/{location}
+     * 
+ * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the parent to list Security Command Center services.
+     *
+     * Formats:
+     *
+     *   * organizations/{organization}/locations/{location}
+     *   * folders/{folder}/locations/{location}
+     *   * projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the parent to list Security Command Center services.
+     *
+     * Formats:
+     *
+     *   * organizations/{organization}/locations/{location}
+     *   * folders/{folder}/locations/{location}
+     *   * projects/{project}/locations/{location}
+     * 
+ * + * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the parent to list Security Command Center services.
+     *
+     * Formats:
+     *
+     *   * organizations/{organization}/locations/{location}
+     *   * folders/{folder}/locations/{location}
+     *   * projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the parent to list Security Command Center services.
+     *
+     * Formats:
+     *
+     *   * organizations/{organization}/locations/{location}
+     *   * folders/{folder}/locations/{location}
+     *   * projects/{project}/locations/{location}
+     * 
+ * + * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of results to return in a single response.
+     * Default is 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of results to return in a single response.
+     * Default is 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of results to return in a single response.
+     * Default is 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. The value returned by the last call indicating a continuation.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The value returned by the last call indicating a continuation.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The value returned by the last call indicating a continuation.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The value returned by the last call indicating a continuation.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The value returned by the last call indicating a continuation.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest) + private static final com.google.cloud.securitycentermanagement.v1 + .ListSecurityCenterServicesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest(); + } + + public static com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSecurityCenterServicesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesRequestOrBuilder.java new file mode 100644 index 000000000000..95f0ec4534a5 --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesRequestOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycentermanagement.v1; + +public interface ListSecurityCenterServicesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the parent to list Security Command Center services.
+   *
+   * Formats:
+   *
+   *   * organizations/{organization}/locations/{location}
+   *   * folders/{folder}/locations/{location}
+   *   * projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the parent to list Security Command Center services.
+   *
+   * Formats:
+   *
+   *   * organizations/{organization}/locations/{location}
+   *   * folders/{folder}/locations/{location}
+   *   * projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of results to return in a single response.
+   * Default is 10, minimum is 1, maximum is 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The value returned by the last call indicating a continuation.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The value returned by the last call indicating a continuation.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesResponse.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesResponse.java new file mode 100644 index 000000000000..0d9cde3421c6 --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesResponse.java @@ -0,0 +1,1233 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycentermanagement.v1; + +/** + * + * + *
+ * Response message for listing Security Command Center services.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse} + */ +public final class ListSecurityCenterServicesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse) + ListSecurityCenterServicesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSecurityCenterServicesResponse.newBuilder() to construct. + private ListSecurityCenterServicesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSecurityCenterServicesResponse() { + securityCenterServices_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSecurityCenterServicesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityCenterServicesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityCenterServicesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse.class, + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse.Builder + .class); + } + + public static final int SECURITY_CENTER_SERVICES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + securityCenterServices_; + /** + * + * + *
+   * The list of services.
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + @java.lang.Override + public java.util.List + getSecurityCenterServicesList() { + return securityCenterServices_; + } + /** + * + * + *
+   * The list of services.
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.securitycentermanagement.v1.SecurityCenterServiceOrBuilder> + getSecurityCenterServicesOrBuilderList() { + return securityCenterServices_; + } + /** + * + * + *
+   * The list of services.
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + @java.lang.Override + public int getSecurityCenterServicesCount() { + return securityCenterServices_.size(); + } + /** + * + * + *
+   * The list of services.
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService + getSecurityCenterServices(int index) { + return securityCenterServices_.get(index); + } + /** + * + * + *
+   * The list of services.
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterServiceOrBuilder + getSecurityCenterServicesOrBuilder(int index) { + return securityCenterServices_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < securityCenterServices_.size(); i++) { + output.writeMessage(1, securityCenterServices_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < securityCenterServices_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, securityCenterServices_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse other = + (com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse) obj; + + if (!getSecurityCenterServicesList().equals(other.getSecurityCenterServicesList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSecurityCenterServicesCount() > 0) { + hash = (37 * hash) + SECURITY_CENTER_SERVICES_FIELD_NUMBER; + hash = (53 * hash) + getSecurityCenterServicesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse + 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.securitycentermanagement.v1.ListSecurityCenterServicesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse + 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.securitycentermanagement.v1.ListSecurityCenterServicesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse + 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.securitycentermanagement.v1.ListSecurityCenterServicesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse + 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for listing Security Command Center services.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse) + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityCenterServicesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityCenterServicesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse.class, + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (securityCenterServicesBuilder_ == null) { + securityCenterServices_ = java.util.Collections.emptyList(); + } else { + securityCenterServices_ = null; + securityCenterServicesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_ListSecurityCenterServicesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse build() { + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse + buildPartial() { + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse result = + new com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse result) { + if (securityCenterServicesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + securityCenterServices_ = java.util.Collections.unmodifiableList(securityCenterServices_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.securityCenterServices_ = securityCenterServices_; + } else { + result.securityCenterServices_ = securityCenterServicesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse other) { + if (other + == com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse + .getDefaultInstance()) return this; + if (securityCenterServicesBuilder_ == null) { + if (!other.securityCenterServices_.isEmpty()) { + if (securityCenterServices_.isEmpty()) { + securityCenterServices_ = other.securityCenterServices_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSecurityCenterServicesIsMutable(); + securityCenterServices_.addAll(other.securityCenterServices_); + } + onChanged(); + } + } else { + if (!other.securityCenterServices_.isEmpty()) { + if (securityCenterServicesBuilder_.isEmpty()) { + securityCenterServicesBuilder_.dispose(); + securityCenterServicesBuilder_ = null; + securityCenterServices_ = other.securityCenterServices_; + bitField0_ = (bitField0_ & ~0x00000001); + securityCenterServicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSecurityCenterServicesFieldBuilder() + : null; + } else { + securityCenterServicesBuilder_.addAllMessages(other.securityCenterServices_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.securitycentermanagement.v1.SecurityCenterService m = + input.readMessage( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.parser(), + extensionRegistry); + if (securityCenterServicesBuilder_ == null) { + ensureSecurityCenterServicesIsMutable(); + securityCenterServices_.add(m); + } else { + securityCenterServicesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + securityCenterServices_ = java.util.Collections.emptyList(); + + private void ensureSecurityCenterServicesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + securityCenterServices_ = + new java.util.ArrayList< + com.google.cloud.securitycentermanagement.v1.SecurityCenterService>( + securityCenterServices_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SecurityCenterService, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.Builder, + com.google.cloud.securitycentermanagement.v1.SecurityCenterServiceOrBuilder> + securityCenterServicesBuilder_; + + /** + * + * + *
+     * The list of services.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + public java.util.List + getSecurityCenterServicesList() { + if (securityCenterServicesBuilder_ == null) { + return java.util.Collections.unmodifiableList(securityCenterServices_); + } else { + return securityCenterServicesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of services.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + public int getSecurityCenterServicesCount() { + if (securityCenterServicesBuilder_ == null) { + return securityCenterServices_.size(); + } else { + return securityCenterServicesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of services.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService + getSecurityCenterServices(int index) { + if (securityCenterServicesBuilder_ == null) { + return securityCenterServices_.get(index); + } else { + return securityCenterServicesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of services.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + public Builder setSecurityCenterServices( + int index, com.google.cloud.securitycentermanagement.v1.SecurityCenterService value) { + if (securityCenterServicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityCenterServicesIsMutable(); + securityCenterServices_.set(index, value); + onChanged(); + } else { + securityCenterServicesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of services.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + public Builder setSecurityCenterServices( + int index, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.Builder + builderForValue) { + if (securityCenterServicesBuilder_ == null) { + ensureSecurityCenterServicesIsMutable(); + securityCenterServices_.set(index, builderForValue.build()); + onChanged(); + } else { + securityCenterServicesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of services.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + public Builder addSecurityCenterServices( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService value) { + if (securityCenterServicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityCenterServicesIsMutable(); + securityCenterServices_.add(value); + onChanged(); + } else { + securityCenterServicesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of services.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + public Builder addSecurityCenterServices( + int index, com.google.cloud.securitycentermanagement.v1.SecurityCenterService value) { + if (securityCenterServicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityCenterServicesIsMutable(); + securityCenterServices_.add(index, value); + onChanged(); + } else { + securityCenterServicesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of services.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + public Builder addSecurityCenterServices( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.Builder + builderForValue) { + if (securityCenterServicesBuilder_ == null) { + ensureSecurityCenterServicesIsMutable(); + securityCenterServices_.add(builderForValue.build()); + onChanged(); + } else { + securityCenterServicesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of services.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + public Builder addSecurityCenterServices( + int index, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.Builder + builderForValue) { + if (securityCenterServicesBuilder_ == null) { + ensureSecurityCenterServicesIsMutable(); + securityCenterServices_.add(index, builderForValue.build()); + onChanged(); + } else { + securityCenterServicesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of services.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + public Builder addAllSecurityCenterServices( + java.lang.Iterable< + ? extends com.google.cloud.securitycentermanagement.v1.SecurityCenterService> + values) { + if (securityCenterServicesBuilder_ == null) { + ensureSecurityCenterServicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, securityCenterServices_); + onChanged(); + } else { + securityCenterServicesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of services.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + public Builder clearSecurityCenterServices() { + if (securityCenterServicesBuilder_ == null) { + securityCenterServices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + securityCenterServicesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of services.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + public Builder removeSecurityCenterServices(int index) { + if (securityCenterServicesBuilder_ == null) { + ensureSecurityCenterServicesIsMutable(); + securityCenterServices_.remove(index); + onChanged(); + } else { + securityCenterServicesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of services.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService.Builder + getSecurityCenterServicesBuilder(int index) { + return getSecurityCenterServicesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of services.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.SecurityCenterServiceOrBuilder + getSecurityCenterServicesOrBuilder(int index) { + if (securityCenterServicesBuilder_ == null) { + return securityCenterServices_.get(index); + } else { + return securityCenterServicesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of services.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.securitycentermanagement.v1.SecurityCenterServiceOrBuilder> + getSecurityCenterServicesOrBuilderList() { + if (securityCenterServicesBuilder_ != null) { + return securityCenterServicesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(securityCenterServices_); + } + } + /** + * + * + *
+     * The list of services.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService.Builder + addSecurityCenterServicesBuilder() { + return getSecurityCenterServicesFieldBuilder() + .addBuilder( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .getDefaultInstance()); + } + /** + * + * + *
+     * The list of services.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService.Builder + addSecurityCenterServicesBuilder(int index) { + return getSecurityCenterServicesFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .getDefaultInstance()); + } + /** + * + * + *
+     * The list of services.
+     * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + public java.util.List< + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.Builder> + getSecurityCenterServicesBuilderList() { + return getSecurityCenterServicesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SecurityCenterService, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.Builder, + com.google.cloud.securitycentermanagement.v1.SecurityCenterServiceOrBuilder> + getSecurityCenterServicesFieldBuilder() { + if (securityCenterServicesBuilder_ == null) { + securityCenterServicesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SecurityCenterService, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.Builder, + com.google.cloud.securitycentermanagement.v1.SecurityCenterServiceOrBuilder>( + securityCenterServices_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + securityCenterServices_ = null; + } + return securityCenterServicesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse) + private static final com.google.cloud.securitycentermanagement.v1 + .ListSecurityCenterServicesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse(); + } + + public static com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSecurityCenterServicesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesResponseOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesResponseOrBuilder.java new file mode 100644 index 000000000000..9144feb9cc3a --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesResponseOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycentermanagement.v1; + +public interface ListSecurityCenterServicesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of services.
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + java.util.List + getSecurityCenterServicesList(); + /** + * + * + *
+   * The list of services.
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + com.google.cloud.securitycentermanagement.v1.SecurityCenterService getSecurityCenterServices( + int index); + /** + * + * + *
+   * The list of services.
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + int getSecurityCenterServicesCount(); + /** + * + * + *
+   * The list of services.
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + java.util.List< + ? extends com.google.cloud.securitycentermanagement.v1.SecurityCenterServiceOrBuilder> + getSecurityCenterServicesOrBuilderList(); + /** + * + * + *
+   * The list of services.
+   * 
+ * + * + * repeated .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_services = 1; + * + */ + com.google.cloud.securitycentermanagement.v1.SecurityCenterServiceOrBuilder + getSecurityCenterServicesOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java index 8d3388ecaa32..fb149a9298c9 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java @@ -77,11 +77,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Name of parent to list custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
-   * or
-   * "projects/{project}/locations/{location}"
+   * Required. Name of parent organization, folder, or project in which to list
+   * custom modules, specified in one of the following formats:
+   *
+   * * `organizations/{organization}/locations/{location}`
+   * * `folders/{folder}/locations/{location}`
+   * * `projects/{project}/locations/{location}`
    * 
* * @@ -106,11 +107,12 @@ public java.lang.String getParent() { * * *
-   * Required. Name of parent to list custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
-   * or
-   * "projects/{project}/locations/{location}"
+   * Required. Name of parent organization, folder, or project in which to list
+   * custom modules, specified in one of the following formats:
+   *
+   * * `organizations/{organization}/locations/{location}`
+   * * `folders/{folder}/locations/{location}`
+   * * `projects/{project}/locations/{location}`
    * 
* * @@ -647,11 +649,12 @@ public Builder mergeFrom( * * *
-     * Required. Name of parent to list custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
-     * or
-     * "projects/{project}/locations/{location}"
+     * Required. Name of parent organization, folder, or project in which to list
+     * custom modules, specified in one of the following formats:
+     *
+     * * `organizations/{organization}/locations/{location}`
+     * * `folders/{folder}/locations/{location}`
+     * * `projects/{project}/locations/{location}`
      * 
* * @@ -675,11 +678,12 @@ public java.lang.String getParent() { * * *
-     * Required. Name of parent to list custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
-     * or
-     * "projects/{project}/locations/{location}"
+     * Required. Name of parent organization, folder, or project in which to list
+     * custom modules, specified in one of the following formats:
+     *
+     * * `organizations/{organization}/locations/{location}`
+     * * `folders/{folder}/locations/{location}`
+     * * `projects/{project}/locations/{location}`
      * 
* * @@ -703,11 +707,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. Name of parent to list custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
-     * or
-     * "projects/{project}/locations/{location}"
+     * Required. Name of parent organization, folder, or project in which to list
+     * custom modules, specified in one of the following formats:
+     *
+     * * `organizations/{organization}/locations/{location}`
+     * * `folders/{folder}/locations/{location}`
+     * * `projects/{project}/locations/{location}`
      * 
* * @@ -730,11 +735,12 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. Name of parent to list custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
-     * or
-     * "projects/{project}/locations/{location}"
+     * Required. Name of parent organization, folder, or project in which to list
+     * custom modules, specified in one of the following formats:
+     *
+     * * `organizations/{organization}/locations/{location}`
+     * * `folders/{folder}/locations/{location}`
+     * * `projects/{project}/locations/{location}`
      * 
* * @@ -753,11 +759,12 @@ public Builder clearParent() { * * *
-     * Required. Name of parent to list custom modules. Its format is
-     * "organizations/{organization}/locations/{location}",
-     * "folders/{folder}/locations/{location}",
-     * or
-     * "projects/{project}/locations/{location}"
+     * Required. Name of parent organization, folder, or project in which to list
+     * custom modules, specified in one of the following formats:
+     *
+     * * `organizations/{organization}/locations/{location}`
+     * * `folders/{folder}/locations/{location}`
+     * * `projects/{project}/locations/{location}`
      * 
* * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java index 01dfb0273b2f..714f02101c5f 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java @@ -28,11 +28,12 @@ public interface ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder * * *
-   * Required. Name of parent to list custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
-   * or
-   * "projects/{project}/locations/{location}"
+   * Required. Name of parent organization, folder, or project in which to list
+   * custom modules, specified in one of the following formats:
+   *
+   * * `organizations/{organization}/locations/{location}`
+   * * `folders/{folder}/locations/{location}`
+   * * `projects/{project}/locations/{location}`
    * 
* * @@ -46,11 +47,12 @@ public interface ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder * * *
-   * Required. Name of parent to list custom modules. Its format is
-   * "organizations/{organization}/locations/{location}",
-   * "folders/{folder}/locations/{location}",
-   * or
-   * "projects/{project}/locations/{location}"
+   * Required. Name of parent organization, folder, or project in which to list
+   * custom modules, specified in one of the following formats:
+   *
+   * * `organizations/{organization}/locations/{location}`
+   * * `folders/{folder}/locations/{location}`
+   * * `projects/{project}/locations/{location}`
    * 
* * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java index 707b69500d53..b462cfd2d897 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java @@ -28,6 +28,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_SecurityCenterService_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_SecurityCenterService_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_SecurityCenterService_ModuleSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_SecurityCenterService_ModuleSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_SecurityCenterService_ModulesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_SecurityCenterService_ModulesEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_securitycentermanagement_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -188,6 +200,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_securitycentermanagement_v1_ValidateEventThreatDetectionCustomModuleResponse_Position_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_GetSecurityCenterServiceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_GetSecurityCenterServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListSecurityCenterServicesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListSecurityCenterServicesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_ListSecurityCenterServicesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_ListSecurityCenterServicesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityCenterServiceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityCenterServiceRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -207,570 +235,654 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pty.proto\032 google/protobuf/field_mask.pr" + "oto\032\034google/protobuf/struct.proto\032\037googl" + "e/protobuf/timestamp.proto\032\027google/rpc/s" - + "tatus.proto\032\026google/type/expr.proto\"\356\007\n," - + "EffectiveSecurityHealthAnalyticsCustomMo" - + "dule\022\021\n\004name\030\001 \001(\tB\003\340A\010\022R\n\rcustom_config" - + "\030\002 \001(\01326.google.cloud.securitycentermana" - + "gement.v1.CustomConfigB\003\340A\003\022\205\001\n\020enableme" - + "nt_state\030\003 \001(\0162f.google.cloud.securityce" - + "ntermanagement.v1.EffectiveSecurityHealt" - + "hAnalyticsCustomModule.EnablementStateB\003" - + "\340A\003\022\031\n\014display_name\030\004 \001(\tB\003\340A\003\"N\n\017Enable" - + "mentState\022 \n\034ENABLEMENT_STATE_UNSPECIFIE" - + "D\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002:\343\004\352A\337\004\nTs" - + "ecuritycentermanagement.googleapis.com/E" + + "tatus.proto\032\026google/type/expr.proto\"\255\n\n\025" + + "SecurityCenterService\022\021\n\004name\030\001 \001(\tB\003\340A\010" + + "\022w\n\031intended_enablement_state\030\002 \001(\0162O.go" + + "ogle.cloud.securitycentermanagement.v1.S" + + "ecurityCenterService.EnablementStateB\003\340A" + + "\001\022x\n\032effective_enablement_state\030\003 \001(\0162O." + + "google.cloud.securitycentermanagement.v1" + + ".SecurityCenterService.EnablementStateB\003" + + "\340A\003\022b\n\007modules\030\004 \003(\0132L.google.cloud.secu" + + "ritycentermanagement.v1.SecurityCenterSe" + + "rvice.ModulesEntryB\003\340A\001\0224\n\013update_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\016service_config\030\006 \001(\0132\027.google.protobuf." + + "StructB\003\340A\001\032\203\002\n\016ModuleSettings\022w\n\031intend" + + "ed_enablement_state\030\001 \001(\0162O.google.cloud" + + ".securitycentermanagement.v1.SecurityCen" + + "terService.EnablementStateB\003\340A\001\022x\n\032effec" + + "tive_enablement_state\030\002 \001(\0162O.google.clo" + + "ud.securitycentermanagement.v1.SecurityC" + + "enterService.EnablementStateB\003\340A\003\032~\n\014Mod" + + "ulesEntry\022\013\n\003key\030\001 \001(\t\022]\n\005value\030\002 \001(\0132N." + + "google.cloud.securitycentermanagement.v1" + + ".SecurityCenterService.ModuleSettings:\0028" + + "\001\"]\n\017EnablementState\022 \n\034ENABLEMENT_STATE" + + "_UNSPECIFIED\020\000\022\r\n\tINHERITED\020\001\022\013\n\007ENABLED" + + "\020\002\022\014\n\010DISABLED\020\003:\330\002\352A\324\002\n=securitycenterm" + + "anagement.googleapis.com/SecurityCenterS" + + "ervice\022Hprojects/{project}/locations/{lo" + + "cation}/securityCenterServices/{service}" + + "\022Ffolders/{folder}/locations/{location}/" + + "securityCenterServices/{service}\022Rorgani" + + "zations/{organization}/locations/{locati" + + "on}/securityCenterServices/{service}*\026se" + + "curityCenterServices2\025securityCenterServ" + + "ice\"\356\007\n,EffectiveSecurityHealthAnalytics" + + "CustomModule\022\021\n\004name\030\001 \001(\tB\003\340A\010\022R\n\rcusto" + + "m_config\030\002 \001(\01326.google.cloud.securityce" + + "ntermanagement.v1.CustomConfigB\003\340A\003\022\205\001\n\020" + + "enablement_state\030\003 \001(\0162f.google.cloud.se" + + "curitycentermanagement.v1.EffectiveSecur" + + "ityHealthAnalyticsCustomModule.Enablemen" + + "tStateB\003\340A\003\022\031\n\014display_name\030\004 \001(\tB\003\340A\003\"N" + + "\n\017EnablementState\022 \n\034ENABLEMENT_STATE_UN" + + "SPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002:\343" + + "\004\352A\337\004\nTsecuritycentermanagement.googleap" + + "is.com/EffectiveSecurityHealthAnalyticsC" + + "ustomModule\022\223\001organizations/{organizatio" + + "n}/locations/{location}/effectiveSecurit" + + "yHealthAnalyticsCustomModules/{effective" + + "_security_health_analytics_custom_module" + + "}\022\211\001projects/{project}/locations/{locati" + + "on}/effectiveSecurityHealthAnalyticsCust" + + "omModules/{effective_security_health_ana" + + "lytics_custom_module}\022\207\001folders/{folder}" + + "/locations/{location}/effectiveSecurityH" + + "ealthAnalyticsCustomModules/{effective_s" + + "ecurity_health_analytics_custom_module}*" + + "-effectiveSecurityHealthAnalyticsCustomM" + + "odules2,effectiveSecurityHealthAnalytics" + + "CustomModule\"\331\001\n8ListEffectiveSecurityHe" + + "althAnalyticsCustomModulesRequest\022l\n\006par" + + "ent\030\001 \001(\tB\\\340A\002\372AV\022Tsecuritycentermanagem" + + "ent.googleapis.com/EffectiveSecurityHeal" + + "thAnalyticsCustomModule\022\026\n\tpage_size\030\002 \001" + + "(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\351\001\n9Lis" + + "tEffectiveSecurityHealthAnalyticsCustomM" + + "odulesResponse\022\222\001\n2effective_security_he" + + "alth_analytics_custom_modules\030\001 \003(\0132V.go" + + "ogle.cloud.securitycentermanagement.v1.E" + "ffectiveSecurityHealthAnalyticsCustomMod" - + "ule\022\223\001organizations/{organization}/locat" - + "ions/{location}/effectiveSecurityHealthA" - + "nalyticsCustomModules/{effective_securit" - + "y_health_analytics_custom_module}\022\211\001proj" - + "ects/{project}/locations/{location}/effe" + + "ule\022\027\n\017next_page_token\030\002 \001(\t\"\244\001\n6GetEffe" + "ctiveSecurityHealthAnalyticsCustomModule" - + "s/{effective_security_health_analytics_c" - + "ustom_module}\022\207\001folders/{folder}/locatio" - + "ns/{location}/effectiveSecurityHealthAna" - + "lyticsCustomModules/{effective_security_" - + "health_analytics_custom_module}*-effecti" - + "veSecurityHealthAnalyticsCustomModules2," - + "effectiveSecurityHealthAnalyticsCustomMo" - + "dule\"\331\001\n8ListEffectiveSecurityHealthAnal" - + "yticsCustomModulesRequest\022l\n\006parent\030\001 \001(" - + "\tB\\\340A\002\372AV\022Tsecuritycentermanagement.goog" - + "leapis.com/EffectiveSecurityHealthAnalyt" - + "icsCustomModule\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022" - + "\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\351\001\n9ListEffecti" - + "veSecurityHealthAnalyticsCustomModulesRe" - + "sponse\022\222\001\n2effective_security_health_ana" - + "lytics_custom_modules\030\001 \003(\0132V.google.clo" - + "ud.securitycentermanagement.v1.Effective" - + "SecurityHealthAnalyticsCustomModule\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\"\244\001\n6GetEffectiveSec" + + "Request\022j\n\004name\030\001 \001(\tB\\\340A\002\372AV\nTsecurityc" + + "entermanagement.googleapis.com/Effective" + + "SecurityHealthAnalyticsCustomModule\"\322\010\n#" + + "SecurityHealthAnalyticsCustomModule\022\021\n\004n" + + "ame\030\001 \001(\tB\003\340A\010\022\031\n\014display_name\030\002 \001(\tB\003\340A" + + "\001\022|\n\020enablement_state\030\003 \001(\0162].google.clo" + + "ud.securitycentermanagement.v1.SecurityH" + + "ealthAnalyticsCustomModule.EnablementSta" + + "teB\003\340A\001\0224\n\013update_time\030\004 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\022\030\n\013last_editor\030\005 \001" + + "(\tB\003\340A\003\022l\n\017ancestor_module\030\006 \001(\tBS\340A\003\372AM" + + "\nKsecuritycentermanagement.googleapis.co" + + "m/SecurityHealthAnalyticsCustomModule\022R\n" + + "\rcustom_config\030\007 \001(\01326.google.cloud.secu" + + "ritycentermanagement.v1.CustomConfigB\003\340A" + + "\001\"]\n\017EnablementState\022 \n\034ENABLEMENT_STATE" + + "_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020" + + "\002\022\r\n\tINHERITED\020\003:\215\004\352A\211\004\nKsecuritycenterm" + + "anagement.googleapis.com/SecurityHealthA" + + "nalyticsCustomModule\022\200\001organizations/{or" + + "ganization}/locations/{location}/securit" + + "yHealthAnalyticsCustomModules/{security_" + + "health_analytics_custom_module}\022vproject" + + "s/{project}/locations/{location}/securit" + + "yHealthAnalyticsCustomModules/{security_" + + "health_analytics_custom_module}\022tfolders" + + "/{folder}/locations/{location}/securityH" + + "ealthAnalyticsCustomModules/{security_he" + + "alth_analytics_custom_module}*$securityH" + + "ealthAnalyticsCustomModules2#securityHea" + + "lthAnalyticsCustomModule\"\353\005\n\014CustomConfi" + + "g\022)\n\tpredicate\030\001 \001(\0132\021.google.type.ExprB" + + "\003\340A\001\022c\n\rcustom_output\030\002 \001(\0132G.google.clo" + + "ud.securitycentermanagement.v1.CustomCon" + + "fig.CustomOutputSpecB\003\340A\001\022g\n\021resource_se" + + "lector\030\003 \001(\0132G.google.cloud.securitycent" + + "ermanagement.v1.CustomConfig.ResourceSel" + + "ectorB\003\340A\001\022V\n\010severity\030\004 \001(\0162?.google.cl" + + "oud.securitycentermanagement.v1.CustomCo" + + "nfig.SeverityB\003\340A\001\022\030\n\013description\030\005 \001(\tB" + + "\003\340A\001\022\033\n\016recommendation\030\006 \001(\tB\003\340A\001\032\316\001\n\020Cu" + + "stomOutputSpec\022i\n\nproperties\030\001 \003(\0132P.goo" + + "gle.cloud.securitycentermanagement.v1.Cu" + + "stomConfig.CustomOutputSpec.PropertyB\003\340A" + + "\001\032O\n\010Property\022\021\n\004name\030\001 \001(\tB\003\340A\001\0220\n\020valu" + + "e_expression\030\002 \001(\0132\021.google.type.ExprB\003\340" + + "A\001\032/\n\020ResourceSelector\022\033\n\016resource_types" + + "\030\001 \003(\tB\003\340A\001\"Q\n\010Severity\022\030\n\024SEVERITY_UNSP" + + "ECIFIED\020\000\022\014\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MED" + + "IUM\020\003\022\007\n\003LOW\020\004\"\307\001\n/ListSecurityHealthAna" + + "lyticsCustomModulesRequest\022c\n\006parent\030\001 \001" + + "(\tBS\340A\002\372AM\022Ksecuritycentermanagement.goo" + + "gleapis.com/SecurityHealthAnalyticsCusto" + + "mModule\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_" + + "token\030\003 \001(\tB\003\340A\001\"\314\001\n0ListSecurityHealthA" + + "nalyticsCustomModulesResponse\022\177\n(securit" + + "y_health_analytics_custom_modules\030\001 \003(\0132" + + "M.google.cloud.securitycentermanagement." + + "v1.SecurityHealthAnalyticsCustomModule\022\027" + + "\n\017next_page_token\030\002 \001(\t\"\321\001\n9ListDescenda" + + "ntSecurityHealthAnalyticsCustomModulesRe" + + "quest\022c\n\006parent\030\001 \001(\tBS\340A\002\372AM\022Ksecurityc" + + "entermanagement.googleapis.com/SecurityH" + + "ealthAnalyticsCustomModule\022\026\n\tpage_size\030" + + "\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\326\001\n:" + + "ListDescendantSecurityHealthAnalyticsCus" + + "tomModulesResponse\022\177\n(security_health_an" + + "alytics_custom_modules\030\001 \003(\0132M.google.cl" + + "oud.securitycentermanagement.v1.Security" + + "HealthAnalyticsCustomModule\022\027\n\017next_page" + + "_token\030\002 \001(\t\"\222\001\n-GetSecurityHealthAnalyt" + + "icsCustomModuleRequest\022a\n\004name\030\001 \001(\tBS\340A" + + "\002\372AM\nKsecuritycentermanagement.googleapi" + + "s.com/SecurityHealthAnalyticsCustomModul" + + "e\"\271\002\n0CreateSecurityHealthAnalyticsCusto" + + "mModuleRequest\022c\n\006parent\030\001 \001(\tBS\340A\002\372AM\022K" + + "securitycentermanagement.googleapis.com/" + + "SecurityHealthAnalyticsCustomModule\022\203\001\n\'" + + "security_health_analytics_custom_module\030" + + "\002 \001(\0132M.google.cloud.securitycentermanag" + + "ement.v1.SecurityHealthAnalyticsCustomMo" + + "duleB\003\340A\002\022\032\n\rvalidate_only\030\003 \001(\010B\003\340A\001\"\212\002" + + "\n0UpdateSecurityHealthAnalyticsCustomMod" + + "uleRequest\0224\n\013update_mask\030\001 \001(\0132\032.google" + + ".protobuf.FieldMaskB\003\340A\002\022\203\001\n\'security_he" + + "alth_analytics_custom_module\030\002 \001(\0132M.goo" + + "gle.cloud.securitycentermanagement.v1.Se" + + "curityHealthAnalyticsCustomModuleB\003\340A\002\022\032" + + "\n\rvalidate_only\030\003 \001(\010B\003\340A\001\"\261\001\n0DeleteSec" + "urityHealthAnalyticsCustomModuleRequest\022" - + "j\n\004name\030\001 \001(\tB\\\340A\002\372AV\nTsecuritycenterman" - + "agement.googleapis.com/EffectiveSecurity" - + "HealthAnalyticsCustomModule\"\322\010\n#Security" - + "HealthAnalyticsCustomModule\022\021\n\004name\030\001 \001(" - + "\tB\003\340A\010\022\031\n\014display_name\030\002 \001(\tB\003\340A\001\022|\n\020ena" - + "blement_state\030\003 \001(\0162].google.cloud.secur" - + "itycentermanagement.v1.SecurityHealthAna" - + "lyticsCustomModule.EnablementStateB\003\340A\001\022" - + "4\n\013update_time\030\004 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\022\030\n\013last_editor\030\005 \001(\tB\003\340A\003\022" - + "l\n\017ancestor_module\030\006 \001(\tBS\340A\003\372AM\nKsecuri" - + "tycentermanagement.googleapis.com/Securi" - + "tyHealthAnalyticsCustomModule\022R\n\rcustom_" - + "config\030\007 \001(\01326.google.cloud.securitycent" - + "ermanagement.v1.CustomConfigB\003\340A\001\"]\n\017Ena" - + "blementState\022 \n\034ENABLEMENT_STATE_UNSPECI" - + "FIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022\r\n\tINH" - + "ERITED\020\003:\215\004\352A\211\004\nKsecuritycentermanagemen" - + "t.googleapis.com/SecurityHealthAnalytics" - + "CustomModule\022\200\001organizations/{organizati" - + "on}/locations/{location}/securityHealthA" - + "nalyticsCustomModules/{security_health_a" - + "nalytics_custom_module}\022vprojects/{proje" - + "ct}/locations/{location}/securityHealthA" - + "nalyticsCustomModules/{security_health_a" - + "nalytics_custom_module}\022tfolders/{folder" - + "}/locations/{location}/securityHealthAna" - + "lyticsCustomModules/{security_health_ana" - + "lytics_custom_module}*$securityHealthAna" - + "lyticsCustomModules2#securityHealthAnaly" - + "ticsCustomModule\"\353\005\n\014CustomConfig\022)\n\tpre" - + "dicate\030\001 \001(\0132\021.google.type.ExprB\003\340A\001\022c\n\r" - + "custom_output\030\002 \001(\0132G.google.cloud.secur" - + "itycentermanagement.v1.CustomConfig.Cust" - + "omOutputSpecB\003\340A\001\022g\n\021resource_selector\030\003" - + " \001(\0132G.google.cloud.securitycentermanage" - + "ment.v1.CustomConfig.ResourceSelectorB\003\340" - + "A\001\022V\n\010severity\030\004 \001(\0162?.google.cloud.secu" - + "ritycentermanagement.v1.CustomConfig.Sev" - + "erityB\003\340A\001\022\030\n\013description\030\005 \001(\tB\003\340A\001\022\033\n\016" - + "recommendation\030\006 \001(\tB\003\340A\001\032\316\001\n\020CustomOutp" - + "utSpec\022i\n\nproperties\030\001 \003(\0132P.google.clou" - + "d.securitycentermanagement.v1.CustomConf" - + "ig.CustomOutputSpec.PropertyB\003\340A\001\032O\n\010Pro" - + "perty\022\021\n\004name\030\001 \001(\tB\003\340A\001\0220\n\020value_expres" - + "sion\030\002 \001(\0132\021.google.type.ExprB\003\340A\001\032/\n\020Re" - + "sourceSelector\022\033\n\016resource_types\030\001 \003(\tB\003" - + "\340A\001\"Q\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIED\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\"\307\001\n/ListSecurityHealthAnalyticsCu" - + "stomModulesRequest\022c\n\006parent\030\001 \001(\tBS\340A\002\372" - + "AM\022Ksecuritycentermanagement.googleapis." - + "com/SecurityHealthAnalyticsCustomModule\022" - + "\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 " - + "\001(\tB\003\340A\001\"\314\001\n0ListSecurityHealthAnalytics" - + "CustomModulesResponse\022\177\n(security_health" - + "_analytics_custom_modules\030\001 \003(\0132M.google" - + ".cloud.securitycentermanagement.v1.Secur" - + "ityHealthAnalyticsCustomModule\022\027\n\017next_p" - + "age_token\030\002 \001(\t\"\321\001\n9ListDescendantSecuri" - + "tyHealthAnalyticsCustomModulesRequest\022c\n" - + "\006parent\030\001 \001(\tBS\340A\002\372AM\022Ksecuritycenterman" + + "a\n\004name\030\001 \001(\tBS\340A\002\372AM\nKsecuritycenterman" + "agement.googleapis.com/SecurityHealthAna" - + "lyticsCustomModule\022\026\n\tpage_size\030\002 \001(\005B\003\340" - + "A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\326\001\n:ListDesc" - + "endantSecurityHealthAnalyticsCustomModul" - + "esResponse\022\177\n(security_health_analytics_" - + "custom_modules\030\001 \003(\0132M.google.cloud.secu" - + "ritycentermanagement.v1.SecurityHealthAn" - + "alyticsCustomModule\022\027\n\017next_page_token\030\002" - + " \001(\t\"\222\001\n-GetSecurityHealthAnalyticsCusto" - + "mModuleRequest\022a\n\004name\030\001 \001(\tBS\340A\002\372AM\nKse" - + "curitycentermanagement.googleapis.com/Se" - + "curityHealthAnalyticsCustomModule\"\271\002\n0Cr" - + "eateSecurityHealthAnalyticsCustomModuleR" - + "equest\022c\n\006parent\030\001 \001(\tBS\340A\002\372AM\022Ksecurity" - + "centermanagement.googleapis.com/Security" - + "HealthAnalyticsCustomModule\022\203\001\n\'security" - + "_health_analytics_custom_module\030\002 \001(\0132M." - + "google.cloud.securitycentermanagement.v1" - + ".SecurityHealthAnalyticsCustomModuleB\003\340A" - + "\002\022\032\n\rvalidate_only\030\003 \001(\010B\003\340A\001\"\212\002\n0Update" - + "SecurityHealthAnalyticsCustomModuleReque" - + "st\0224\n\013update_mask\030\001 \001(\0132\032.google.protobu" - + "f.FieldMaskB\003\340A\002\022\203\001\n\'security_health_ana" - + "lytics_custom_module\030\002 \001(\0132M.google.clou" - + "d.securitycentermanagement.v1.SecurityHe" - + "althAnalyticsCustomModuleB\003\340A\002\022\032\n\rvalida" - + "te_only\030\003 \001(\010B\003\340A\001\"\261\001\n0DeleteSecurityHea" - + "lthAnalyticsCustomModuleRequest\022a\n\004name\030" - + "\001 \001(\tBS\340A\002\372AM\nKsecuritycentermanagement." - + "googleapis.com/SecurityHealthAnalyticsCu" - + "stomModule\022\032\n\rvalidate_only\030\002 \001(\010B\003\340A\001\"\301" - + "\003\n2SimulateSecurityHealthAnalyticsCustom" - + "ModuleRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022R\n\rcu" - + "stom_config\030\002 \001(\01326.google.cloud.securit" - + "ycentermanagement.v1.CustomConfigB\003\340A\002\022\205" - + "\001\n\010resource\030\003 \001(\0132n.google.cloud.securit" - + "ycentermanagement.v1.SimulateSecurityHea" - + "lthAnalyticsCustomModuleRequest.Simulate" - + "dResourceB\003\340A\002\032\231\001\n\021SimulatedResource\022\032\n\r" - + "resource_type\030\001 \001(\tB\003\340A\002\0223\n\rresource_dat" - + "a\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\0223\n" - + "\017iam_policy_data\030\003 \001(\0132\025.google.iam.v1.P" - + "olicyB\003\340A\001\"\363\010\n\020SimulatedFinding\022\021\n\004name\030" - + "\001 \001(\tB\003\340A\010\022\016\n\006parent\030\002 \001(\t\022\025\n\rresource_n" - + "ame\030\003 \001(\t\022\020\n\010category\030\004 \001(\t\022T\n\005state\030\005 \001" - + "(\0162@.google.cloud.securitycentermanageme" - + "nt.v1.SimulatedFinding.StateB\003\340A\003\022k\n\021sou" - + "rce_properties\030\006 \003(\0132P.google.cloud.secu" - + "ritycentermanagement.v1.SimulatedFinding" - + ".SourcePropertiesEntry\022.\n\nevent_time\030\007 \001" - + "(\0132\032.google.protobuf.Timestamp\022U\n\010severi" - + "ty\030\010 \001(\0162C.google.cloud.securitycenterma" - + "nagement.v1.SimulatedFinding.Severity\022^\n" - + "\rfinding_class\030\t \001(\0162G.google.cloud.secu" + + "lyticsCustomModule\022\032\n\rvalidate_only\030\002 \001(" + + "\010B\003\340A\001\"\301\003\n2SimulateSecurityHealthAnalyti" + + "csCustomModuleRequest\022\023\n\006parent\030\001 \001(\tB\003\340" + + "A\002\022R\n\rcustom_config\030\002 \001(\01326.google.cloud" + + ".securitycentermanagement.v1.CustomConfi" + + "gB\003\340A\002\022\205\001\n\010resource\030\003 \001(\0132n.google.cloud" + + ".securitycentermanagement.v1.SimulateSec" + + "urityHealthAnalyticsCustomModuleRequest." + + "SimulatedResourceB\003\340A\002\032\231\001\n\021SimulatedReso" + + "urce\022\032\n\rresource_type\030\001 \001(\tB\003\340A\002\0223\n\rreso" + + "urce_data\030\002 \001(\0132\027.google.protobuf.Struct" + + "B\003\340A\001\0223\n\017iam_policy_data\030\003 \001(\0132\025.google." + + "iam.v1.PolicyB\003\340A\001\"\363\010\n\020SimulatedFinding\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\010\022\016\n\006parent\030\002 \001(\t\022\025\n\rre" + + "source_name\030\003 \001(\t\022\020\n\010category\030\004 \001(\t\022T\n\005s" + + "tate\030\005 \001(\0162@.google.cloud.securitycenter" + + "management.v1.SimulatedFinding.StateB\003\340A" + + "\003\022k\n\021source_properties\030\006 \003(\0132P.google.cl" + + "oud.securitycentermanagement.v1.Simulate" + + "dFinding.SourcePropertiesEntry\022.\n\nevent_" + + "time\030\007 \001(\0132\032.google.protobuf.Timestamp\022U" + + "\n\010severity\030\010 \001(\0162C.google.cloud.security" + + "centermanagement.v1.SimulatedFinding.Sev" + + "erity\022^\n\rfinding_class\030\t \001(\0162G.google.cl" + + "oud.securitycentermanagement.v1.Simulate" + + "dFinding.FindingClass\032O\n\025SourcePropertie" + + "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo" + + "gle.protobuf.Value:\0028\001\"8\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002" + + "\"Q\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014" + + "\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LO" + + "W\020\004\"\231\001\n\014FindingClass\022\035\n\031FINDING_CLASS_UN" + + "SPECIFIED\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\022\025\n\021POSTURE_VIOLATION\020\006:" + + "\356\001\352A\352\001\n%securitycenter.googleapis.com/Fi" + + "nding\022@organizations/{organization}/sour" + + "ces/{source}/findings/{finding}\0224folders" + + "/{folder}/sources/{source}/findings/{fin" + + "ding}\0226projects/{project}/sources/{sourc" + + "e}/findings/{finding}*\010findings2\007finding" + + "\"\366\002\n3SimulateSecurityHealthAnalyticsCust" + + "omModuleResponse\022}\n\006result\030\001 \001(\0132m.googl" + + "e.cloud.securitycentermanagement.v1.Simu" + + "lateSecurityHealthAnalyticsCustomModuleR" + + "esponse.SimulatedResult\032\277\001\n\017SimulatedRes" + + "ult\022M\n\007finding\030\001 \001(\0132:.google.cloud.secu" + "ritycentermanagement.v1.SimulatedFinding" - + ".FindingClass\032O\n\025SourcePropertiesEntry\022\013" - + "\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.prot" - + "obuf.Value:\0028\001\"8\n\005State\022\025\n\021STATE_UNSPECI" - + "FIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002\"Q\n\010Seve" - + "rity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRITIC" - + "AL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004\"\231\001\n\014" - + "FindingClass\022\035\n\031FINDING_CLASS_UNSPECIFIE" - + "D\020\000\022\n\n\006THREAT\020\001\022\021\n\rVULNERABILITY\020\002\022\024\n\020MI" - + "SCONFIGURATION\020\003\022\017\n\013OBSERVATION\020\004\022\r\n\tSCC" - + "_ERROR\020\005\022\025\n\021POSTURE_VIOLATION\020\006:\356\001\352A\352\001\n%" - + "securitycenter.googleapis.com/Finding\022@o" - + "rganizations/{organization}/sources/{sou" - + "rce}/findings/{finding}\0224folders/{folder" - + "}/sources/{source}/findings/{finding}\0226p" - + "rojects/{project}/sources/{source}/findi" - + "ngs/{finding}*\010findings2\007finding\"\366\002\n3Sim" - + "ulateSecurityHealthAnalyticsCustomModule" - + "Response\022}\n\006result\030\001 \001(\0132m.google.cloud." - + "securitycentermanagement.v1.SimulateSecu" - + "rityHealthAnalyticsCustomModuleResponse." - + "SimulatedResult\032\277\001\n\017SimulatedResult\022M\n\007f" - + "inding\030\001 \001(\0132:.google.cloud.securitycent" - + "ermanagement.v1.SimulatedFindingH\000\022.\n\014no" - + "_violation\030\002 \001(\0132\026.google.protobuf.Empty" - + "H\000\022#\n\005error\030\003 \001(\0132\022.google.rpc.StatusH\000B" - + "\010\n\006result\"\324\007\n)EffectiveEventThreatDetect" - + "ionCustomModule\022\021\n\004name\030\001 \001(\tB\003\340A\010\022,\n\006co" - + "nfig\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\003" - + "\022\202\001\n\020enablement_state\030\003 \001(\0162c.google.clo" - + "ud.securitycentermanagement.v1.Effective" - + "EventThreatDetectionCustomModule.Enablem" - + "entStateB\003\340A\003\022\021\n\004type\030\004 \001(\tB\003\340A\003\022\031\n\014disp" - + "lay_name\030\005 \001(\tB\003\340A\003\022\030\n\013description\030\006 \001(\t" - + "B\003\340A\003\"N\n\017EnablementState\022 \n\034ENABLEMENT_S" - + "TATE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISAB" - + "LED\020\002:\310\004\352A\304\004\nQsecuritycentermanagement.g" - + "oogleapis.com/EffectiveEventThreatDetect" - + "ionCustomModule\022\215\001organizations/{organiz" - + "ation}/locations/{location}/effectiveEve" - + "ntThreatDetectionCustomModules/{effectiv" - + "e_event_threat_detection_custom_module}\022" - + "\203\001projects/{project}/locations/{location" - + "}/effectiveEventThreatDetectionCustomMod" - + "ules/{effective_event_threat_detection_c" - + "ustom_module}\022\201\001folders/{folder}/locatio" - + "ns/{location}/effectiveEventThreatDetect" - + "ionCustomModules/{effective_event_threat" - + "_detection_custom_module}**effectiveEven" - + "tThreatDetectionCustomModules2)effective" - + "EventThreatDetectionCustomModule\"\323\001\n5Lis" - + "tEffectiveEventThreatDetectionCustomModu" - + "lesRequest\022i\n\006parent\030\001 \001(\tBY\340A\002\372AS\022Qsecu" - + "ritycentermanagement.googleapis.com/Effe" - + "ctiveEventThreatDetectionCustomModule\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(" - + "\tB\003\340A\001\"\340\001\n6ListEffectiveEventThreatDetec" - + "tionCustomModulesResponse\022\214\001\n/effective_" - + "event_threat_detection_custom_modules\030\001 " - + "\003(\0132S.google.cloud.securitycentermanagem" - + "ent.v1.EffectiveEventThreatDetectionCust" - + "omModule\022\027\n\017next_page_token\030\002 \001(\t\"\236\001\n3Ge" - + "tEffectiveEventThreatDetectionCustomModu" - + "leRequest\022g\n\004name\030\001 \001(\tBY\340A\002\372AS\nQsecurit" - + "ycentermanagement.googleapis.com/Effecti" - + "veEventThreatDetectionCustomModule\"\264\010\n E" - + "ventThreatDetectionCustomModule\022\021\n\004name\030" - + "\001 \001(\tB\003\340A\010\022,\n\006config\030\002 \001(\0132\027.google.prot" - + "obuf.StructB\003\340A\001\022i\n\017ancestor_module\030\003 \001(" - + "\tBP\340A\003\372AJ\nHsecuritycentermanagement.goog" - + "leapis.com/EventThreatDetectionCustomMod" - + "ule\022y\n\020enablement_state\030\004 \001(\0162Z.google.c" - + "loud.securitycentermanagement.v1.EventTh" - + "reatDetectionCustomModule.EnablementStat" - + "eB\003\340A\001\022\021\n\004type\030\005 \001(\tB\003\340A\001\022\031\n\014display_nam" - + "e\030\006 \001(\tB\003\340A\001\022\030\n\013description\030\007 \001(\tB\003\340A\001\0224" - + "\n\013update_time\030\010 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\022\030\n\013last_editor\030\t \001(\tB\003\340A\003\"]" - + "\n\017EnablementState\022 \n\034ENABLEMENT_STATE_UN" - + "SPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022\r" - + "\n\tINHERITED\020\003:\361\003\352A\355\003\nHsecuritycentermana" - + "gement.googleapis.com/EventThreatDetecti" - + "onCustomModule\022zorganizations/{organizat" - + "ion}/locations/{location}/eventThreatDet" - + "ectionCustomModules/{event_threat_detect" - + "ion_custom_module}\022pprojects/{project}/l" + + "H\000\022.\n\014no_violation\030\002 \001(\0132\026.google.protob" + + "uf.EmptyH\000\022#\n\005error\030\003 \001(\0132\022.google.rpc.S" + + "tatusH\000B\010\n\006result\"\324\007\n)EffectiveEventThre" + + "atDetectionCustomModule\022\021\n\004name\030\001 \001(\tB\003\340" + + "A\010\022,\n\006config\030\002 \001(\0132\027.google.protobuf.Str" + + "uctB\003\340A\003\022\202\001\n\020enablement_state\030\003 \001(\0162c.go" + + "ogle.cloud.securitycentermanagement.v1.E" + + "ffectiveEventThreatDetectionCustomModule" + + ".EnablementStateB\003\340A\003\022\021\n\004type\030\004 \001(\tB\003\340A\003" + + "\022\031\n\014display_name\030\005 \001(\tB\003\340A\003\022\030\n\013descripti" + + "on\030\006 \001(\tB\003\340A\003\"N\n\017EnablementState\022 \n\034ENAB" + + "LEMENT_STATE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022" + + "\014\n\010DISABLED\020\002:\310\004\352A\304\004\nQsecuritycentermana" + + "gement.googleapis.com/EffectiveEventThre" + + "atDetectionCustomModule\022\215\001organizations/" + + "{organization}/locations/{location}/effe" + + "ctiveEventThreatDetectionCustomModules/{" + + "effective_event_threat_detection_custom_" + + "module}\022\203\001projects/{project}/locations/{" + + "location}/effectiveEventThreatDetectionC" + + "ustomModules/{effective_event_threat_det" + + "ection_custom_module}\022\201\001folders/{folder}" + + "/locations/{location}/effectiveEventThre" + + "atDetectionCustomModules/{effective_even" + + "t_threat_detection_custom_module}**effec" + + "tiveEventThreatDetectionCustomModules2)e" + + "ffectiveEventThreatDetectionCustomModule" + + "\"\323\001\n5ListEffectiveEventThreatDetectionCu" + + "stomModulesRequest\022i\n\006parent\030\001 \001(\tBY\340A\002\372" + + "AS\022Qsecuritycentermanagement.googleapis." + + "com/EffectiveEventThreatDetectionCustomM" + + "odule\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" + + "ken\030\003 \001(\tB\003\340A\001\"\340\001\n6ListEffectiveEventThr" + + "eatDetectionCustomModulesResponse\022\214\001\n/ef" + + "fective_event_threat_detection_custom_mo" + + "dules\030\001 \003(\0132S.google.cloud.securitycente" + + "rmanagement.v1.EffectiveEventThreatDetec" + + "tionCustomModule\022\027\n\017next_page_token\030\002 \001(" + + "\t\"\236\001\n3GetEffectiveEventThreatDetectionCu" + + "stomModuleRequest\022g\n\004name\030\001 \001(\tBY\340A\002\372AS\n" + + "Qsecuritycentermanagement.googleapis.com" + + "/EffectiveEventThreatDetectionCustomModu" + + "le\"\264\010\n EventThreatDetectionCustomModule\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\010\022,\n\006config\030\002 \001(\0132\027.goo" + + "gle.protobuf.StructB\003\340A\001\022i\n\017ancestor_mod" + + "ule\030\003 \001(\tBP\340A\003\372AJ\nHsecuritycentermanagem" + + "ent.googleapis.com/EventThreatDetectionC" + + "ustomModule\022y\n\020enablement_state\030\004 \001(\0162Z." + + "google.cloud.securitycentermanagement.v1" + + ".EventThreatDetectionCustomModule.Enable" + + "mentStateB\003\340A\001\022\021\n\004type\030\005 \001(\tB\003\340A\001\022\031\n\014dis" + + "play_name\030\006 \001(\tB\003\340A\001\022\030\n\013description\030\007 \001(" + + "\tB\003\340A\001\0224\n\013update_time\030\010 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022\030\n\013last_editor\030\t \001(" + + "\tB\003\340A\003\"]\n\017EnablementState\022 \n\034ENABLEMENT_" + + "STATE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISA" + + "BLED\020\002\022\r\n\tINHERITED\020\003:\361\003\352A\355\003\nHsecurityce" + + "ntermanagement.googleapis.com/EventThrea" + + "tDetectionCustomModule\022zorganizations/{o" + + "rganization}/locations/{location}/eventT" + + "hreatDetectionCustomModules/{event_threa" + + "t_detection_custom_module}\022pprojects/{pr" + + "oject}/locations/{location}/eventThreatD" + + "etectionCustomModules/{event_threat_dete" + + "ction_custom_module}\022nfolders/{folder}/l" + "ocations/{location}/eventThreatDetection" + "CustomModules/{event_threat_detection_cu" - + "stom_module}\022nfolders/{folder}/locations" - + "/{location}/eventThreatDetectionCustomMo" - + "dules/{event_threat_detection_custom_mod" - + "ule}*!eventThreatDetectionCustomModules2" - + " eventThreatDetectionCustomModule\"\301\001\n,Li" - + "stEventThreatDetectionCustomModulesReque" + + "stom_module}*!eventThreatDetectionCustom" + + "Modules2 eventThreatDetectionCustomModul" + + "e\"\301\001\n,ListEventThreatDetectionCustomModu" + + "lesRequest\022`\n\006parent\030\001 \001(\tBP\340A\002\372AJ\022Hsecu" + + "ritycentermanagement.googleapis.com/Even" + + "tThreatDetectionCustomModule\022\026\n\tpage_siz" + + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\303\001" + + "\n-ListEventThreatDetectionCustomModulesR" + + "esponse\022y\n%event_threat_detection_custom" + + "_modules\030\001 \003(\0132J.google.cloud.securityce" + + "ntermanagement.v1.EventThreatDetectionCu" + + "stomModule\022\027\n\017next_page_token\030\002 \001(\t\"\313\001\n6" + + "ListDescendantEventThreatDetectionCustom" + + "ModulesRequest\022`\n\006parent\030\001 \001(\tBP\340A\002\372AJ\022H" + + "securitycentermanagement.googleapis.com/" + + "EventThreatDetectionCustomModule\022\026\n\tpage" + + "_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A" + + "\001\"\315\001\n7ListDescendantEventThreatDetection" + + "CustomModulesResponse\022y\n%event_threat_de" + + "tection_custom_modules\030\001 \003(\0132J.google.cl" + + "oud.securitycentermanagement.v1.EventThr" + + "eatDetectionCustomModule\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"\214\001\n*GetEventThreatDetectionCus" + + "tomModuleRequest\022^\n\004name\030\001 \001(\tBP\340A\002\372AJ\nH" + + "securitycentermanagement.googleapis.com/" + + "EventThreatDetectionCustomModule\"\254\002\n-Cre" + + "ateEventThreatDetectionCustomModuleReque" + "st\022`\n\006parent\030\001 \001(\tBP\340A\002\372AJ\022Hsecuritycent" + "ermanagement.googleapis.com/EventThreatD" - + "etectionCustomModule\022\026\n\tpage_size\030\002 \001(\005B" - + "\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\303\001\n-ListEv" - + "entThreatDetectionCustomModulesResponse\022" - + "y\n%event_threat_detection_custom_modules" - + "\030\001 \003(\0132J.google.cloud.securitycentermana" - + "gement.v1.EventThreatDetectionCustomModu" - + "le\022\027\n\017next_page_token\030\002 \001(\t\"\313\001\n6ListDesc" - + "endantEventThreatDetectionCustomModulesR" - + "equest\022`\n\006parent\030\001 \001(\tBP\340A\002\372AJ\022Hsecurity" - + "centermanagement.googleapis.com/EventThr" - + "eatDetectionCustomModule\022\026\n\tpage_size\030\002 " - + "\001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\315\001\n7Li" - + "stDescendantEventThreatDetectionCustomMo" - + "dulesResponse\022y\n%event_threat_detection_" - + "custom_modules\030\001 \003(\0132J.google.cloud.secu" - + "ritycentermanagement.v1.EventThreatDetec" - + "tionCustomModule\022\027\n\017next_page_token\030\002 \001(" - + "\t\"\214\001\n*GetEventThreatDetectionCustomModul" - + "eRequest\022^\n\004name\030\001 \001(\tBP\340A\002\372AJ\nHsecurity" - + "centermanagement.googleapis.com/EventThr" - + "eatDetectionCustomModule\"\254\002\n-CreateEvent" - + "ThreatDetectionCustomModuleRequest\022`\n\006pa" - + "rent\030\001 \001(\tBP\340A\002\372AJ\022Hsecuritycentermanage" - + "ment.googleapis.com/EventThreatDetection" - + "CustomModule\022}\n$event_threat_detection_c" - + "ustom_module\030\003 \001(\0132J.google.cloud.securi" - + "tycentermanagement.v1.EventThreatDetecti" - + "onCustomModuleB\003\340A\002\022\032\n\rvalidate_only\030\004 \001" - + "(\010B\003\340A\001\"\200\002\n-UpdateEventThreatDetectionCu" - + "stomModuleRequest\0224\n\013update_mask\030\001 \001(\0132\032" - + ".google.protobuf.FieldMaskB\003\340A\002\022}\n$event" - + "_threat_detection_custom_module\030\002 \001(\0132J." - + "google.cloud.securitycentermanagement.v1" - + ".EventThreatDetectionCustomModuleB\003\340A\002\022\032" - + "\n\rvalidate_only\030\003 \001(\010B\003\340A\001\"\253\001\n-DeleteEve" - + "ntThreatDetectionCustomModuleRequest\022^\n\004" - + "name\030\001 \001(\tBP\340A\002\372AJ\nHsecuritycentermanage" - + "ment.googleapis.com/EventThreatDetection" - + "CustomModule\022\032\n\rvalidate_only\030\002 \001(\010B\003\340A\001" - + "\"\275\001\n/ValidateEventThreatDetectionCustomM" - + "oduleRequest\022`\n\006parent\030\001 \001(\tBP\340A\002\372AJ\022Hse" - + "curitycentermanagement.googleapis.com/Ev" - + "entThreatDetectionCustomModule\022\025\n\010raw_te" - + "xt\030\002 \001(\tB\003\340A\002\022\021\n\004type\030\003 \001(\tB\003\340A\002\"\276\004\n0Val" - + "idateEventThreatDetectionCustomModuleRes" - + "ponse\022\206\001\n\006errors\030\002 \003(\0132v.google.cloud.se" - + "curitycentermanagement.v1.ValidateEventT" - + "hreatDetectionCustomModuleResponse.Custo" - + "mModuleValidationError\032\310\002\n\033CustomModuleV" - + "alidationError\022\023\n\013description\030\001 \001(\t\022\022\n\nf" - + "ield_path\030\002 \001(\t\022w\n\005start\030\003 \001(\0132c.google." + + "etectionCustomModule\022}\n$event_threat_det" + + "ection_custom_module\030\003 \001(\0132J.google.clou" + + "d.securitycentermanagement.v1.EventThrea" + + "tDetectionCustomModuleB\003\340A\002\022\032\n\rvalidate_" + + "only\030\004 \001(\010B\003\340A\001\"\200\002\n-UpdateEventThreatDet" + + "ectionCustomModuleRequest\0224\n\013update_mask" + + "\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022" + + "}\n$event_threat_detection_custom_module\030" + + "\002 \001(\0132J.google.cloud.securitycentermanag" + + "ement.v1.EventThreatDetectionCustomModul" + + "eB\003\340A\002\022\032\n\rvalidate_only\030\003 \001(\010B\003\340A\001\"\253\001\n-D" + + "eleteEventThreatDetectionCustomModuleReq" + + "uest\022^\n\004name\030\001 \001(\tBP\340A\002\372AJ\nHsecuritycent" + + "ermanagement.googleapis.com/EventThreatD" + + "etectionCustomModule\022\032\n\rvalidate_only\030\002 " + + "\001(\010B\003\340A\001\"\275\001\n/ValidateEventThreatDetectio" + + "nCustomModuleRequest\022`\n\006parent\030\001 \001(\tBP\340A" + + "\002\372AJ\022Hsecuritycentermanagement.googleapi" + + "s.com/EventThreatDetectionCustomModule\022\025" + + "\n\010raw_text\030\002 \001(\tB\003\340A\002\022\021\n\004type\030\003 \001(\tB\003\340A\002" + + "\"\276\004\n0ValidateEventThreatDetectionCustomM" + + "oduleResponse\022\206\001\n\006errors\030\002 \003(\0132v.google." + "cloud.securitycentermanagement.v1.Valida" + "teEventThreatDetectionCustomModuleRespon" - + "se.PositionH\000\210\001\001\022u\n\003end\030\004 \001(\0132c.google.c" - + "loud.securitycentermanagement.v1.Validat" - + "eEventThreatDetectionCustomModuleRespons" - + "e.PositionH\001\210\001\001B\010\n\006_startB\006\n\004_end\0326\n\010Pos" - + "ition\022\023\n\013line_number\030\001 \001(\005\022\025\n\rcolumn_num" - + "ber\030\002 \001(\0052\241K\n\030SecurityCenterManagement\022\220" - + "\004\n1ListEffectiveSecurityHealthAnalyticsC" - + "ustomModules\022b.google.cloud.securitycent" - + "ermanagement.v1.ListEffectiveSecurityHea" - + "lthAnalyticsCustomModulesRequest\032c.googl" - + "e.cloud.securitycentermanagement.v1.List" - + "EffectiveSecurityHealthAnalyticsCustomMo" - + "dulesResponse\"\221\002\332A\006parent\202\323\344\223\002\201\002\022Q/v1/{p" - + "arent=projects/*/locations/*}/effectiveS" - + "ecurityHealthAnalyticsCustomModulesZR\022P/" - + "v1/{parent=folders/*/locations/*}/effect" - + "iveSecurityHealthAnalyticsCustomModulesZ" - + "X\022V/v1/{parent=organizations/*/locations" - + "/*}/effectiveSecurityHealthAnalyticsCust" - + "omModules\022\375\003\n/GetEffectiveSecurityHealth" - + "AnalyticsCustomModule\022`.google.cloud.sec" - + "uritycentermanagement.v1.GetEffectiveSec" - + "urityHealthAnalyticsCustomModuleRequest\032" - + "V.google.cloud.securitycentermanagement." - + "v1.EffectiveSecurityHealthAnalyticsCusto" - + "mModule\"\217\002\332A\004name\202\323\344\223\002\201\002\022Q/v1/{name=proj" - + "ects/*/locations/*/effectiveSecurityHeal" - + "thAnalyticsCustomModules/*}ZR\022P/v1/{name" - + "=folders/*/locations/*/effectiveSecurity" - + "HealthAnalyticsCustomModules/*}ZX\022V/v1/{" - + "name=organizations/*/locations/*/effecti" - + "veSecurityHealthAnalyticsCustomModules/*" - + "}\022\332\003\n(ListSecurityHealthAnalyticsCustomM" - + "odules\022Y.google.cloud.securitycentermana" - + "gement.v1.ListSecurityHealthAnalyticsCus" - + "tomModulesRequest\032Z.google.cloud.securit" - + "ycentermanagement.v1.ListSecurityHealthA" - + "nalyticsCustomModulesResponse\"\366\001\332A\006paren" - + "t\202\323\344\223\002\346\001\022H/v1/{parent=projects/*/locatio" - + "ns/*}/securityHealthAnalyticsCustomModul" - + "esZI\022G/v1/{parent=folders/*/locations/*}" - + "/securityHealthAnalyticsCustomModulesZO\022" - + "M/v1/{parent=organizations/*/locations/*" - + "}/securityHealthAnalyticsCustomModules\022\245" - + "\004\n2ListDescendantSecurityHealthAnalytics" - + "CustomModules\022c.google.cloud.securitycen" - + "termanagement.v1.ListDescendantSecurityH" - + "ealthAnalyticsCustomModulesRequest\032d.goo" - + "gle.cloud.securitycentermanagement.v1.Li" - + "stDescendantSecurityHealthAnalyticsCusto" - + "mModulesResponse\"\243\002\332A\006parent\202\323\344\223\002\223\002\022W/v1" - + "/{parent=projects/*/locations/*}/securit" - + "yHealthAnalyticsCustomModules:listDescen" - + "dantZX\022V/v1/{parent=folders/*/locations/" - + "*}/securityHealthAnalyticsCustomModules:" - + "listDescendantZ^\022\\/v1/{parent=organizati" - + "ons/*/locations/*}/securityHealthAnalyti" - + "csCustomModules:listDescendant\022\307\003\n&GetSe" - + "curityHealthAnalyticsCustomModule\022W.goog" - + "le.cloud.securitycentermanagement.v1.Get" - + "SecurityHealthAnalyticsCustomModuleReque" - + "st\032M.google.cloud.securitycentermanageme" - + "nt.v1.SecurityHealthAnalyticsCustomModul" - + "e\"\364\001\332A\004name\202\323\344\223\002\346\001\022H/v1/{name=projects/*" - + "/locations/*/securityHealthAnalyticsCust" - + "omModules/*}ZI\022G/v1/{name=folders/*/loca" - + "tions/*/securityHealthAnalyticsCustomMod" - + "ules/*}ZO\022M/v1/{name=organizations/*/loc" - + "ations/*/securityHealthAnalyticsCustomMo" - + "dules/*}\022\362\004\n)CreateSecurityHealthAnalyti" - + "csCustomModule\022Z.google.cloud.securityce" - + "ntermanagement.v1.CreateSecurityHealthAn" - + "alyticsCustomModuleRequest\032M.google.clou" - + "d.securitycentermanagement.v1.SecurityHe" - + "althAnalyticsCustomModule\"\231\003\332A.parent,se" - + "curity_health_analytics_custom_module\202\323\344" - + "\223\002\341\002\"H/v1/{parent=projects/*/locations/*" - + "}/securityHealthAnalyticsCustomModules:\'" + + "se.CustomModuleValidationError\032\310\002\n\033Custo" + + "mModuleValidationError\022\023\n\013description\030\001 " + + "\001(\t\022\022\n\nfield_path\030\002 \001(\t\022w\n\005start\030\003 \001(\0132c" + + ".google.cloud.securitycentermanagement.v" + + "1.ValidateEventThreatDetectionCustomModu" + + "leResponse.PositionH\000\210\001\001\022u\n\003end\030\004 \001(\0132c." + + "google.cloud.securitycentermanagement.v1" + + ".ValidateEventThreatDetectionCustomModul" + + "eResponse.PositionH\001\210\001\001B\010\n\006_startB\006\n\004_en" + + "d\0326\n\010Position\022\023\n\013line_number\030\001 \001(\005\022\025\n\rco" + + "lumn_number\030\002 \001(\005\"v\n\037GetSecurityCenterSe" + + "rviceRequest\022S\n\004name\030\001 \001(\tBE\340A\002\372A?\n=secu" + + "ritycentermanagement.googleapis.com/Secu" + + "rityCenterService\"\253\001\n!ListSecurityCenter" + + "ServicesRequest\022U\n\006parent\030\001 \001(\tBE\340A\002\372A?\022" + + "=securitycentermanagement.googleapis.com" + + "/SecurityCenterService\022\026\n\tpage_size\030\002 \001(" + + "\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\240\001\n\"List" + + "SecurityCenterServicesResponse\022a\n\030securi" + + "ty_center_services\030\001 \003(\0132?.google.cloud." + + "securitycentermanagement.v1.SecurityCent" + + "erService\022\027\n\017next_page_token\030\002 \001(\t\"\335\001\n\"U" + + "pdateSecurityCenterServiceRequest\022e\n\027sec" + + "urity_center_service\030\001 \001(\0132?.google.clou" + + "d.securitycentermanagement.v1.SecurityCe" + + "nterServiceB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032." + + "google.protobuf.FieldMaskB\003\340A\002\022\032\n\rvalida" + + "te_only\030\003 \001(\010B\003\340A\0012\316U\n\030SecurityCenterMan" + + "agement\022\220\004\n1ListEffectiveSecurityHealthA" + + "nalyticsCustomModules\022b.google.cloud.sec" + + "uritycentermanagement.v1.ListEffectiveSe" + + "curityHealthAnalyticsCustomModulesReques" + + "t\032c.google.cloud.securitycentermanagemen" + + "t.v1.ListEffectiveSecurityHealthAnalytic" + + "sCustomModulesResponse\"\221\002\332A\006parent\202\323\344\223\002\201" + + "\002\022Q/v1/{parent=projects/*/locations/*}/e" + + "ffectiveSecurityHealthAnalyticsCustomMod" + + "ulesZR\022P/v1/{parent=folders/*/locations/" + + "*}/effectiveSecurityHealthAnalyticsCusto" + + "mModulesZX\022V/v1/{parent=organizations/*/" + + "locations/*}/effectiveSecurityHealthAnal" + + "yticsCustomModules\022\375\003\n/GetEffectiveSecur" + + "ityHealthAnalyticsCustomModule\022`.google." + + "cloud.securitycentermanagement.v1.GetEff" + + "ectiveSecurityHealthAnalyticsCustomModul" + + "eRequest\032V.google.cloud.securitycenterma" + + "nagement.v1.EffectiveSecurityHealthAnaly" + + "ticsCustomModule\"\217\002\332A\004name\202\323\344\223\002\201\002\022Q/v1/{" + + "name=projects/*/locations/*/effectiveSec" + + "urityHealthAnalyticsCustomModules/*}ZR\022P" + + "/v1/{name=folders/*/locations/*/effectiv" + + "eSecurityHealthAnalyticsCustomModules/*}" + + "ZX\022V/v1/{name=organizations/*/locations/" + + "*/effectiveSecurityHealthAnalyticsCustom" + + "Modules/*}\022\332\003\n(ListSecurityHealthAnalyti" + + "csCustomModules\022Y.google.cloud.securityc" + + "entermanagement.v1.ListSecurityHealthAna" + + "lyticsCustomModulesRequest\032Z.google.clou", + "d.securitycentermanagement.v1.ListSecuri" + + "tyHealthAnalyticsCustomModulesResponse\"\366" + + "\001\332A\006parent\202\323\344\223\002\346\001\022H/v1/{parent=projects/" + + "*/locations/*}/securityHealthAnalyticsCu" + + "stomModulesZI\022G/v1/{parent=folders/*/loc" + + "ations/*}/securityHealthAnalyticsCustomM" + + "odulesZO\022M/v1/{parent=organizations/*/lo" + + "cations/*}/securityHealthAnalyticsCustom" + + "Modules\022\245\004\n2ListDescendantSecurityHealth" + + "AnalyticsCustomModules\022c.google.cloud.se" + + "curitycentermanagement.v1.ListDescendant" + + "SecurityHealthAnalyticsCustomModulesRequ" + + "est\032d.google.cloud.securitycentermanagem" + + "ent.v1.ListDescendantSecurityHealthAnaly" + + "ticsCustomModulesResponse\"\243\002\332A\006parent\202\323\344" + + "\223\002\223\002\022W/v1/{parent=projects/*/locations/*" + + "}/securityHealthAnalyticsCustomModules:l" + + "istDescendantZX\022V/v1/{parent=folders/*/l" + + "ocations/*}/securityHealthAnalyticsCusto" + + "mModules:listDescendantZ^\022\\/v1/{parent=o" + + "rganizations/*/locations/*}/securityHeal" + + "thAnalyticsCustomModules:listDescendant\022" + + "\307\003\n&GetSecurityHealthAnalyticsCustomModu" + + "le\022W.google.cloud.securitycentermanageme" + + "nt.v1.GetSecurityHealthAnalyticsCustomMo" + + "duleRequest\032M.google.cloud.securitycente" + + "rmanagement.v1.SecurityHealthAnalyticsCu" + + "stomModule\"\364\001\332A\004name\202\323\344\223\002\346\001\022H/v1/{name=p" + + "rojects/*/locations/*/securityHealthAnal" + + "yticsCustomModules/*}ZI\022G/v1/{name=folde" + + "rs/*/locations/*/securityHealthAnalytics" + + "CustomModules/*}ZO\022M/v1/{name=organizati" + + "ons/*/locations/*/securityHealthAnalytic" + + "sCustomModules/*}\022\362\004\n)CreateSecurityHeal" + + "thAnalyticsCustomModule\022Z.google.cloud.s" + + "ecuritycentermanagement.v1.CreateSecurit" + + "yHealthAnalyticsCustomModuleRequest\032M.go" + + "ogle.cloud.securitycentermanagement.v1.S" + + "ecurityHealthAnalyticsCustomModule\"\231\003\332A." + + "parent,security_health_analytics_custom_" + + "module\202\323\344\223\002\341\002\"H/v1/{parent=projects/*/lo" + + "cations/*}/securityHealthAnalyticsCustom" + + "Modules:\'security_health_analytics_custo" + + "m_moduleZr\"G/v1/{parent=folders/*/locati" + + "ons/*}/securityHealthAnalyticsCustomModu" + + "les:\'security_health_analytics_custom_mo" + + "duleZx\"M/v1/{parent=organizations/*/loca" + + "tions/*}/securityHealthAnalyticsCustomMo" + + "dules:\'security_health_analytics_custom_" + + "module\022\361\005\n)UpdateSecurityHealthAnalytics" + + "CustomModule\022Z.google.cloud.securitycent" + + "ermanagement.v1.UpdateSecurityHealthAnal" + + "yticsCustomModuleRequest\032M.google.cloud." + + "securitycentermanagement.v1.SecurityHeal" + + "thAnalyticsCustomModule\"\230\004\332A3security_he" + + "alth_analytics_custom_module,update_mask" + + "\202\323\344\223\002\333\0032p/v1/{security_health_analytics_" + + "custom_module.name=projects/*/locations/" + + "*/securityHealthAnalyticsCustomModules/*" + + "}:\'security_health_analytics_custom_modu" + + "leZ\232\0012o/v1/{security_health_analytics_cu" + + "stom_module.name=folders/*/locations/*/s" + + "ecurityHealthAnalyticsCustomModules/*}:\'" + "security_health_analytics_custom_moduleZ" - + "r\"G/v1/{parent=folders/*/locations/*}/se" - + "curityHealthAnalyticsCustomModules:\'secu" - + "rity_health_analytics_custom_moduleZx\"M/" - + "v1/{parent=organizations/*/locations/*}/" - + "securityHealthAnalyticsCustomModules:\'se" - + "curity_health_analytics_custom_module\022\361\005" - + "\n)UpdateSecurityHealthAnalyticsCustomMod", - "ule\022Z.google.cloud.securitycentermanagem" - + "ent.v1.UpdateSecurityHealthAnalyticsCust" - + "omModuleRequest\032M.google.cloud.securityc" - + "entermanagement.v1.SecurityHealthAnalyti" - + "csCustomModule\"\230\004\332A3security_health_anal" - + "ytics_custom_module,update_mask\202\323\344\223\002\333\0032p" - + "/v1/{security_health_analytics_custom_mo" - + "dule.name=projects/*/locations/*/securit" - + "yHealthAnalyticsCustomModules/*}:\'securi" - + "ty_health_analytics_custom_moduleZ\232\0012o/v" - + "1/{security_health_analytics_custom_modu" - + "le.name=folders/*/locations/*/securityHe" - + "althAnalyticsCustomModules/*}:\'security_" - + "health_analytics_custom_moduleZ\240\0012u/v1/{" - + "security_health_analytics_custom_module." - + "name=organizations/*/locations/*/securit" - + "yHealthAnalyticsCustomModules/*}:\'securi" - + "ty_health_analytics_custom_module\022\226\003\n)De" - + "leteSecurityHealthAnalyticsCustomModule\022" - + "Z.google.cloud.securitycentermanagement." - + "v1.DeleteSecurityHealthAnalyticsCustomMo" - + "duleRequest\032\026.google.protobuf.Empty\"\364\001\332A" - + "\004name\202\323\344\223\002\346\001*H/v1/{name=projects/*/locat" - + "ions/*/securityHealthAnalyticsCustomModu" - + "les/*}ZI*G/v1/{name=folders/*/locations/" + + "\240\0012u/v1/{security_health_analytics_custo" + + "m_module.name=organizations/*/locations/" + "*/securityHealthAnalyticsCustomModules/*" - + "}ZO*M/v1/{name=organizations/*/locations" - + "/*/securityHealthAnalyticsCustomModules/" - + "*}\022\236\004\n+SimulateSecurityHealthAnalyticsCu" - + "stomModule\022\\.google.cloud.securitycenter" - + "management.v1.SimulateSecurityHealthAnal" - + "yticsCustomModuleRequest\032].google.cloud." - + "securitycentermanagement.v1.SimulateSecu" - + "rityHealthAnalyticsCustomModuleResponse\"" - + "\261\002\332A\035parent,custom_config,resource\202\323\344\223\002\212" - + "\002\"Q/v1/{parent=projects/*/locations/*}/s" - + "ecurityHealthAnalyticsCustomModules:simu" - + "late:\001*ZU\"P/v1/{parent=folders/*/locatio" - + "ns/*}/securityHealthAnalyticsCustomModul" - + "es:simulate:\001*Z[\"V/v1/{parent=organizati" - + "ons/*/locations/*}/securityHealthAnalyti" - + "csCustomModules:simulate:\001*\022\376\003\n.ListEffe" - + "ctiveEventThreatDetectionCustomModules\022_" + + "}:\'security_health_analytics_custom_modu" + + "le\022\226\003\n)DeleteSecurityHealthAnalyticsCust" + + "omModule\022Z.google.cloud.securitycenterma" + + "nagement.v1.DeleteSecurityHealthAnalytic" + + "sCustomModuleRequest\032\026.google.protobuf.E" + + "mpty\"\364\001\332A\004name\202\323\344\223\002\346\001*H/v1/{name=project" + + "s/*/locations/*/securityHealthAnalyticsC" + + "ustomModules/*}ZI*G/v1/{name=folders/*/l" + + "ocations/*/securityHealthAnalyticsCustom" + + "Modules/*}ZO*M/v1/{name=organizations/*/" + + "locations/*/securityHealthAnalyticsCusto" + + "mModules/*}\022\236\004\n+SimulateSecurityHealthAn" + + "alyticsCustomModule\022\\.google.cloud.secur" + + "itycentermanagement.v1.SimulateSecurityH" + + "ealthAnalyticsCustomModuleRequest\032].goog" + + "le.cloud.securitycentermanagement.v1.Sim" + + "ulateSecurityHealthAnalyticsCustomModule" + + "Response\"\261\002\332A\035parent,custom_config,resou" + + "rce\202\323\344\223\002\212\002\"Q/v1/{parent=projects/*/locat" + + "ions/*}/securityHealthAnalyticsCustomMod" + + "ules:simulate:\001*ZU\"P/v1/{parent=folders/" + + "*/locations/*}/securityHealthAnalyticsCu" + + "stomModules:simulate:\001*Z[\"V/v1/{parent=o" + + "rganizations/*/locations/*}/securityHeal" + + "thAnalyticsCustomModules:simulate:\001*\022\376\003\n" + + ".ListEffectiveEventThreatDetectionCustom" + + "Modules\022_.google.cloud.securitycenterman" + + "agement.v1.ListEffectiveEventThreatDetec" + + "tionCustomModulesRequest\032`.google.cloud." + + "securitycentermanagement.v1.ListEffectiv" + + "eEventThreatDetectionCustomModulesRespon" + + "se\"\210\002\332A\006parent\202\323\344\223\002\370\001\022N/v1/{parent=proje" + + "cts/*/locations/*}/effectiveEventThreatD" + + "etectionCustomModulesZO\022M/v1/{parent=fol" + + "ders/*/locations/*}/effectiveEventThreat" + + "DetectionCustomModulesZU\022S/v1/{parent=or" + + "ganizations/*/locations/*}/effectiveEven" + + "tThreatDetectionCustomModules\022\353\003\n,GetEff" + + "ectiveEventThreatDetectionCustomModule\022]" + ".google.cloud.securitycentermanagement.v" - + "1.ListEffectiveEventThreatDetectionCusto" - + "mModulesRequest\032`.google.cloud.securityc" - + "entermanagement.v1.ListEffectiveEventThr" - + "eatDetectionCustomModulesResponse\"\210\002\332A\006p" - + "arent\202\323\344\223\002\370\001\022N/v1/{parent=projects/*/loc" - + "ations/*}/effectiveEventThreatDetectionC" - + "ustomModulesZO\022M/v1/{parent=folders/*/lo" - + "cations/*}/effectiveEventThreatDetection" - + "CustomModulesZU\022S/v1/{parent=organizatio" - + "ns/*/locations/*}/effectiveEventThreatDe" - + "tectionCustomModules\022\353\003\n,GetEffectiveEve" - + "ntThreatDetectionCustomModule\022].google.c" - + "loud.securitycentermanagement.v1.GetEffe" - + "ctiveEventThreatDetectionCustomModuleReq" - + "uest\032S.google.cloud.securitycentermanage" - + "ment.v1.EffectiveEventThreatDetectionCus" - + "tomModule\"\206\002\332A\004name\202\323\344\223\002\370\001\022N/v1/{name=pr" - + "ojects/*/locations/*/effectiveEventThrea" - + "tDetectionCustomModules/*}ZO\022M/v1/{name=" - + "folders/*/locations/*/effectiveEventThre" - + "atDetectionCustomModules/*}ZU\022S/v1/{name" - + "=organizations/*/locations/*/effectiveEv" - + "entThreatDetectionCustomModules/*}\022\310\003\n%L" - + "istEventThreatDetectionCustomModules\022V.g" + + "1.GetEffectiveEventThreatDetectionCustom" + + "ModuleRequest\032S.google.cloud.securitycen" + + "termanagement.v1.EffectiveEventThreatDet" + + "ectionCustomModule\"\206\002\332A\004name\202\323\344\223\002\370\001\022N/v1" + + "/{name=projects/*/locations/*/effectiveE" + + "ventThreatDetectionCustomModules/*}ZO\022M/" + + "v1/{name=folders/*/locations/*/effective" + + "EventThreatDetectionCustomModules/*}ZU\022S" + + "/v1/{name=organizations/*/locations/*/ef" + + "fectiveEventThreatDetectionCustomModules" + + "/*}\022\310\003\n%ListEventThreatDetectionCustomMo" + + "dules\022V.google.cloud.securitycentermanag" + + "ement.v1.ListEventThreatDetectionCustomM" + + "odulesRequest\032W.google.cloud.securitycen" + + "termanagement.v1.ListEventThreatDetectio" + + "nCustomModulesResponse\"\355\001\332A\006parent\202\323\344\223\002\335" + + "\001\022E/v1/{parent=projects/*/locations/*}/e" + + "ventThreatDetectionCustomModulesZF\022D/v1/" + + "{parent=folders/*/locations/*}/eventThre" + + "atDetectionCustomModulesZL\022J/v1/{parent=" + + "organizations/*/locations/*}/eventThreat" + + "DetectionCustomModules\022\223\004\n/ListDescendan" + + "tEventThreatDetectionCustomModules\022`.goo" + + "gle.cloud.securitycentermanagement.v1.Li" + + "stDescendantEventThreatDetectionCustomMo" + + "dulesRequest\032a.google.cloud.securitycent" + + "ermanagement.v1.ListDescendantEventThrea" + + "tDetectionCustomModulesResponse\"\232\002\332A\006par" + + "ent\202\323\344\223\002\212\002\022T/v1/{parent=projects/*/locat" + + "ions/*}/eventThreatDetectionCustomModule" + + "s:listDescendantZU\022S/v1/{parent=folders/" + + "*/locations/*}/eventThreatDetectionCusto" + + "mModules:listDescendantZ[\022Y/v1/{parent=o" + + "rganizations/*/locations/*}/eventThreatD" + + "etectionCustomModules:listDescendant\022\265\003\n" + + "#GetEventThreatDetectionCustomModule\022T.g" + "oogle.cloud.securitycentermanagement.v1." - + "ListEventThreatDetectionCustomModulesReq" - + "uest\032W.google.cloud.securitycentermanage" - + "ment.v1.ListEventThreatDetectionCustomMo" - + "dulesResponse\"\355\001\332A\006parent\202\323\344\223\002\335\001\022E/v1/{p" - + "arent=projects/*/locations/*}/eventThrea" - + "tDetectionCustomModulesZF\022D/v1/{parent=f" - + "olders/*/locations/*}/eventThreatDetecti" - + "onCustomModulesZL\022J/v1/{parent=organizat" - + "ions/*/locations/*}/eventThreatDetection" - + "CustomModules\022\223\004\n/ListDescendantEventThr" - + "eatDetectionCustomModules\022`.google.cloud" - + ".securitycentermanagement.v1.ListDescend" - + "antEventThreatDetectionCustomModulesRequ" - + "est\032a.google.cloud.securitycentermanagem" - + "ent.v1.ListDescendantEventThreatDetectio" - + "nCustomModulesResponse\"\232\002\332A\006parent\202\323\344\223\002\212" - + "\002\022T/v1/{parent=projects/*/locations/*}/e" - + "ventThreatDetectionCustomModules:listDes" - + "cendantZU\022S/v1/{parent=folders/*/locatio" - + "ns/*}/eventThreatDetectionCustomModules:" - + "listDescendantZ[\022Y/v1/{parent=organizati" - + "ons/*/locations/*}/eventThreatDetectionC" - + "ustomModules:listDescendant\022\265\003\n#GetEvent" - + "ThreatDetectionCustomModule\022T.google.clo" - + "ud.securitycentermanagement.v1.GetEventT" - + "hreatDetectionCustomModuleRequest\032J.goog" - + "le.cloud.securitycentermanagement.v1.Eve" - + "ntThreatDetectionCustomModule\"\353\001\332A\004name\202" - + "\323\344\223\002\335\001\022E/v1/{name=projects/*/locations/*" - + "/eventThreatDetectionCustomModules/*}ZF\022" - + "D/v1/{name=folders/*/locations/*/eventTh" - + "reatDetectionCustomModules/*}ZL\022J/v1/{na" - + "me=organizations/*/locations/*/eventThre" - + "atDetectionCustomModules/*}\022\324\004\n&CreateEv" - + "entThreatDetectionCustomModule\022W.google." - + "cloud.securitycentermanagement.v1.Create" - + "EventThreatDetectionCustomModuleRequest\032" - + "J.google.cloud.securitycentermanagement." - + "v1.EventThreatDetectionCustomModule\"\204\003\332A" - + "+parent,event_threat_detection_custom_mo" - + "dule\202\323\344\223\002\317\002\"E/v1/{parent=projects/*/loca" - + "tions/*}/eventThreatDetectionCustomModul" - + "es:$event_threat_detection_custom_module" - + "Zl\"D/v1/{parent=folders/*/locations/*}/e" - + "ventThreatDetectionCustomModules:$event_" - + "threat_detection_custom_moduleZr\"J/v1/{p" - + "arent=organizations/*/locations/*}/event" - + "ThreatDetectionCustomModules:$event_thre" - + "at_detection_custom_module\022\312\005\n&UpdateEve" - + "ntThreatDetectionCustomModule\022W.google.c" - + "loud.securitycentermanagement.v1.UpdateE" - + "ventThreatDetectionCustomModuleRequest\032J" + + "GetEventThreatDetectionCustomModuleReque" + + "st\032J.google.cloud.securitycentermanageme" + + "nt.v1.EventThreatDetectionCustomModule\"\353" + + "\001\332A\004name\202\323\344\223\002\335\001\022E/v1/{name=projects/*/lo" + + "cations/*/eventThreatDetectionCustomModu" + + "les/*}ZF\022D/v1/{name=folders/*/locations/" + + "*/eventThreatDetectionCustomModules/*}ZL" + + "\022J/v1/{name=organizations/*/locations/*/" + + "eventThreatDetectionCustomModules/*}\022\324\004\n" + + "&CreateEventThreatDetectionCustomModule\022" + + "W.google.cloud.securitycentermanagement." + + "v1.CreateEventThreatDetectionCustomModul" + + "eRequest\032J.google.cloud.securitycenterma" + + "nagement.v1.EventThreatDetectionCustomMo" + + "dule\"\204\003\332A+parent,event_threat_detection_" + + "custom_module\202\323\344\223\002\317\002\"E/v1/{parent=projec" + + "ts/*/locations/*}/eventThreatDetectionCu" + + "stomModules:$event_threat_detection_cust" + + "om_moduleZl\"D/v1/{parent=folders/*/locat" + + "ions/*}/eventThreatDetectionCustomModule" + + "s:$event_threat_detection_custom_moduleZ" + + "r\"J/v1/{parent=organizations/*/locations" + + "/*}/eventThreatDetectionCustomModules:$e" + + "vent_threat_detection_custom_module\022\312\005\n&" + + "UpdateEventThreatDetectionCustomModule\022W" + ".google.cloud.securitycentermanagement.v" - + "1.EventThreatDetectionCustomModule\"\372\003\332A0" - + "event_threat_detection_custom_module,upd" - + "ate_mask\202\323\344\223\002\300\0032j/v1/{event_threat_detec" - + "tion_custom_module.name=projects/*/locat" - + "ions/*/eventThreatDetectionCustomModules" - + "/*}:$event_threat_detection_custom_modul" - + "eZ\221\0012i/v1/{event_threat_detection_custom" - + "_module.name=folders/*/locations/*/event" - + "ThreatDetectionCustomModules/*}:$event_t" - + "hreat_detection_custom_moduleZ\227\0012o/v1/{e" - + "vent_threat_detection_custom_module.name" - + "=organizations/*/locations/*/eventThreat" - + "DetectionCustomModules/*}:$event_threat_" - + "detection_custom_module\022\207\003\n&DeleteEventT" - + "hreatDetectionCustomModule\022W.google.clou" - + "d.securitycentermanagement.v1.DeleteEven" - + "tThreatDetectionCustomModuleRequest\032\026.go" - + "ogle.protobuf.Empty\"\353\001\332A\004name\202\323\344\223\002\335\001*E/v" - + "1/{name=projects/*/locations/*/eventThre" - + "atDetectionCustomModules/*}ZF*D/v1/{name" - + "=folders/*/locations/*/eventThreatDetect" - + "ionCustomModules/*}ZL*J/v1/{name=organiz" - + "ations/*/locations/*/eventThreatDetectio" - + "nCustomModules/*}\022\354\003\n(ValidateEventThrea" - + "tDetectionCustomModule\022Y.google.cloud.se" - + "curitycentermanagement.v1.ValidateEventT" - + "hreatDetectionCustomModuleRequest\032Z.goog" - + "le.cloud.securitycentermanagement.v1.Val" - + "idateEventThreatDetectionCustomModuleRes" - + "ponse\"\210\002\202\323\344\223\002\201\002\"N/v1/{parent=projects/*/" - + "locations/*}/eventThreatDetectionCustomM" - + "odules:validate:\001*ZR\"M/v1/{parent=folder" - + "s/*/locations/*}/eventThreatDetectionCus" - + "tomModules:validate:\001*ZX\"S/v1/{parent=or" - + "ganizations/*/locations/*}/eventThreatDe" - + "tectionCustomModules:validate:\001*\032[\312A\'sec" - + "uritycentermanagement.googleapis.com\322A.h" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tformB\223\004\n,com.google.cloud.securitycente" - + "rmanagement.v1B\035SecurityCenterManagement" - + "ProtoP\001Zhcloud.google.com/go/securitycen" - + "termanagement/apiv1/securitycentermanage" - + "mentpb;securitycentermanagementpb\252\002(Goog" - + "le.Cloud.SecurityCenterManagement.V1\312\002(G" - + "oogle\\Cloud\\SecurityCenterManagement\\V1\352" - + "\002+Google::Cloud::SecurityCenterManagemen" - + "t::V1\352Aq\n + * Represents a particular Security Command Center service. This includes + * settings information such as top-level enablement in addition to individual + * module settings. Service settings can be configured at the organization, + * folder, or project level. Service settings at the organization or folder + * level are inherited by those in child folders and projects. + * + * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.SecurityCenterService} + */ +public final class SecurityCenterService extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.SecurityCenterService) + SecurityCenterServiceOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecurityCenterService.newBuilder() to construct. + private SecurityCenterService(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SecurityCenterService() { + name_ = ""; + intendedEnablementState_ = 0; + effectiveEnablementState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SecurityCenterService(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SecurityCenterService_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetModules(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SecurityCenterService_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.class, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.Builder.class); + } + + /** + * + * + *
+   * Represents the possible intended states of enablement for a service or
+   * module.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState} + */ + public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * ENABLEMENT_STATE_UNSPECIFIED = 0; + */ + ENABLEMENT_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * State is inherited from the parent resource. Not a valid effective
+     * enablement state.
+     * 
+ * + * INHERITED = 1; + */ + INHERITED(1), + /** + * + * + *
+     * State is enabled.
+     * 
+ * + * ENABLED = 2; + */ + ENABLED(2), + /** + * + * + *
+     * State is disabled.
+     * 
+ * + * DISABLED = 3; + */ + DISABLED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * ENABLEMENT_STATE_UNSPECIFIED = 0; + */ + public static final int ENABLEMENT_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * State is inherited from the parent resource. Not a valid effective
+     * enablement state.
+     * 
+ * + * INHERITED = 1; + */ + public static final int INHERITED_VALUE = 1; + /** + * + * + *
+     * State is enabled.
+     * 
+ * + * ENABLED = 2; + */ + public static final int ENABLED_VALUE = 2; + /** + * + * + *
+     * State is disabled.
+     * 
+ * + * DISABLED = 3; + */ + public static final int DISABLED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EnablementState valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static EnablementState forNumber(int value) { + switch (value) { + case 0: + return ENABLEMENT_STATE_UNSPECIFIED; + case 1: + return INHERITED; + case 2: + return ENABLED; + case 3: + return DISABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EnablementState findValueByNumber(int number) { + return EnablementState.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() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterService.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final EnablementState[] VALUES = values(); + + public static EnablementState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EnablementState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState) + } + + public interface ModuleSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The intended state of enablement for the module at its level of
+     * the resource hierarchy.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for intendedEnablementState. + */ + int getIntendedEnablementStateValue(); + /** + * + * + *
+     * Optional. The intended state of enablement for the module at its level of
+     * the resource hierarchy.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The intendedEnablementState. + */ + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + getIntendedEnablementState(); + + /** + * + * + *
+     * Output only. The effective enablement state for the module at its level
+     * of the resource hierarchy. If the intended state is set to INHERITED, the
+     * effective state will be inherited from the enablement state of an
+     * ancestor. This state may
+     * differ from the intended enablement state due to billing eligibility or
+     * onboarding status.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for effectiveEnablementState. + */ + int getEffectiveEnablementStateValue(); + /** + * + * + *
+     * Output only. The effective enablement state for the module at its level
+     * of the resource hierarchy. If the intended state is set to INHERITED, the
+     * effective state will be inherited from the enablement state of an
+     * ancestor. This state may
+     * differ from the intended enablement state due to billing eligibility or
+     * onboarding status.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveEnablementState. + */ + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + getEffectiveEnablementState(); + } + /** + * + * + *
+   * The settings for individual modules.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings} + */ + public static final class ModuleSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings) + ModuleSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModuleSettings.newBuilder() to construct. + private ModuleSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModuleSettings() { + intendedEnablementState_ = 0; + effectiveEnablementState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModuleSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SecurityCenterService_ModuleSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SecurityCenterService_ModuleSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + .class, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + .Builder.class); + } + + public static final int INTENDED_ENABLEMENT_STATE_FIELD_NUMBER = 1; + private int intendedEnablementState_ = 0; + /** + * + * + *
+     * Optional. The intended state of enablement for the module at its level of
+     * the resource hierarchy.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for intendedEnablementState. + */ + @java.lang.Override + public int getIntendedEnablementStateValue() { + return intendedEnablementState_; + } + /** + * + * + *
+     * Optional. The intended state of enablement for the module at its level of
+     * the resource hierarchy.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The intendedEnablementState. + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + getIntendedEnablementState() { + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState result = + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .forNumber(intendedEnablementState_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .UNRECOGNIZED + : result; + } + + public static final int EFFECTIVE_ENABLEMENT_STATE_FIELD_NUMBER = 2; + private int effectiveEnablementState_ = 0; + /** + * + * + *
+     * Output only. The effective enablement state for the module at its level
+     * of the resource hierarchy. If the intended state is set to INHERITED, the
+     * effective state will be inherited from the enablement state of an
+     * ancestor. This state may
+     * differ from the intended enablement state due to billing eligibility or
+     * onboarding status.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for effectiveEnablementState. + */ + @java.lang.Override + public int getEffectiveEnablementStateValue() { + return effectiveEnablementState_; + } + /** + * + * + *
+     * Output only. The effective enablement state for the module at its level
+     * of the resource hierarchy. If the intended state is set to INHERITED, the
+     * effective state will be inherited from the enablement state of an
+     * ancestor. This state may
+     * differ from the intended enablement state due to billing eligibility or
+     * onboarding status.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveEnablementState. + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + getEffectiveEnablementState() { + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState result = + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .forNumber(effectiveEnablementState_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (intendedEnablementState_ + != com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, intendedEnablementState_); + } + if (effectiveEnablementState_ + != com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, effectiveEnablementState_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (intendedEnablementState_ + != com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, intendedEnablementState_); + } + if (effectiveEnablementState_ + != com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, effectiveEnablementState_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings other = + (com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings) obj; + + if (intendedEnablementState_ != other.intendedEnablementState_) return false; + if (effectiveEnablementState_ != other.effectiveEnablementState_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INTENDED_ENABLEMENT_STATE_FIELD_NUMBER; + hash = (53 * hash) + intendedEnablementState_; + hash = (37 * hash) + EFFECTIVE_ENABLEMENT_STATE_FIELD_NUMBER; + hash = (53 * hash) + effectiveEnablementState_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + 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.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + 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.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + 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.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * The settings for individual modules.
+     * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings) + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SecurityCenterService_ModuleSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SecurityCenterService_ModuleSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + .class, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + .Builder.class); + } + + // Construct using + // com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + intendedEnablementState_ = 0; + effectiveEnablementState_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SecurityCenterService_ModuleSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + build() { + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + buildPartial() { + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings result = + new com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.intendedEnablementState_ = intendedEnablementState_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.effectiveEnablementState_ = effectiveEnablementState_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings other) { + if (other + == com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + .getDefaultInstance()) return this; + if (other.intendedEnablementState_ != 0) { + setIntendedEnablementStateValue(other.getIntendedEnablementStateValue()); + } + if (other.effectiveEnablementState_ != 0) { + setEffectiveEnablementStateValue(other.getEffectiveEnablementStateValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + intendedEnablementState_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + effectiveEnablementState_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int intendedEnablementState_ = 0; + /** + * + * + *
+       * Optional. The intended state of enablement for the module at its level of
+       * the resource hierarchy.
+       * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for intendedEnablementState. + */ + @java.lang.Override + public int getIntendedEnablementStateValue() { + return intendedEnablementState_; + } + /** + * + * + *
+       * Optional. The intended state of enablement for the module at its level of
+       * the resource hierarchy.
+       * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for intendedEnablementState to set. + * @return This builder for chaining. + */ + public Builder setIntendedEnablementStateValue(int value) { + intendedEnablementState_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The intended state of enablement for the module at its level of
+       * the resource hierarchy.
+       * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The intendedEnablementState. + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + getIntendedEnablementState() { + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState result = + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .forNumber(intendedEnablementState_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional. The intended state of enablement for the module at its level of
+       * the resource hierarchy.
+       * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The intendedEnablementState to set. + * @return This builder for chaining. + */ + public Builder setIntendedEnablementState( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + intendedEnablementState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The intended state of enablement for the module at its level of
+       * the resource hierarchy.
+       * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIntendedEnablementState() { + bitField0_ = (bitField0_ & ~0x00000001); + intendedEnablementState_ = 0; + onChanged(); + return this; + } + + private int effectiveEnablementState_ = 0; + /** + * + * + *
+       * Output only. The effective enablement state for the module at its level
+       * of the resource hierarchy. If the intended state is set to INHERITED, the
+       * effective state will be inherited from the enablement state of an
+       * ancestor. This state may
+       * differ from the intended enablement state due to billing eligibility or
+       * onboarding status.
+       * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for effectiveEnablementState. + */ + @java.lang.Override + public int getEffectiveEnablementStateValue() { + return effectiveEnablementState_; + } + /** + * + * + *
+       * Output only. The effective enablement state for the module at its level
+       * of the resource hierarchy. If the intended state is set to INHERITED, the
+       * effective state will be inherited from the enablement state of an
+       * ancestor. This state may
+       * differ from the intended enablement state due to billing eligibility or
+       * onboarding status.
+       * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for effectiveEnablementState to set. + * @return This builder for chaining. + */ + public Builder setEffectiveEnablementStateValue(int value) { + effectiveEnablementState_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The effective enablement state for the module at its level
+       * of the resource hierarchy. If the intended state is set to INHERITED, the
+       * effective state will be inherited from the enablement state of an
+       * ancestor. This state may
+       * differ from the intended enablement state due to billing eligibility or
+       * onboarding status.
+       * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveEnablementState. + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + getEffectiveEnablementState() { + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState result = + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .forNumber(effectiveEnablementState_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Output only. The effective enablement state for the module at its level
+       * of the resource hierarchy. If the intended state is set to INHERITED, the
+       * effective state will be inherited from the enablement state of an
+       * ancestor. This state may
+       * differ from the intended enablement state due to billing eligibility or
+       * onboarding status.
+       * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The effectiveEnablementState to set. + * @return This builder for chaining. + */ + public Builder setEffectiveEnablementState( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + effectiveEnablementState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The effective enablement state for the module at its level
+       * of the resource hierarchy. If the intended state is set to INHERITED, the
+       * effective state will be inherited from the enablement state of an
+       * ancestor. This state may
+       * differ from the intended enablement state due to billing eligibility or
+       * onboarding status.
+       * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEffectiveEnablementState() { + bitField0_ = (bitField0_ & ~0x00000002); + effectiveEnablementState_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings) + private static final com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .ModuleSettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings(); + } + + public static com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModuleSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. The name of the service.
+   *
+   * Its format is:
+   *
+   *   * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+   *   * folders/{folder}/locations/{location}/securityCenterServices/{service}
+   *   * projects/{project}/locations/{location}/securityCenterServices/{service}
+   *
+   * The possible values for id {service} are:
+   *
+   *   * container-threat-detection
+   *   * event-threat-detection
+   *   * security-health-analytics
+   *   * vm-threat-detection
+   *   * web-security-scanner
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Identifier. The name of the service.
+   *
+   * Its format is:
+   *
+   *   * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+   *   * folders/{folder}/locations/{location}/securityCenterServices/{service}
+   *   * projects/{project}/locations/{location}/securityCenterServices/{service}
+   *
+   * The possible values for id {service} are:
+   *
+   *   * container-threat-detection
+   *   * event-threat-detection
+   *   * security-health-analytics
+   *   * vm-threat-detection
+   *   * web-security-scanner
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTENDED_ENABLEMENT_STATE_FIELD_NUMBER = 2; + private int intendedEnablementState_ = 0; + /** + * + * + *
+   * Optional. The intended state of enablement for the service at its level of
+   * the resource hierarchy. A DISABLED state will override all module
+   * enablement_states to DISABLED.
+   * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for intendedEnablementState. + */ + @java.lang.Override + public int getIntendedEnablementStateValue() { + return intendedEnablementState_; + } + /** + * + * + *
+   * Optional. The intended state of enablement for the service at its level of
+   * the resource hierarchy. A DISABLED state will override all module
+   * enablement_states to DISABLED.
+   * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The intendedEnablementState. + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + getIntendedEnablementState() { + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState result = + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .forNumber(intendedEnablementState_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .UNRECOGNIZED + : result; + } + + public static final int EFFECTIVE_ENABLEMENT_STATE_FIELD_NUMBER = 3; + private int effectiveEnablementState_ = 0; + /** + * + * + *
+   * Output only. The effective enablement state for the service at its level of
+   * the resource hierarchy. If the intended state is set to INHERITED, the
+   * effective state will be inherited from the enablement state of an ancestor.
+   * This state may differ from the intended enablement state due to billing
+   * eligibility or onboarding status.
+   * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for effectiveEnablementState. + */ + @java.lang.Override + public int getEffectiveEnablementStateValue() { + return effectiveEnablementState_; + } + /** + * + * + *
+   * Output only. The effective enablement state for the service at its level of
+   * the resource hierarchy. If the intended state is set to INHERITED, the
+   * effective state will be inherited from the enablement state of an ancestor.
+   * This state may differ from the intended enablement state due to billing
+   * eligibility or onboarding status.
+   * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveEnablementState. + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + getEffectiveEnablementState() { + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState result = + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .forNumber(effectiveEnablementState_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .UNRECOGNIZED + : result; + } + + public static final int MODULES_FIELD_NUMBER = 4; + + private static final class ModulesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SecurityCenterService_ModulesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .ModuleSettings.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> + modules_; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> + internalGetModules() { + if (modules_ == null) { + return com.google.protobuf.MapField.emptyMapField(ModulesDefaultEntryHolder.defaultEntry); + } + return modules_; + } + + public int getModulesCount() { + return internalGetModules().getMap().size(); + } + /** + * + * + *
+   * Optional. The configurations including the state of enablement for the
+   * service's different modules. The absence of a module in the map implies its
+   * configuration is inherited from its parents.
+   * 
+ * + * + * map<string, .google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> modules = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsModules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetModules().getMap().containsKey(key); + } + /** Use {@link #getModulesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> + getModules() { + return getModulesMap(); + } + /** + * + * + *
+   * Optional. The configurations including the state of enablement for the
+   * service's different modules. The absence of a module in the map implies its
+   * configuration is inherited from its parents.
+   * 
+ * + * + * map<string, .google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> modules = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> + getModulesMap() { + return internalGetModules().getMap(); + } + /** + * + * + *
+   * Optional. The configurations including the state of enablement for the
+   * service's different modules. The absence of a module in the map implies its
+   * configuration is inherited from its parents.
+   * 
+ * + * + * map<string, .google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> modules = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .ModuleSettings + getModulesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> + map = internalGetModules().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. The configurations including the state of enablement for the
+   * service's different modules. The absence of a module in the map implies its
+   * configuration is inherited from its parents.
+   * 
+ * + * + * map<string, .google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> modules = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + getModulesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> + map = internalGetModules().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. The time the service was last updated. This could be due to an
+   * explicit user update or due to a side effect of another system change such
+   * as billing subscription expiry.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. The time the service was last updated. This could be due to an
+   * explicit user update or due to a side effect of another system change such
+   * as billing subscription expiry.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. The time the service was last updated. This could be due to an
+   * explicit user update or due to a side effect of another system change such
+   * as billing subscription expiry.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int SERVICE_CONFIG_FIELD_NUMBER = 6; + private com.google.protobuf.Struct serviceConfig_; + /** + * + * + *
+   * Optional. Additional service specific configuration. Not all services will
+   * utilize this field.
+   * 
+ * + * .google.protobuf.Struct service_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceConfig field is set. + */ + @java.lang.Override + public boolean hasServiceConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Additional service specific configuration. Not all services will
+   * utilize this field.
+   * 
+ * + * .google.protobuf.Struct service_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceConfig. + */ + @java.lang.Override + public com.google.protobuf.Struct getServiceConfig() { + return serviceConfig_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : serviceConfig_; + } + /** + * + * + *
+   * Optional. Additional service specific configuration. Not all services will
+   * utilize this field.
+   * 
+ * + * .google.protobuf.Struct service_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getServiceConfigOrBuilder() { + return serviceConfig_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : serviceConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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 (intendedEnablementState_ + != com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, intendedEnablementState_); + } + if (effectiveEnablementState_ + != com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, effectiveEnablementState_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetModules(), ModulesDefaultEntryHolder.defaultEntry, 4); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getServiceConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (intendedEnablementState_ + != com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, intendedEnablementState_); + } + if (effectiveEnablementState_ + != com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, effectiveEnablementState_); + } + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> + entry : internalGetModules().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> + modules__ = + ModulesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, modules__); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getServiceConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycentermanagement.v1.SecurityCenterService)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.SecurityCenterService other = + (com.google.cloud.securitycentermanagement.v1.SecurityCenterService) obj; + + if (!getName().equals(other.getName())) return false; + if (intendedEnablementState_ != other.intendedEnablementState_) return false; + if (effectiveEnablementState_ != other.effectiveEnablementState_) return false; + if (!internalGetModules().equals(other.internalGetModules())) return false; + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasServiceConfig() != other.hasServiceConfig()) return false; + if (hasServiceConfig()) { + if (!getServiceConfig().equals(other.getServiceConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + INTENDED_ENABLEMENT_STATE_FIELD_NUMBER; + hash = (53 * hash) + intendedEnablementState_; + hash = (37 * hash) + EFFECTIVE_ENABLEMENT_STATE_FIELD_NUMBER; + hash = (53 * hash) + effectiveEnablementState_; + if (!internalGetModules().getMap().isEmpty()) { + hash = (37 * hash) + MODULES_FIELD_NUMBER; + hash = (53 * hash) + internalGetModules().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasServiceConfig()) { + hash = (37 * hash) + SERVICE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1.SecurityCenterService parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1.SecurityCenterService 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.securitycentermanagement.v1.SecurityCenterService parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1.SecurityCenterService parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1.SecurityCenterService parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1.SecurityCenterService parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1.SecurityCenterService parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.SecurityCenterService 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.securitycentermanagement.v1.SecurityCenterService + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.SecurityCenterService + 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.securitycentermanagement.v1.SecurityCenterService parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.SecurityCenterService 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents a particular Security Command Center service. This includes
+   * settings information such as top-level enablement in addition to individual
+   * module settings. Service settings can be configured at the organization,
+   * folder, or project level. Service settings at the organization or folder
+   * level are inherited by those in child folders and projects.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.SecurityCenterService} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.SecurityCenterService) + com.google.cloud.securitycentermanagement.v1.SecurityCenterServiceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SecurityCenterService_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetModules(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableModules(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SecurityCenterService_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.class, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.Builder.class); + } + + // Construct using + // com.google.cloud.securitycentermanagement.v1.SecurityCenterService.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateTimeFieldBuilder(); + getServiceConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + intendedEnablementState_ = 0; + effectiveEnablementState_ = 0; + internalGetMutableModules().clear(); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + serviceConfig_ = null; + if (serviceConfigBuilder_ != null) { + serviceConfigBuilder_.dispose(); + serviceConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_SecurityCenterService_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService build() { + com.google.cloud.securitycentermanagement.v1.SecurityCenterService result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService buildPartial() { + com.google.cloud.securitycentermanagement.v1.SecurityCenterService result = + new com.google.cloud.securitycentermanagement.v1.SecurityCenterService(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.intendedEnablementState_ = intendedEnablementState_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.effectiveEnablementState_ = effectiveEnablementState_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.modules_ = internalGetModules().build(ModulesDefaultEntryHolder.defaultEntry); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.serviceConfig_ = + serviceConfigBuilder_ == null ? serviceConfig_ : serviceConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycentermanagement.v1.SecurityCenterService) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1.SecurityCenterService) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService other) { + if (other + == com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.intendedEnablementState_ != 0) { + setIntendedEnablementStateValue(other.getIntendedEnablementStateValue()); + } + if (other.effectiveEnablementState_ != 0) { + setEffectiveEnablementStateValue(other.getEffectiveEnablementStateValue()); + } + internalGetMutableModules().mergeFrom(other.internalGetModules()); + bitField0_ |= 0x00000008; + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasServiceConfig()) { + mergeServiceConfig(other.getServiceConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + intendedEnablementState_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + effectiveEnablementState_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .ModuleSettings> + modules__ = + input.readMessage( + ModulesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableModules() + .ensureBuilderMap() + .put(modules__.getKey(), modules__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getServiceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Identifier. The name of the service.
+     *
+     * Its format is:
+     *
+     *   * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+     *   * folders/{folder}/locations/{location}/securityCenterServices/{service}
+     *   * projects/{project}/locations/{location}/securityCenterServices/{service}
+     *
+     * The possible values for id {service} are:
+     *
+     *   * container-threat-detection
+     *   * event-threat-detection
+     *   * security-health-analytics
+     *   * vm-threat-detection
+     *   * web-security-scanner
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Identifier. The name of the service.
+     *
+     * Its format is:
+     *
+     *   * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+     *   * folders/{folder}/locations/{location}/securityCenterServices/{service}
+     *   * projects/{project}/locations/{location}/securityCenterServices/{service}
+     *
+     * The possible values for id {service} are:
+     *
+     *   * container-threat-detection
+     *   * event-threat-detection
+     *   * security-health-analytics
+     *   * vm-threat-detection
+     *   * web-security-scanner
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Identifier. The name of the service.
+     *
+     * Its format is:
+     *
+     *   * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+     *   * folders/{folder}/locations/{location}/securityCenterServices/{service}
+     *   * projects/{project}/locations/{location}/securityCenterServices/{service}
+     *
+     * The possible values for id {service} are:
+     *
+     *   * container-threat-detection
+     *   * event-threat-detection
+     *   * security-health-analytics
+     *   * vm-threat-detection
+     *   * web-security-scanner
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Identifier. The name of the service.
+     *
+     * Its format is:
+     *
+     *   * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+     *   * folders/{folder}/locations/{location}/securityCenterServices/{service}
+     *   * projects/{project}/locations/{location}/securityCenterServices/{service}
+     *
+     * The possible values for id {service} are:
+     *
+     *   * container-threat-detection
+     *   * event-threat-detection
+     *   * security-health-analytics
+     *   * vm-threat-detection
+     *   * web-security-scanner
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Identifier. The name of the service.
+     *
+     * Its format is:
+     *
+     *   * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+     *   * folders/{folder}/locations/{location}/securityCenterServices/{service}
+     *   * projects/{project}/locations/{location}/securityCenterServices/{service}
+     *
+     * The possible values for id {service} are:
+     *
+     *   * container-threat-detection
+     *   * event-threat-detection
+     *   * security-health-analytics
+     *   * vm-threat-detection
+     *   * web-security-scanner
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int intendedEnablementState_ = 0; + /** + * + * + *
+     * Optional. The intended state of enablement for the service at its level of
+     * the resource hierarchy. A DISABLED state will override all module
+     * enablement_states to DISABLED.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for intendedEnablementState. + */ + @java.lang.Override + public int getIntendedEnablementStateValue() { + return intendedEnablementState_; + } + /** + * + * + *
+     * Optional. The intended state of enablement for the service at its level of
+     * the resource hierarchy. A DISABLED state will override all module
+     * enablement_states to DISABLED.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for intendedEnablementState to set. + * @return This builder for chaining. + */ + public Builder setIntendedEnablementStateValue(int value) { + intendedEnablementState_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The intended state of enablement for the service at its level of
+     * the resource hierarchy. A DISABLED state will override all module
+     * enablement_states to DISABLED.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The intendedEnablementState. + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + getIntendedEnablementState() { + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState result = + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .forNumber(intendedEnablementState_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. The intended state of enablement for the service at its level of
+     * the resource hierarchy. A DISABLED state will override all module
+     * enablement_states to DISABLED.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The intendedEnablementState to set. + * @return This builder for chaining. + */ + public Builder setIntendedEnablementState( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + intendedEnablementState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The intended state of enablement for the service at its level of
+     * the resource hierarchy. A DISABLED state will override all module
+     * enablement_states to DISABLED.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIntendedEnablementState() { + bitField0_ = (bitField0_ & ~0x00000002); + intendedEnablementState_ = 0; + onChanged(); + return this; + } + + private int effectiveEnablementState_ = 0; + /** + * + * + *
+     * Output only. The effective enablement state for the service at its level of
+     * the resource hierarchy. If the intended state is set to INHERITED, the
+     * effective state will be inherited from the enablement state of an ancestor.
+     * This state may differ from the intended enablement state due to billing
+     * eligibility or onboarding status.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for effectiveEnablementState. + */ + @java.lang.Override + public int getEffectiveEnablementStateValue() { + return effectiveEnablementState_; + } + /** + * + * + *
+     * Output only. The effective enablement state for the service at its level of
+     * the resource hierarchy. If the intended state is set to INHERITED, the
+     * effective state will be inherited from the enablement state of an ancestor.
+     * This state may differ from the intended enablement state due to billing
+     * eligibility or onboarding status.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for effectiveEnablementState to set. + * @return This builder for chaining. + */ + public Builder setEffectiveEnablementStateValue(int value) { + effectiveEnablementState_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The effective enablement state for the service at its level of
+     * the resource hierarchy. If the intended state is set to INHERITED, the
+     * effective state will be inherited from the enablement state of an ancestor.
+     * This state may differ from the intended enablement state due to billing
+     * eligibility or onboarding status.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveEnablementState. + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + getEffectiveEnablementState() { + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState result = + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .forNumber(effectiveEnablementState_); + return result == null + ? com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The effective enablement state for the service at its level of
+     * the resource hierarchy. If the intended state is set to INHERITED, the
+     * effective state will be inherited from the enablement state of an ancestor.
+     * This state may differ from the intended enablement state due to billing
+     * eligibility or onboarding status.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The effectiveEnablementState to set. + * @return This builder for chaining. + */ + public Builder setEffectiveEnablementState( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + effectiveEnablementState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The effective enablement state for the service at its level of
+     * the resource hierarchy. If the intended state is set to INHERITED, the
+     * effective state will be inherited from the enablement state of an ancestor.
+     * This state may differ from the intended enablement state due to billing
+     * eligibility or onboarding status.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEffectiveEnablementState() { + bitField0_ = (bitField0_ & ~0x00000004); + effectiveEnablementState_ = 0; + onChanged(); + return this; + } + + private static final class ModulesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .ModuleSettingsOrBuilder, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> { + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + build( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .ModuleSettingsOrBuilder + val) { + if (val + instanceof + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings) { + return (com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings) + val; + } + return ((com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + .Builder) + val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> + defaultEntry() { + return ModulesDefaultEntryHolder.defaultEntry; + } + }; + + private static final ModulesConverter modulesConverter = new ModulesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .ModuleSettingsOrBuilder, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + .Builder> + modules_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .ModuleSettingsOrBuilder, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + .Builder> + internalGetModules() { + if (modules_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(modulesConverter); + } + return modules_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .ModuleSettingsOrBuilder, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + .Builder> + internalGetMutableModules() { + if (modules_ == null) { + modules_ = new com.google.protobuf.MapFieldBuilder<>(modulesConverter); + } + bitField0_ |= 0x00000008; + onChanged(); + return modules_; + } + + public int getModulesCount() { + return internalGetModules().ensureBuilderMap().size(); + } + /** + * + * + *
+     * Optional. The configurations including the state of enablement for the
+     * service's different modules. The absence of a module in the map implies its
+     * configuration is inherited from its parents.
+     * 
+ * + * + * map<string, .google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> modules = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsModules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetModules().ensureBuilderMap().containsKey(key); + } + /** Use {@link #getModulesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> + getModules() { + return getModulesMap(); + } + /** + * + * + *
+     * Optional. The configurations including the state of enablement for the
+     * service's different modules. The absence of a module in the map implies its
+     * configuration is inherited from its parents.
+     * 
+ * + * + * map<string, .google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> modules = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> + getModulesMap() { + return internalGetModules().getImmutableMap(); + } + /** + * + * + *
+     * Optional. The configurations including the state of enablement for the
+     * service's different modules. The absence of a module in the map implies its
+     * configuration is inherited from its parents.
+     * 
+ * + * + * map<string, .google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> modules = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .ModuleSettings + getModulesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .ModuleSettingsOrBuilder> + map = internalGetMutableModules().ensureBuilderMap(); + return map.containsKey(key) ? modulesConverter.build(map.get(key)) : defaultValue; + } + /** + * + * + *
+     * Optional. The configurations including the state of enablement for the
+     * service's different modules. The absence of a module in the map implies its
+     * configuration is inherited from its parents.
+     * 
+ * + * + * map<string, .google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> modules = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + getModulesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .ModuleSettingsOrBuilder> + map = internalGetMutableModules().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return modulesConverter.build(map.get(key)); + } + + public Builder clearModules() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableModules().clear(); + return this; + } + /** + * + * + *
+     * Optional. The configurations including the state of enablement for the
+     * service's different modules. The absence of a module in the map implies its
+     * configuration is inherited from its parents.
+     * 
+ * + * + * map<string, .google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> modules = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeModules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableModules().ensureBuilderMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> + getMutableModules() { + bitField0_ |= 0x00000008; + return internalGetMutableModules().ensureMessageMap(); + } + /** + * + * + *
+     * Optional. The configurations including the state of enablement for the
+     * service's different modules. The absence of a module in the map implies its
+     * configuration is inherited from its parents.
+     * 
+ * + * + * map<string, .google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> modules = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putModules( + java.lang.String key, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableModules().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + /** + * + * + *
+     * Optional. The configurations including the state of enablement for the
+     * service's different modules. The absence of a module in the map implies its
+     * configuration is inherited from its parents.
+     * 
+ * + * + * map<string, .google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> modules = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllModules( + java.util.Map< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> + values) { + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableModules().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + /** + * + * + *
+     * Optional. The configurations including the state of enablement for the
+     * service's different modules. The absence of a module in the map implies its
+     * configuration is inherited from its parents.
+     * 
+ * + * + * map<string, .google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> modules = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings.Builder + putModulesBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .ModuleSettingsOrBuilder> + builderMap = internalGetMutableModules().ensureBuilderMap(); + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettingsOrBuilder + entry = builderMap.get(key); + if (entry == null) { + entry = + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + .newBuilder(); + builderMap.put(key, entry); + } + if (entry + instanceof + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings) { + entry = + ((com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings) + entry) + .toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + .Builder) + entry; + } + + 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_; + /** + * + * + *
+     * Output only. The time the service was last updated. This could be due to an
+     * explicit user update or due to a side effect of another system change such
+     * as billing subscription expiry.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Output only. The time the service was last updated. This could be due to an
+     * explicit user update or due to a side effect of another system change such
+     * as billing subscription expiry.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The time the service was last updated. This could be due to an
+     * explicit user update or due to a side effect of another system change such
+     * as billing subscription expiry.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the service was last updated. This could be due to an
+     * explicit user update or due to a side effect of another system change such
+     * as billing subscription expiry.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the service was last updated. This could be due to an
+     * explicit user update or due to a side effect of another system change such
+     * as billing subscription expiry.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The time the service was last updated. This could be due to an
+     * explicit user update or due to a side effect of another system change such
+     * as billing subscription expiry.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the service was last updated. This could be due to an
+     * explicit user update or due to a side effect of another system change such
+     * as billing subscription expiry.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time the service was last updated. This could be due to an
+     * explicit user update or due to a side effect of another system change such
+     * as billing subscription expiry.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.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_; + } + } + /** + * + * + *
+     * Output only. The time the service was last updated. This could be due to an
+     * explicit user update or due to a side effect of another system change such
+     * as billing subscription expiry.
+     * 
+ * + * + * .google.protobuf.Timestamp update_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> + 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()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Struct serviceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + serviceConfigBuilder_; + /** + * + * + *
+     * Optional. Additional service specific configuration. Not all services will
+     * utilize this field.
+     * 
+ * + * .google.protobuf.Struct service_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceConfig field is set. + */ + public boolean hasServiceConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Optional. Additional service specific configuration. Not all services will
+     * utilize this field.
+     * 
+ * + * .google.protobuf.Struct service_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceConfig. + */ + public com.google.protobuf.Struct getServiceConfig() { + if (serviceConfigBuilder_ == null) { + return serviceConfig_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : serviceConfig_; + } else { + return serviceConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Additional service specific configuration. Not all services will
+     * utilize this field.
+     * 
+ * + * .google.protobuf.Struct service_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceConfig(com.google.protobuf.Struct value) { + if (serviceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceConfig_ = value; + } else { + serviceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Additional service specific configuration. Not all services will
+     * utilize this field.
+     * 
+ * + * .google.protobuf.Struct service_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setServiceConfig(com.google.protobuf.Struct.Builder builderForValue) { + if (serviceConfigBuilder_ == null) { + serviceConfig_ = builderForValue.build(); + } else { + serviceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Additional service specific configuration. Not all services will
+     * utilize this field.
+     * 
+ * + * .google.protobuf.Struct service_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeServiceConfig(com.google.protobuf.Struct value) { + if (serviceConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && serviceConfig_ != null + && serviceConfig_ != com.google.protobuf.Struct.getDefaultInstance()) { + getServiceConfigBuilder().mergeFrom(value); + } else { + serviceConfig_ = value; + } + } else { + serviceConfigBuilder_.mergeFrom(value); + } + if (serviceConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Additional service specific configuration. Not all services will
+     * utilize this field.
+     * 
+ * + * .google.protobuf.Struct service_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearServiceConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + serviceConfig_ = null; + if (serviceConfigBuilder_ != null) { + serviceConfigBuilder_.dispose(); + serviceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Additional service specific configuration. Not all services will
+     * utilize this field.
+     * 
+ * + * .google.protobuf.Struct service_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getServiceConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getServiceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Additional service specific configuration. Not all services will
+     * utilize this field.
+     * 
+ * + * .google.protobuf.Struct service_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getServiceConfigOrBuilder() { + if (serviceConfigBuilder_ != null) { + return serviceConfigBuilder_.getMessageOrBuilder(); + } else { + return serviceConfig_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : serviceConfig_; + } + } + /** + * + * + *
+     * Optional. Additional service specific configuration. Not all services will
+     * utilize this field.
+     * 
+ * + * .google.protobuf.Struct service_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getServiceConfigFieldBuilder() { + if (serviceConfigBuilder_ == null) { + serviceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getServiceConfig(), getParentForChildren(), isClean()); + serviceConfig_ = null; + } + return serviceConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.SecurityCenterService) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.SecurityCenterService) + private static final com.google.cloud.securitycentermanagement.v1.SecurityCenterService + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycentermanagement.v1.SecurityCenterService(); + } + + public static com.google.cloud.securitycentermanagement.v1.SecurityCenterService + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityCenterService parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterServiceName.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterServiceName.java new file mode 100644 index 000000000000..edd8dd58347f --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterServiceName.java @@ -0,0 +1,441 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycentermanagement.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SecurityCenterServiceName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SERVICE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/securityCenterServices/{service}"); + private static final PathTemplate FOLDER_LOCATION_SERVICE = + PathTemplate.createWithoutUrlEncoding( + "folders/{folder}/locations/{location}/securityCenterServices/{service}"); + private static final PathTemplate ORGANIZATION_LOCATION_SERVICE = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/securityCenterServices/{service}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String service; + private final String folder; + private final String organization; + + @Deprecated + protected SecurityCenterServiceName() { + project = null; + location = null; + service = null; + folder = null; + organization = null; + } + + private SecurityCenterServiceName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + service = Preconditions.checkNotNull(builder.getService()); + folder = null; + organization = null; + pathTemplate = PROJECT_LOCATION_SERVICE; + } + + private SecurityCenterServiceName(FolderLocationServiceBuilder builder) { + folder = Preconditions.checkNotNull(builder.getFolder()); + location = Preconditions.checkNotNull(builder.getLocation()); + service = Preconditions.checkNotNull(builder.getService()); + project = null; + organization = null; + pathTemplate = FOLDER_LOCATION_SERVICE; + } + + private SecurityCenterServiceName(OrganizationLocationServiceBuilder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + service = Preconditions.checkNotNull(builder.getService()); + project = null; + folder = null; + pathTemplate = ORGANIZATION_LOCATION_SERVICE; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getService() { + return service; + } + + public String getFolder() { + return folder; + } + + public String getOrganization() { + return organization; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newProjectLocationServiceBuilder() { + return new Builder(); + } + + public static FolderLocationServiceBuilder newFolderLocationServiceBuilder() { + return new FolderLocationServiceBuilder(); + } + + public static OrganizationLocationServiceBuilder newOrganizationLocationServiceBuilder() { + return new OrganizationLocationServiceBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SecurityCenterServiceName of(String project, String location, String service) { + return newBuilder().setProject(project).setLocation(location).setService(service).build(); + } + + public static SecurityCenterServiceName ofProjectLocationServiceName( + String project, String location, String service) { + return newBuilder().setProject(project).setLocation(location).setService(service).build(); + } + + public static SecurityCenterServiceName ofFolderLocationServiceName( + String folder, String location, String service) { + return newFolderLocationServiceBuilder() + .setFolder(folder) + .setLocation(location) + .setService(service) + .build(); + } + + public static SecurityCenterServiceName ofOrganizationLocationServiceName( + String organization, String location, String service) { + return newOrganizationLocationServiceBuilder() + .setOrganization(organization) + .setLocation(location) + .setService(service) + .build(); + } + + public static String format(String project, String location, String service) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setService(service) + .build() + .toString(); + } + + public static String formatProjectLocationServiceName( + String project, String location, String service) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setService(service) + .build() + .toString(); + } + + public static String formatFolderLocationServiceName( + String folder, String location, String service) { + return newFolderLocationServiceBuilder() + .setFolder(folder) + .setLocation(location) + .setService(service) + .build() + .toString(); + } + + public static String formatOrganizationLocationServiceName( + String organization, String location, String service) { + return newOrganizationLocationServiceBuilder() + .setOrganization(organization) + .setLocation(location) + .setService(service) + .build() + .toString(); + } + + public static SecurityCenterServiceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_SERVICE.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_SERVICE.match(formattedString); + return ofProjectLocationServiceName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("service")); + } else if (FOLDER_LOCATION_SERVICE.matches(formattedString)) { + Map matchMap = FOLDER_LOCATION_SERVICE.match(formattedString); + return ofFolderLocationServiceName( + matchMap.get("folder"), matchMap.get("location"), matchMap.get("service")); + } else if (ORGANIZATION_LOCATION_SERVICE.matches(formattedString)) { + Map matchMap = ORGANIZATION_LOCATION_SERVICE.match(formattedString); + return ofOrganizationLocationServiceName( + matchMap.get("organization"), matchMap.get("location"), matchMap.get("service")); + } + throw new ValidationException( + "SecurityCenterServiceName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SecurityCenterServiceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SERVICE.matches(formattedString) + || FOLDER_LOCATION_SERVICE.matches(formattedString) + || ORGANIZATION_LOCATION_SERVICE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (service != null) { + fieldMapBuilder.put("service", service); + } + if (folder != null) { + fieldMapBuilder.put("folder", folder); + } + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SecurityCenterServiceName that = ((SecurityCenterServiceName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.service, that.service) + && Objects.equals(this.folder, that.folder) + && Objects.equals(this.organization, that.organization); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(service); + h *= 1000003; + h ^= Objects.hashCode(folder); + h *= 1000003; + h ^= Objects.hashCode(organization); + return h; + } + + /** Builder for projects/{project}/locations/{location}/securityCenterServices/{service}. */ + public static class Builder { + private String project; + private String location; + private String service; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getService() { + return service; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setService(String service) { + this.service = service; + return this; + } + + private Builder(SecurityCenterServiceName securityCenterServiceName) { + Preconditions.checkArgument( + Objects.equals(securityCenterServiceName.pathTemplate, PROJECT_LOCATION_SERVICE), + "toBuilder is only supported when SecurityCenterServiceName has the pattern of projects/{project}/locations/{location}/securityCenterServices/{service}"); + this.project = securityCenterServiceName.project; + this.location = securityCenterServiceName.location; + this.service = securityCenterServiceName.service; + } + + public SecurityCenterServiceName build() { + return new SecurityCenterServiceName(this); + } + } + + /** Builder for folders/{folder}/locations/{location}/securityCenterServices/{service}. */ + public static class FolderLocationServiceBuilder { + private String folder; + private String location; + private String service; + + protected FolderLocationServiceBuilder() {} + + public String getFolder() { + return folder; + } + + public String getLocation() { + return location; + } + + public String getService() { + return service; + } + + public FolderLocationServiceBuilder setFolder(String folder) { + this.folder = folder; + return this; + } + + public FolderLocationServiceBuilder setLocation(String location) { + this.location = location; + return this; + } + + public FolderLocationServiceBuilder setService(String service) { + this.service = service; + return this; + } + + public SecurityCenterServiceName build() { + return new SecurityCenterServiceName(this); + } + } + + /** + * Builder for organizations/{organization}/locations/{location}/securityCenterServices/{service}. + */ + public static class OrganizationLocationServiceBuilder { + private String organization; + private String location; + private String service; + + protected OrganizationLocationServiceBuilder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getService() { + return service; + } + + public OrganizationLocationServiceBuilder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public OrganizationLocationServiceBuilder setLocation(String location) { + this.location = location; + return this; + } + + public OrganizationLocationServiceBuilder setService(String service) { + this.service = service; + return this; + } + + public SecurityCenterServiceName build() { + return new SecurityCenterServiceName(this); + } + } +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterServiceOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterServiceOrBuilder.java new file mode 100644 index 000000000000..fe0e2eff47f2 --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterServiceOrBuilder.java @@ -0,0 +1,323 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycentermanagement.v1; + +public interface SecurityCenterServiceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.SecurityCenterService) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The name of the service.
+   *
+   * Its format is:
+   *
+   *   * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+   *   * folders/{folder}/locations/{location}/securityCenterServices/{service}
+   *   * projects/{project}/locations/{location}/securityCenterServices/{service}
+   *
+   * The possible values for id {service} are:
+   *
+   *   * container-threat-detection
+   *   * event-threat-detection
+   *   * security-health-analytics
+   *   * vm-threat-detection
+   *   * web-security-scanner
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Identifier. The name of the service.
+   *
+   * Its format is:
+   *
+   *   * organizations/{organization}/locations/{location}/securityCenterServices/{service}
+   *   * folders/{folder}/locations/{location}/securityCenterServices/{service}
+   *   * projects/{project}/locations/{location}/securityCenterServices/{service}
+   *
+   * The possible values for id {service} are:
+   *
+   *   * container-threat-detection
+   *   * event-threat-detection
+   *   * security-health-analytics
+   *   * vm-threat-detection
+   *   * web-security-scanner
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The intended state of enablement for the service at its level of
+   * the resource hierarchy. A DISABLED state will override all module
+   * enablement_states to DISABLED.
+   * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for intendedEnablementState. + */ + int getIntendedEnablementStateValue(); + /** + * + * + *
+   * Optional. The intended state of enablement for the service at its level of
+   * the resource hierarchy. A DISABLED state will override all module
+   * enablement_states to DISABLED.
+   * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState intended_enablement_state = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The intendedEnablementState. + */ + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + getIntendedEnablementState(); + + /** + * + * + *
+   * Output only. The effective enablement state for the service at its level of
+   * the resource hierarchy. If the intended state is set to INHERITED, the
+   * effective state will be inherited from the enablement state of an ancestor.
+   * This state may differ from the intended enablement state due to billing
+   * eligibility or onboarding status.
+   * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for effectiveEnablementState. + */ + int getEffectiveEnablementStateValue(); + /** + * + * + *
+   * Output only. The effective enablement state for the service at its level of
+   * the resource hierarchy. If the intended state is set to INHERITED, the
+   * effective state will be inherited from the enablement state of an ancestor.
+   * This state may differ from the intended enablement state due to billing
+   * eligibility or onboarding status.
+   * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState effective_enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveEnablementState. + */ + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.EnablementState + getEffectiveEnablementState(); + + /** + * + * + *
+   * Optional. The configurations including the state of enablement for the
+   * service's different modules. The absence of a module in the map implies its
+   * configuration is inherited from its parents.
+   * 
+ * + * + * map<string, .google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> modules = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getModulesCount(); + /** + * + * + *
+   * Optional. The configurations including the state of enablement for the
+   * service's different modules. The absence of a module in the map implies its
+   * configuration is inherited from its parents.
+   * 
+ * + * + * map<string, .google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> modules = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsModules(java.lang.String key); + /** Use {@link #getModulesMap()} instead. */ + @java.lang.Deprecated + java.util.Map< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> + getModules(); + /** + * + * + *
+   * Optional. The configurations including the state of enablement for the
+   * service's different modules. The absence of a module in the map implies its
+   * configuration is inherited from its parents.
+   * 
+ * + * + * map<string, .google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> modules = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map< + java.lang.String, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> + getModulesMap(); + /** + * + * + *
+   * Optional. The configurations including the state of enablement for the
+   * service's different modules. The absence of a module in the map implies its
+   * configuration is inherited from its parents.
+   * 
+ * + * + * map<string, .google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> modules = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + getModulesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + defaultValue); + /** + * + * + *
+   * Optional. The configurations including the state of enablement for the
+   * service's different modules. The absence of a module in the map implies its
+   * configuration is inherited from its parents.
+   * 
+ * + * + * map<string, .google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings> modules = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.ModuleSettings + getModulesOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. The time the service was last updated. This could be due to an
+   * explicit user update or due to a side effect of another system change such
+   * as billing subscription expiry.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. The time the service was last updated. This could be due to an
+   * explicit user update or due to a side effect of another system change such
+   * as billing subscription expiry.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. The time the service was last updated. This could be due to an
+   * explicit user update or due to a side effect of another system change such
+   * as billing subscription expiry.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Additional service specific configuration. Not all services will
+   * utilize this field.
+   * 
+ * + * .google.protobuf.Struct service_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the serviceConfig field is set. + */ + boolean hasServiceConfig(); + /** + * + * + *
+   * Optional. Additional service specific configuration. Not all services will
+   * utilize this field.
+   * 
+ * + * .google.protobuf.Struct service_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceConfig. + */ + com.google.protobuf.Struct getServiceConfig(); + /** + * + * + *
+   * Optional. Additional service specific configuration. Not all services will
+   * utilize this field.
+   * 
+ * + * .google.protobuf.Struct service_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getServiceConfigOrBuilder(); +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModule.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModule.java index 01d196700a06..2e9d1a95f74d 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModule.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModule.java @@ -277,16 +277,11 @@ private EnablementState(int value) { * * *
-   * Identifier. The resource name of the custom module.
-   * Its format is
-   * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
-   * or
-   * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
-   * or
-   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}"
-   *
-   * The id {customModule} is server-generated and is not user settable.
-   * It will be a numeric id containing 1-20 digits.
+   * Identifier. The full resource name of the custom module, specified in one
+   * of the following formats:
+   * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+   * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+   * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -309,16 +304,11 @@ public java.lang.String getName() { * * *
-   * Identifier. The resource name of the custom module.
-   * Its format is
-   * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
-   * or
-   * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
-   * or
-   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}"
-   *
-   * The id {customModule} is server-generated and is not user settable.
-   * It will be a numeric id containing 1-20 digits.
+   * Identifier. The full resource name of the custom module, specified in one
+   * of the following formats:
+   * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+   * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+   * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1215,16 +1205,11 @@ public Builder mergeFrom( * * *
-     * Identifier. The resource name of the custom module.
-     * Its format is
-     * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
-     * or
-     * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
-     * or
-     * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}"
-     *
-     * The id {customModule} is server-generated and is not user settable.
-     * It will be a numeric id containing 1-20 digits.
+     * Identifier. The full resource name of the custom module, specified in one
+     * of the following formats:
+     * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+     * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+     * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1246,16 +1231,11 @@ public java.lang.String getName() { * * *
-     * Identifier. The resource name of the custom module.
-     * Its format is
-     * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
-     * or
-     * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
-     * or
-     * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}"
-     *
-     * The id {customModule} is server-generated and is not user settable.
-     * It will be a numeric id containing 1-20 digits.
+     * Identifier. The full resource name of the custom module, specified in one
+     * of the following formats:
+     * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+     * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+     * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1277,16 +1257,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Identifier. The resource name of the custom module.
-     * Its format is
-     * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
-     * or
-     * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
-     * or
-     * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}"
-     *
-     * The id {customModule} is server-generated and is not user settable.
-     * It will be a numeric id containing 1-20 digits.
+     * Identifier. The full resource name of the custom module, specified in one
+     * of the following formats:
+     * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+     * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+     * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1307,16 +1282,11 @@ public Builder setName(java.lang.String value) { * * *
-     * Identifier. The resource name of the custom module.
-     * Its format is
-     * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
-     * or
-     * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
-     * or
-     * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}"
-     *
-     * The id {customModule} is server-generated and is not user settable.
-     * It will be a numeric id containing 1-20 digits.
+     * Identifier. The full resource name of the custom module, specified in one
+     * of the following formats:
+     * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+     * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+     * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1333,16 +1303,11 @@ public Builder clearName() { * * *
-     * Identifier. The resource name of the custom module.
-     * Its format is
-     * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
-     * or
-     * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
-     * or
-     * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}"
-     *
-     * The id {customModule} is server-generated and is not user settable.
-     * It will be a numeric id containing 1-20 digits.
+     * Identifier. The full resource name of the custom module, specified in one
+     * of the following formats:
+     * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+     * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+     * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.java index 6f2df1171e9a..8488e3de5f57 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.java @@ -28,16 +28,11 @@ public interface SecurityHealthAnalyticsCustomModuleOrBuilder * * *
-   * Identifier. The resource name of the custom module.
-   * Its format is
-   * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
-   * or
-   * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
-   * or
-   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}"
-   *
-   * The id {customModule} is server-generated and is not user settable.
-   * It will be a numeric id containing 1-20 digits.
+   * Identifier. The full resource name of the custom module, specified in one
+   * of the following formats:
+   * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+   * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+   * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -49,16 +44,11 @@ public interface SecurityHealthAnalyticsCustomModuleOrBuilder * * *
-   * Identifier. The resource name of the custom module.
-   * Its format is
-   * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
-   * or
-   * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}",
-   * or
-   * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}"
-   *
-   * The id {customModule} is server-generated and is not user settable.
-   * It will be a numeric id containing 1-20 digits.
+   * Identifier. The full resource name of the custom module, specified in one
+   * of the following formats:
+   * * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+   * * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
+   * * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.java index 9413d4b9ec3c..ff5ea29f9c22 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.java @@ -795,9 +795,9 @@ private FindingClass(int value) { * Identifier. The [relative resource * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) * of the finding. Example: - * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", - * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". + * `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}`, + * `folders/{folder_id}/sources/{source_id}/findings/{finding_id}`, + * `projects/{project_id}/sources/{source_id}/findings/{finding_id}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -823,9 +823,9 @@ public java.lang.String getName() { * Identifier. The [relative resource * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) * of the finding. Example: - * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", - * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". + * `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}`, + * `folders/{folder_id}/sources/{source_id}/findings/{finding_id}`, + * `projects/{project_id}/sources/{source_id}/findings/{finding_id}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -857,7 +857,7 @@ public com.google.protobuf.ByteString getNameBytes() { * https://cloud.google.com/apis/design/resource_names#relative_resource_name * This field is immutable after creation time. * For example: - * "organizations/{organization_id}/sources/{source_id}" + * `organizations/{organization_id}/sources/{source_id}` * * * string parent = 2; @@ -884,7 +884,7 @@ public java.lang.String getParent() { * https://cloud.google.com/apis/design/resource_names#relative_resource_name * This field is immutable after creation time. * For example: - * "organizations/{organization_id}/sources/{source_id}" + * `organizations/{organization_id}/sources/{source_id}` * * * string parent = 2; @@ -1939,9 +1939,9 @@ public Builder mergeFrom( * Identifier. The [relative resource * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) * of the finding. Example: - * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", - * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". + * `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}`, + * `folders/{folder_id}/sources/{source_id}/findings/{finding_id}`, + * `projects/{project_id}/sources/{source_id}/findings/{finding_id}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1966,9 +1966,9 @@ public java.lang.String getName() { * Identifier. The [relative resource * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) * of the finding. Example: - * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", - * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". + * `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}`, + * `folders/{folder_id}/sources/{source_id}/findings/{finding_id}`, + * `projects/{project_id}/sources/{source_id}/findings/{finding_id}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1993,9 +1993,9 @@ public com.google.protobuf.ByteString getNameBytes() { * Identifier. The [relative resource * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) * of the finding. Example: - * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", - * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". + * `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}`, + * `folders/{folder_id}/sources/{source_id}/findings/{finding_id}`, + * `projects/{project_id}/sources/{source_id}/findings/{finding_id}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -2019,9 +2019,9 @@ public Builder setName(java.lang.String value) { * Identifier. The [relative resource * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) * of the finding. Example: - * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", - * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". + * `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}`, + * `folders/{folder_id}/sources/{source_id}/findings/{finding_id}`, + * `projects/{project_id}/sources/{source_id}/findings/{finding_id}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -2041,9 +2041,9 @@ public Builder clearName() { * Identifier. The [relative resource * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) * of the finding. Example: - * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", - * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". + * `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}`, + * `folders/{folder_id}/sources/{source_id}/findings/{finding_id}`, + * `projects/{project_id}/sources/{source_id}/findings/{finding_id}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -2071,7 +2071,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * https://cloud.google.com/apis/design/resource_names#relative_resource_name * This field is immutable after creation time. * For example: - * "organizations/{organization_id}/sources/{source_id}" + * `organizations/{organization_id}/sources/{source_id}` * * * string parent = 2; @@ -2097,7 +2097,7 @@ public java.lang.String getParent() { * https://cloud.google.com/apis/design/resource_names#relative_resource_name * This field is immutable after creation time. * For example: - * "organizations/{organization_id}/sources/{source_id}" + * `organizations/{organization_id}/sources/{source_id}` * * * string parent = 2; @@ -2123,7 +2123,7 @@ public com.google.protobuf.ByteString getParentBytes() { * https://cloud.google.com/apis/design/resource_names#relative_resource_name * This field is immutable after creation time. * For example: - * "organizations/{organization_id}/sources/{source_id}" + * `organizations/{organization_id}/sources/{source_id}` * * * string parent = 2; @@ -2148,7 +2148,7 @@ public Builder setParent(java.lang.String value) { * https://cloud.google.com/apis/design/resource_names#relative_resource_name * This field is immutable after creation time. * For example: - * "organizations/{organization_id}/sources/{source_id}" + * `organizations/{organization_id}/sources/{source_id}` * * * string parent = 2; @@ -2169,7 +2169,7 @@ public Builder clearParent() { * https://cloud.google.com/apis/design/resource_names#relative_resource_name * This field is immutable after creation time. * For example: - * "organizations/{organization_id}/sources/{source_id}" + * `organizations/{organization_id}/sources/{source_id}` * * * string parent = 2; diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFindingOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFindingOrBuilder.java index de18314e4f31..b6736d05338f 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFindingOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFindingOrBuilder.java @@ -31,9 +31,9 @@ public interface SimulatedFindingOrBuilder * Identifier. The [relative resource * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) * of the finding. Example: - * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", - * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". + * `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}`, + * `folders/{folder_id}/sources/{source_id}/findings/{finding_id}`, + * `projects/{project_id}/sources/{source_id}/findings/{finding_id}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -48,9 +48,9 @@ public interface SimulatedFindingOrBuilder * Identifier. The [relative resource * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) * of the finding. Example: - * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", - * "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", - * "projects/{project_id}/sources/{source_id}/findings/{finding_id}". + * `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}`, + * `folders/{folder_id}/sources/{source_id}/findings/{finding_id}`, + * `projects/{project_id}/sources/{source_id}/findings/{finding_id}`. * * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -67,7 +67,7 @@ public interface SimulatedFindingOrBuilder * https://cloud.google.com/apis/design/resource_names#relative_resource_name * This field is immutable after creation time. * For example: - * "organizations/{organization_id}/sources/{source_id}" + * `organizations/{organization_id}/sources/{source_id}` * * * string parent = 2; @@ -83,7 +83,7 @@ public interface SimulatedFindingOrBuilder * https://cloud.google.com/apis/design/resource_names#relative_resource_name * This field is immutable after creation time. * For example: - * "organizations/{organization_id}/sources/{source_id}" + * `organizations/{organization_id}/sources/{source_id}` * * * string parent = 2; diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityCenterServiceRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityCenterServiceRequest.java new file mode 100644 index 000000000000..f391688f7357 --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityCenterServiceRequest.java @@ -0,0 +1,1223 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycentermanagement.v1; + +/** + * + * + *
+ * Request message for updating a Security Command Center service.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest} + */ +public final class UpdateSecurityCenterServiceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest) + UpdateSecurityCenterServiceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateSecurityCenterServiceRequest.newBuilder() to construct. + private UpdateSecurityCenterServiceRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateSecurityCenterServiceRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSecurityCenterServiceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityCenterServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityCenterServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest.class, + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest.Builder + .class); + } + + private int bitField0_; + public static final int SECURITY_CENTER_SERVICE_FIELD_NUMBER = 1; + private com.google.cloud.securitycentermanagement.v1.SecurityCenterService securityCenterService_; + /** + * + * + *
+   * Required. The updated service.
+   * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityCenterService field is set. + */ + @java.lang.Override + public boolean hasSecurityCenterService() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The updated service.
+   * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityCenterService. + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService + getSecurityCenterService() { + return securityCenterService_ == null + ? com.google.cloud.securitycentermanagement.v1.SecurityCenterService.getDefaultInstance() + : securityCenterService_; + } + /** + * + * + *
+   * Required. The updated service.
+   * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.SecurityCenterServiceOrBuilder + getSecurityCenterServiceOrBuilder() { + return securityCenterService_ == null + ? com.google.cloud.securitycentermanagement.v1.SecurityCenterService.getDefaultInstance() + : securityCenterService_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Possible values:
+   *
+   *   * "intended_enablement_state"
+   *   * "modules"
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. The list of fields to be updated. Possible values:
+   *
+   *   * "intended_enablement_state"
+   *   * "modules"
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Possible values:
+   *
+   *   * "intended_enablement_state"
+   *   * "modules"
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; + private boolean validateOnly_ = false; + /** + * + * + *
+   * Optional. When set to true, only validations (including IAM checks) will
+   * done for the request (service will not be updated). An OK response
+   * indicates the request is valid while an error response indicates the
+   * request is invalid. Note that a subsequent request to actually update the
+   * service could still fail because 1. the state could have changed (e.g. IAM
+   * permission lost) or
+   * 2. A failure occurred while trying to delete the module.
+   * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSecurityCenterService()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + if (validateOnly_ != false) { + output.writeBool(3, validateOnly_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSecurityCenterService()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest other = + (com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest) obj; + + if (hasSecurityCenterService() != other.hasSecurityCenterService()) return false; + if (hasSecurityCenterService()) { + if (!getSecurityCenterService().equals(other.getSecurityCenterService())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSecurityCenterService()) { + hash = (37 * hash) + SECURITY_CENTER_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getSecurityCenterService().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + 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.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + 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.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + 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.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for updating a Security Command Center service.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest) + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityCenterServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityCenterServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest.class, + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSecurityCenterServiceFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + securityCenterService_ = null; + if (securityCenterServiceBuilder_ != null) { + securityCenterServiceBuilder_.dispose(); + securityCenterServiceBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + validateOnly_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementProto + .internal_static_google_cloud_securitycentermanagement_v1_UpdateSecurityCenterServiceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest build() { + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + buildPartial() { + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest result = + new com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.securityCenterService_ = + securityCenterServiceBuilder_ == null + ? securityCenterService_ + : securityCenterServiceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest) { + return mergeFrom( + (com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest other) { + if (other + == com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + .getDefaultInstance()) return this; + if (other.hasSecurityCenterService()) { + mergeSecurityCenterService(other.getSecurityCenterService()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getSecurityCenterServiceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.securitycentermanagement.v1.SecurityCenterService + securityCenterService_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SecurityCenterService, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.Builder, + com.google.cloud.securitycentermanagement.v1.SecurityCenterServiceOrBuilder> + securityCenterServiceBuilder_; + /** + * + * + *
+     * Required. The updated service.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityCenterService field is set. + */ + public boolean hasSecurityCenterService() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The updated service.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityCenterService. + */ + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService + getSecurityCenterService() { + if (securityCenterServiceBuilder_ == null) { + return securityCenterService_ == null + ? com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .getDefaultInstance() + : securityCenterService_; + } else { + return securityCenterServiceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The updated service.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSecurityCenterService( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService value) { + if (securityCenterServiceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityCenterService_ = value; + } else { + securityCenterServiceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The updated service.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSecurityCenterService( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.Builder + builderForValue) { + if (securityCenterServiceBuilder_ == null) { + securityCenterService_ = builderForValue.build(); + } else { + securityCenterServiceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The updated service.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSecurityCenterService( + com.google.cloud.securitycentermanagement.v1.SecurityCenterService value) { + if (securityCenterServiceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && securityCenterService_ != null + && securityCenterService_ + != com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .getDefaultInstance()) { + getSecurityCenterServiceBuilder().mergeFrom(value); + } else { + securityCenterService_ = value; + } + } else { + securityCenterServiceBuilder_.mergeFrom(value); + } + if (securityCenterService_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The updated service.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSecurityCenterService() { + bitField0_ = (bitField0_ & ~0x00000001); + securityCenterService_ = null; + if (securityCenterServiceBuilder_ != null) { + securityCenterServiceBuilder_.dispose(); + securityCenterServiceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The updated service.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.securitycentermanagement.v1.SecurityCenterService.Builder + getSecurityCenterServiceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSecurityCenterServiceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The updated service.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.securitycentermanagement.v1.SecurityCenterServiceOrBuilder + getSecurityCenterServiceOrBuilder() { + if (securityCenterServiceBuilder_ != null) { + return securityCenterServiceBuilder_.getMessageOrBuilder(); + } else { + return securityCenterService_ == null + ? com.google.cloud.securitycentermanagement.v1.SecurityCenterService + .getDefaultInstance() + : securityCenterService_; + } + } + /** + * + * + *
+     * Required. The updated service.
+     * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SecurityCenterService, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.Builder, + com.google.cloud.securitycentermanagement.v1.SecurityCenterServiceOrBuilder> + getSecurityCenterServiceFieldBuilder() { + if (securityCenterServiceBuilder_ == null) { + securityCenterServiceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycentermanagement.v1.SecurityCenterService, + com.google.cloud.securitycentermanagement.v1.SecurityCenterService.Builder, + com.google.cloud.securitycentermanagement.v1.SecurityCenterServiceOrBuilder>( + getSecurityCenterService(), getParentForChildren(), isClean()); + securityCenterService_ = null; + } + return securityCenterServiceBuilder_; + } + + 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_; + /** + * + * + *
+     * Required. The list of fields to be updated. Possible values:
+     *
+     *   * "intended_enablement_state"
+     *   * "modules"
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Possible values:
+     *
+     *   * "intended_enablement_state"
+     *   * "modules"
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Possible values:
+     *
+     *   * "intended_enablement_state"
+     *   * "modules"
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Possible values:
+     *
+     *   * "intended_enablement_state"
+     *   * "modules"
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Possible values:
+     *
+     *   * "intended_enablement_state"
+     *   * "modules"
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Possible values:
+     *
+     *   * "intended_enablement_state"
+     *   * "modules"
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Possible values:
+     *
+     *   * "intended_enablement_state"
+     *   * "modules"
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Possible values:
+     *
+     *   * "intended_enablement_state"
+     *   * "modules"
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Possible values:
+     *
+     *   * "intended_enablement_state"
+     *   * "modules"
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private boolean validateOnly_; + /** + * + * + *
+     * Optional. When set to true, only validations (including IAM checks) will
+     * done for the request (service will not be updated). An OK response
+     * indicates the request is valid while an error response indicates the
+     * request is invalid. Note that a subsequent request to actually update the
+     * service could still fail because 1. the state could have changed (e.g. IAM
+     * permission lost) or
+     * 2. A failure occurred while trying to delete the module.
+     * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + * + * + *
+     * Optional. When set to true, only validations (including IAM checks) will
+     * done for the request (service will not be updated). An OK response
+     * indicates the request is valid while an error response indicates the
+     * request is invalid. Note that a subsequent request to actually update the
+     * service could still fail because 1. the state could have changed (e.g. IAM
+     * permission lost) or
+     * 2. A failure occurred while trying to delete the module.
+     * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. When set to true, only validations (including IAM checks) will
+     * done for the request (service will not be updated). An OK response
+     * indicates the request is valid while an error response indicates the
+     * request is invalid. Note that a subsequent request to actually update the
+     * service could still fail because 1. the state could have changed (e.g. IAM
+     * permission lost) or
+     * 2. A failure occurred while trying to delete the module.
+     * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + validateOnly_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest) + private static final com.google.cloud.securitycentermanagement.v1 + .UpdateSecurityCenterServiceRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest(); + } + + public static com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSecurityCenterServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityCenterServiceRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityCenterServiceRequestOrBuilder.java new file mode 100644 index 000000000000..9f27c9beac30 --- /dev/null +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityCenterServiceRequestOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycentermanagement/v1/security_center_management.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycentermanagement.v1; + +public interface UpdateSecurityCenterServiceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The updated service.
+   * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityCenterService field is set. + */ + boolean hasSecurityCenterService(); + /** + * + * + *
+   * Required. The updated service.
+   * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityCenterService. + */ + com.google.cloud.securitycentermanagement.v1.SecurityCenterService getSecurityCenterService(); + /** + * + * + *
+   * Required. The updated service.
+   * 
+ * + * + * .google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.securitycentermanagement.v1.SecurityCenterServiceOrBuilder + getSecurityCenterServiceOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Possible values:
+   *
+   *   * "intended_enablement_state"
+   *   * "modules"
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Possible values:
+   *
+   *   * "intended_enablement_state"
+   *   * "modules"
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Possible values:
+   *
+   *   * "intended_enablement_state"
+   *   * "modules"
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Optional. When set to true, only validations (including IAM checks) will
+   * done for the request (service will not be updated). An OK response
+   * indicates the request is valid while an error response indicates the
+   * request is invalid. Note that a subsequent request to actually update the
+   * service could still fail because 1. the state could have changed (e.g. IAM
+   * permission lost) or
+   * 2. A failure occurred while trying to delete the module.
+   * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); +} diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequest.java index c39c40376fc0..2c662c433024 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * Its format is: * - * * "organizations/{organization}/locations/{location}". + * * `organizations/{organization}/locations/{location}`. * * * @@ -111,7 +111,7 @@ public java.lang.String getParent() { * * Its format is: * - * * "organizations/{organization}/locations/{location}". + * * `organizations/{organization}/locations/{location}`. * * * @@ -688,7 +688,7 @@ public Builder mergeFrom( * * Its format is: * - * * "organizations/{organization}/locations/{location}". + * * `organizations/{organization}/locations/{location}`. * * * @@ -716,7 +716,7 @@ public java.lang.String getParent() { * * Its format is: * - * * "organizations/{organization}/locations/{location}". + * * `organizations/{organization}/locations/{location}`. * * * @@ -744,7 +744,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * Its format is: * - * * "organizations/{organization}/locations/{location}". + * * `organizations/{organization}/locations/{location}`. * * * @@ -771,7 +771,7 @@ public Builder setParent(java.lang.String value) { * * Its format is: * - * * "organizations/{organization}/locations/{location}". + * * `organizations/{organization}/locations/{location}`. * * * @@ -794,7 +794,7 @@ public Builder clearParent() { * * Its format is: * - * * "organizations/{organization}/locations/{location}". + * * `organizations/{organization}/locations/{location}`. * * * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequestOrBuilder.java index cde4dd53f311..2e383acbe0e0 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ValidateEventThreatDetectionCustomModuleRequestOrBuilder.java @@ -32,7 +32,7 @@ public interface ValidateEventThreatDetectionCustomModuleRequestOrBuilder * * Its format is: * - * * "organizations/{organization}/locations/{location}". + * * `organizations/{organization}/locations/{location}`. * * * @@ -50,7 +50,7 @@ public interface ValidateEventThreatDetectionCustomModuleRequestOrBuilder * * Its format is: * - * * "organizations/{organization}/locations/{location}". + * * `organizations/{organization}/locations/{location}`. * * * diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto index fa380d7984cc..bf63b1b53112 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto @@ -394,6 +394,154 @@ service SecurityCenterManagement { } }; } + + // Gets service settings for the specified Security Command Center service. + rpc GetSecurityCenterService(GetSecurityCenterServiceRequest) + returns (SecurityCenterService) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/securityCenterServices/*}" + additional_bindings { + get: "/v1/{name=folders/*/locations/*/securityCenterServices/*}" + } + additional_bindings { + get: "/v1/{name=organizations/*/locations/*/securityCenterServices/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Returns a list of all Security Command Center services for the given + // parent. + rpc ListSecurityCenterServices(ListSecurityCenterServicesRequest) + returns (ListSecurityCenterServicesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/securityCenterServices" + additional_bindings { + get: "/v1/{parent=folders/*/locations/*}/securityCenterServices" + } + additional_bindings { + get: "/v1/{parent=organizations/*/locations/*}/securityCenterServices" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a Security Command Center service using the given update mask. + rpc UpdateSecurityCenterService(UpdateSecurityCenterServiceRequest) + returns (SecurityCenterService) { + option (google.api.http) = { + patch: "/v1/{security_center_service.name=projects/*/locations/*/securityCenterServices/*}" + body: "security_center_service" + additional_bindings { + patch: "/v1/{security_center_service.name=folders/*/locations/*/securityCenterServices/*}" + body: "security_center_service" + } + additional_bindings { + patch: "/v1/{security_center_service.name=organizations/*/locations/*/securityCenterServices/*}" + body: "security_center_service" + } + }; + option (google.api.method_signature) = + "security_center_service,update_mask"; + } +} + +// Represents a particular Security Command Center service. This includes +// settings information such as top-level enablement in addition to individual +// module settings. Service settings can be configured at the organization, +// folder, or project level. Service settings at the organization or folder +// level are inherited by those in child folders and projects. +message SecurityCenterService { + option (google.api.resource) = { + type: "securitycentermanagement.googleapis.com/SecurityCenterService" + pattern: "projects/{project}/locations/{location}/securityCenterServices/{service}" + pattern: "folders/{folder}/locations/{location}/securityCenterServices/{service}" + pattern: "organizations/{organization}/locations/{location}/securityCenterServices/{service}" + plural: "securityCenterServices" + singular: "securityCenterService" + }; + + // The settings for individual modules. + message ModuleSettings { + // Optional. The intended state of enablement for the module at its level of + // the resource hierarchy. + EnablementState intended_enablement_state = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The effective enablement state for the module at its level + // of the resource hierarchy. If the intended state is set to INHERITED, the + // effective state will be inherited from the enablement state of an + // ancestor. This state may + // differ from the intended enablement state due to billing eligibility or + // onboarding status. + EnablementState effective_enablement_state = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Represents the possible intended states of enablement for a service or + // module. + enum EnablementState { + // Default value. This value is unused. + ENABLEMENT_STATE_UNSPECIFIED = 0; + + // State is inherited from the parent resource. Not a valid effective + // enablement state. + INHERITED = 1; + + // State is enabled. + ENABLED = 2; + + // State is disabled. + DISABLED = 3; + } + + // Identifier. The name of the service. + // + // Its format is: + // + // * organizations/{organization}/locations/{location}/securityCenterServices/{service} + // * folders/{folder}/locations/{location}/securityCenterServices/{service} + // * projects/{project}/locations/{location}/securityCenterServices/{service} + // + // The possible values for id {service} are: + // + // * container-threat-detection + // * event-threat-detection + // * security-health-analytics + // * vm-threat-detection + // * web-security-scanner + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The intended state of enablement for the service at its level of + // the resource hierarchy. A DISABLED state will override all module + // enablement_states to DISABLED. + EnablementState intended_enablement_state = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The effective enablement state for the service at its level of + // the resource hierarchy. If the intended state is set to INHERITED, the + // effective state will be inherited from the enablement state of an ancestor. + // This state may differ from the intended enablement state due to billing + // eligibility or onboarding status. + EnablementState effective_enablement_state = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The configurations including the state of enablement for the + // service's different modules. The absence of a module in the map implies its + // configuration is inherited from its parents. + map modules = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The time the service was last updated. This could be due to an + // explicit user update or due to a side effect of another system change such + // as billing subscription expiry. + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Additional service specific configuration. Not all services will + // utilize this field. + google.protobuf.Struct service_config = 6 + [(google.api.field_behavior) = OPTIONAL]; } // An EffectiveSecurityHealthAnalyticsCustomModule is the representation of @@ -427,13 +575,12 @@ message EffectiveSecurityHealthAnalyticsCustomModule { DISABLED = 2; } - // Identifier. The resource name of the custom module. - // Its format is - // "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}", - // or - // "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}", - // or - // "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}" + // Identifier. The full resource name of the custom module, specified in one + // of the following formats: + // + // * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}` + // * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}` + // * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. The user-specified configuration for the module. @@ -453,11 +600,12 @@ message EffectiveSecurityHealthAnalyticsCustomModule { // Request message for listing effective Security Health Analytics custom // modules. message ListEffectiveSecurityHealthAnalyticsCustomModulesRequest { - // Required. Name of parent to list effective custom modules. Its format is - // "organizations/{organization}/locations/{location}", - // "folders/{folder}/locations/{location}", + // Required. Name of parent to list effective custom modules. specified in one + // of the following formats: + // * `organizations/{organization}/locations/{location}` + // * `folders/{folder}/locations/{location}` // or - // "projects/{project}/locations/{location}" + // `projects/{project}/locations/{location}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -486,13 +634,12 @@ message ListEffectiveSecurityHealthAnalyticsCustomModulesResponse { // Message for getting a EffectiveSecurityHealthAnalyticsCustomModule message GetEffectiveSecurityHealthAnalyticsCustomModuleRequest { - // Required. The resource name of the SHA custom module. - // - // Its format is: + // Required. The full resource name of the custom module, specified in one of + // the following formats: // - // * "organizations/{organization}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}". - // * "folders/{folder}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}". - // * "projects/{project}/locations/{location}/effectiveSecurityHealthAnalyticsCustomModules/{module_id}". + // * `organizations/organization/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}` + // * `folders/folder/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}` + // * `projects/project/{location}/effectiveSecurityHealthAnalyticsCustomModules/{effective_security_health_analytics_custom_module}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -535,16 +682,11 @@ message SecurityHealthAnalyticsCustomModule { INHERITED = 3; } - // Identifier. The resource name of the custom module. - // Its format is - // "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}", - // or - // "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}", - // or - // "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}" - // - // The id {customModule} is server-generated and is not user settable. - // It will be a numeric id containing 1-20 digits. + // Identifier. The full resource name of the custom module, specified in one + // of the following formats: + // * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}` + // * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}` + // * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Optional. The display name of the Security Health Analytics custom module. @@ -660,11 +802,12 @@ message CustomConfig { // Request message for listing Security Health Analytics custom modules. message ListSecurityHealthAnalyticsCustomModulesRequest { - // Required. Name of parent to list custom modules. Its format is - // "organizations/{organization}/locations/{location}", - // "folders/{folder}/locations/{location}", - // or - // "projects/{project}/locations/{location}" + // Required. Name of parent organization, folder, or project in which to list + // custom modules, specified in one of the following formats: + // + // * `organizations/{organization}/locations/{location}` + // * `folders/{folder}/locations/{location}` + // * `projects/{project}/locations/{location}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -693,11 +836,12 @@ message ListSecurityHealthAnalyticsCustomModulesResponse { // Request message for listing descendant Security Health Analytics custom // modules. message ListDescendantSecurityHealthAnalyticsCustomModulesRequest { - // Required. Name of parent to list custom modules. Its format is - // "organizations/{organization}/locations/{location}", - // "folders/{folder}/locations/{location}", - // or - // "projects/{project}/locations/{location}" + // Required. Name of the parent organization, folder, or project in which to + // list custom modules, specified in one of the following formats: + // + // * `organizations/{organization}/locations/{location}` + // * `folders/{folder}/locations/{location}` + // * `projects/{project}/locations/{location}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -737,11 +881,12 @@ message GetSecurityHealthAnalyticsCustomModuleRequest { // Message for creating a SecurityHealthAnalyticsCustomModule message CreateSecurityHealthAnalyticsCustomModuleRequest { - // Required. Name of the parent for the module. Its format is - // "organizations/{organization}/locations/{location}", - // "folders/{folder}/locations/{location}", - // or - // "projects/{project}/locations/{location}" + // Required. Name of the parent organization, folder, or project of the + // module, specified in one of the following formats: + // + // * `organizations/{organization}/locations/{location}` + // * `folders/{folder}/locations/{location}` + // * `projects/{project}/locations/{location}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -793,9 +938,9 @@ message DeleteSecurityHealthAnalyticsCustomModuleRequest { // // Its format is: // - // * "organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". - // * "folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". - // * "projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}". + // * `organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. + // * `folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. + // * `projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{security_health_analytics_custom_module}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -963,16 +1108,16 @@ message SimulatedFinding { // Identifier. The [relative resource // name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) // of the finding. Example: - // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", - // "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", - // "projects/{project_id}/sources/{source_id}/findings/{finding_id}". + // `organizations/{organization_id}/sources/{source_id}/findings/{finding_id}`, + // `folders/{folder_id}/sources/{source_id}/findings/{finding_id}`, + // `projects/{project_id}/sources/{source_id}/findings/{finding_id}`. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // The relative resource name of the source the finding belongs to. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // This field is immutable after creation time. // For example: - // "organizations/{organization_id}/sources/{source_id}" + // `organizations/{organization_id}/sources/{source_id}` string parent = 2; // For findings on Google Cloud resources, the full resource @@ -1069,9 +1214,9 @@ message EffectiveEventThreatDetectionCustomModule { // // Its format is: // - // * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - // * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - // * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + // * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + // * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + // * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Config for the effective module. @@ -1096,10 +1241,10 @@ message EffectiveEventThreatDetectionCustomModule { // modules. message ListEffectiveEventThreatDetectionCustomModulesRequest { // Required. Name of parent to list effective custom modules. Its format is - // "organizations/{organization}/locations/{location}", - // "folders/{folder}/locations/{location}", + // `organizations/{organization}/locations/{location}`, + // `folders/{folder}/locations/{location}`, // or - // "projects/{project}/locations/{location}" + // `projects/{project}/locations/{location}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1132,9 +1277,9 @@ message GetEffectiveEventThreatDetectionCustomModuleRequest { // // Its format is: // - // * "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - // * "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". - // * "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}". + // * `organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + // * `folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. + // * `projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1179,9 +1324,9 @@ message EventThreatDetectionCustomModule { // // Its format is: // - // * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - // * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - // * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + // * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + // * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + // * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Optional. Config for the module. For the resident module, its config value @@ -1224,10 +1369,10 @@ message EventThreatDetectionCustomModule { // Request message for listing Event Threat Detection custom modules. message ListEventThreatDetectionCustomModulesRequest { // Required. Name of parent to list custom modules. Its format is - // "organizations/{organization}/locations/{location}", - // "folders/{folder}/locations/{location}", + // `organizations/{organization}/locations/{location}`, + // `folders/{folder}/locations/{location}`, // or - // "projects/{project}/locations/{location}" + // `projects/{project}/locations/{location}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1264,10 +1409,10 @@ message ListEventThreatDetectionCustomModulesResponse { // modules. message ListDescendantEventThreatDetectionCustomModulesRequest { // Required. Name of parent to list custom modules. Its format is - // "organizations/{organization}/locations/{location}", - // "folders/{folder}/locations/{location}", + // `organizations/{organization}/locations/{location}`, + // `folders/{folder}/locations/{location}`, // or - // "projects/{project}/locations/{location}" + // `projects/{project}/locations/{location}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1301,9 +1446,9 @@ message GetEventThreatDetectionCustomModuleRequest { // // Its format is: // - // * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - // * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - // * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + // * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + // * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + // * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1315,10 +1460,10 @@ message GetEventThreatDetectionCustomModuleRequest { // Message for creating a EventThreatDetectionCustomModule message CreateEventThreatDetectionCustomModuleRequest { // Required. Name of parent for the module. Its format is - // "organizations/{organization}/locations/{location}", - // "folders/{folder}/locations/{location}", + // `organizations/{organization}/locations/{location}`, + // `folders/{folder}/locations/{location}`, // or - // "projects/{project}/locations/{location}" + // `projects/{project}/locations/{location}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1372,9 +1517,9 @@ message DeleteEventThreatDetectionCustomModuleRequest { // // Its format is: // - // * "organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - // * "folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". - // * "projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}". + // * `organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + // * `folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. + // * `projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{event_threat_detection_custom_module}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1398,7 +1543,7 @@ message ValidateEventThreatDetectionCustomModuleRequest { // // Its format is: // - // * "organizations/{organization}/locations/{location}". + // * `organizations/{organization}/locations/{location}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1450,3 +1595,84 @@ message ValidateEventThreatDetectionCustomModuleResponse { // were no errors. repeated CustomModuleValidationError errors = 2; } + +// Request message for getting a Security Command Center service. +message GetSecurityCenterServiceRequest { + // Required. The Security Command Center service to retrieve. + // + // Formats: + // + // * organizations/{organization}/locations/{location}/securityCenterServices/{service} + // * folders/{folder}/locations/{location}/securityCenterServices/{service} + // * projects/{project}/locations/{location}/securityCenterServices/{service} + // + // The possible values for id {service} are: + // + // * container-threat-detection + // * event-threat-detection + // * security-health-analytics + // * vm-threat-detection + // * web-security-scanner + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securitycentermanagement.googleapis.com/SecurityCenterService" + } + ]; +} + +// Request message for listing Security Command Center services. +message ListSecurityCenterServicesRequest { + // Required. The name of the parent to list Security Command Center services. + // + // Formats: + // + // * organizations/{organization}/locations/{location} + // * folders/{folder}/locations/{location} + // * projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "securitycentermanagement.googleapis.com/SecurityCenterService" + } + ]; + + // Optional. The maximum number of results to return in a single response. + // Default is 10, minimum is 1, maximum is 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The value returned by the last call indicating a continuation. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for listing Security Command Center services. +message ListSecurityCenterServicesResponse { + // The list of services. + repeated SecurityCenterService security_center_services = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} + +// Request message for updating a Security Command Center service. +message UpdateSecurityCenterServiceRequest { + // Required. The updated service. + SecurityCenterService security_center_service = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to be updated. Possible values: + // + // * "intended_enablement_state" + // * "modules" + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. When set to true, only validations (including IAM checks) will + // done for the request (service will not be updated). An OK response + // indicates the request is valid while an error response indicates the + // request is invalid. Note that a subsequent request to actually update the + // service could still fail because 1. the state could have changed (e.g. IAM + // permission lost) or + // 2. A failure occurred while trying to delete the module. + bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/AsyncGetSecurityCenterService.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/AsyncGetSecurityCenterService.java new file mode 100644 index 000000000000..3a8c0e67f4db --- /dev/null +++ b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/AsyncGetSecurityCenterService.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycentermanagement.v1.samples; + +// [START securitycentermanagement_v1_generated_SecurityCenterManagement_GetSecurityCenterService_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterService; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterServiceName; + +public class AsyncGetSecurityCenterService { + + public static void main(String[] args) throws Exception { + asyncGetSecurityCenterService(); + } + + public static void asyncGetSecurityCenterService() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecurityCenterManagementClient securityCenterManagementClient = + SecurityCenterManagementClient.create()) { + GetSecurityCenterServiceRequest request = + GetSecurityCenterServiceRequest.newBuilder() + .setName( + SecurityCenterServiceName.ofProjectLocationServiceName( + "[PROJECT]", "[LOCATION]", "[SERVICE]") + .toString()) + .build(); + ApiFuture future = + securityCenterManagementClient.getSecurityCenterServiceCallable().futureCall(request); + // Do something. + SecurityCenterService response = future.get(); + } + } +} +// [END securitycentermanagement_v1_generated_SecurityCenterManagement_GetSecurityCenterService_async] diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/SyncGetSecurityCenterService.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/SyncGetSecurityCenterService.java new file mode 100644 index 000000000000..e2feb13a98b7 --- /dev/null +++ b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/SyncGetSecurityCenterService.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycentermanagement.v1.samples; + +// [START securitycentermanagement_v1_generated_SecurityCenterManagement_GetSecurityCenterService_sync] +import com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterService; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterServiceName; + +public class SyncGetSecurityCenterService { + + public static void main(String[] args) throws Exception { + syncGetSecurityCenterService(); + } + + public static void syncGetSecurityCenterService() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecurityCenterManagementClient securityCenterManagementClient = + SecurityCenterManagementClient.create()) { + GetSecurityCenterServiceRequest request = + GetSecurityCenterServiceRequest.newBuilder() + .setName( + SecurityCenterServiceName.ofProjectLocationServiceName( + "[PROJECT]", "[LOCATION]", "[SERVICE]") + .toString()) + .build(); + SecurityCenterService response = + securityCenterManagementClient.getSecurityCenterService(request); + } + } +} +// [END securitycentermanagement_v1_generated_SecurityCenterManagement_GetSecurityCenterService_sync] diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/SyncGetSecurityCenterServiceSecuritycenterservicename.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/SyncGetSecurityCenterServiceSecuritycenterservicename.java new file mode 100644 index 000000000000..406a9946aa4a --- /dev/null +++ b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/SyncGetSecurityCenterServiceSecuritycenterservicename.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycentermanagement.v1.samples; + +// [START securitycentermanagement_v1_generated_SecurityCenterManagement_GetSecurityCenterService_Securitycenterservicename_sync] +import com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterService; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterServiceName; + +public class SyncGetSecurityCenterServiceSecuritycenterservicename { + + public static void main(String[] args) throws Exception { + syncGetSecurityCenterServiceSecuritycenterservicename(); + } + + public static void syncGetSecurityCenterServiceSecuritycenterservicename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecurityCenterManagementClient securityCenterManagementClient = + SecurityCenterManagementClient.create()) { + SecurityCenterServiceName name = + SecurityCenterServiceName.ofProjectLocationServiceName( + "[PROJECT]", "[LOCATION]", "[SERVICE]"); + SecurityCenterService response = + securityCenterManagementClient.getSecurityCenterService(name); + } + } +} +// [END securitycentermanagement_v1_generated_SecurityCenterManagement_GetSecurityCenterService_Securitycenterservicename_sync] diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/SyncGetSecurityCenterServiceString.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/SyncGetSecurityCenterServiceString.java new file mode 100644 index 000000000000..ee30b0bca0cd --- /dev/null +++ b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/SyncGetSecurityCenterServiceString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycentermanagement.v1.samples; + +// [START securitycentermanagement_v1_generated_SecurityCenterManagement_GetSecurityCenterService_String_sync] +import com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterService; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterServiceName; + +public class SyncGetSecurityCenterServiceString { + + public static void main(String[] args) throws Exception { + syncGetSecurityCenterServiceString(); + } + + public static void syncGetSecurityCenterServiceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecurityCenterManagementClient securityCenterManagementClient = + SecurityCenterManagementClient.create()) { + String name = + SecurityCenterServiceName.ofProjectLocationServiceName( + "[PROJECT]", "[LOCATION]", "[SERVICE]") + .toString(); + SecurityCenterService response = + securityCenterManagementClient.getSecurityCenterService(name); + } + } +} +// [END securitycentermanagement_v1_generated_SecurityCenterManagement_GetSecurityCenterService_String_sync] diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/AsyncListSecurityCenterServices.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/AsyncListSecurityCenterServices.java new file mode 100644 index 000000000000..7cbaf01a402a --- /dev/null +++ b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/AsyncListSecurityCenterServices.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycentermanagement.v1.samples; + +// [START securitycentermanagement_v1_generated_SecurityCenterManagement_ListSecurityCenterServices_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest; +import com.google.cloud.securitycentermanagement.v1.LocationName; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterService; + +public class AsyncListSecurityCenterServices { + + public static void main(String[] args) throws Exception { + asyncListSecurityCenterServices(); + } + + public static void asyncListSecurityCenterServices() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecurityCenterManagementClient securityCenterManagementClient = + SecurityCenterManagementClient.create()) { + ListSecurityCenterServicesRequest request = + ListSecurityCenterServicesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + securityCenterManagementClient + .listSecurityCenterServicesPagedCallable() + .futureCall(request); + // Do something. + for (SecurityCenterService element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycentermanagement_v1_generated_SecurityCenterManagement_ListSecurityCenterServices_async] diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/AsyncListSecurityCenterServicesPaged.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/AsyncListSecurityCenterServicesPaged.java new file mode 100644 index 000000000000..a5381c6360a9 --- /dev/null +++ b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/AsyncListSecurityCenterServicesPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycentermanagement.v1.samples; + +// [START securitycentermanagement_v1_generated_SecurityCenterManagement_ListSecurityCenterServices_Paged_async] +import com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest; +import com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse; +import com.google.cloud.securitycentermanagement.v1.LocationName; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterService; +import com.google.common.base.Strings; + +public class AsyncListSecurityCenterServicesPaged { + + public static void main(String[] args) throws Exception { + asyncListSecurityCenterServicesPaged(); + } + + public static void asyncListSecurityCenterServicesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecurityCenterManagementClient securityCenterManagementClient = + SecurityCenterManagementClient.create()) { + ListSecurityCenterServicesRequest request = + ListSecurityCenterServicesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListSecurityCenterServicesResponse response = + securityCenterManagementClient.listSecurityCenterServicesCallable().call(request); + for (SecurityCenterService element : response.getSecurityCenterServicesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END securitycentermanagement_v1_generated_SecurityCenterManagement_ListSecurityCenterServices_Paged_async] diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServices.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServices.java new file mode 100644 index 000000000000..bcf8a409066d --- /dev/null +++ b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServices.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycentermanagement.v1.samples; + +// [START securitycentermanagement_v1_generated_SecurityCenterManagement_ListSecurityCenterServices_sync] +import com.google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesRequest; +import com.google.cloud.securitycentermanagement.v1.LocationName; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterService; + +public class SyncListSecurityCenterServices { + + public static void main(String[] args) throws Exception { + syncListSecurityCenterServices(); + } + + public static void syncListSecurityCenterServices() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecurityCenterManagementClient securityCenterManagementClient = + SecurityCenterManagementClient.create()) { + ListSecurityCenterServicesRequest request = + ListSecurityCenterServicesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (SecurityCenterService element : + securityCenterManagementClient.listSecurityCenterServices(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycentermanagement_v1_generated_SecurityCenterManagement_ListSecurityCenterServices_sync] diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServicesFolderlocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServicesFolderlocationname.java new file mode 100644 index 000000000000..088e76c2eb9c --- /dev/null +++ b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServicesFolderlocationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycentermanagement.v1.samples; + +// [START securitycentermanagement_v1_generated_SecurityCenterManagement_ListSecurityCenterServices_Folderlocationname_sync] +import com.google.cloud.securitycentermanagement.v1.FolderLocationName; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterService; + +public class SyncListSecurityCenterServicesFolderlocationname { + + public static void main(String[] args) throws Exception { + syncListSecurityCenterServicesFolderlocationname(); + } + + public static void syncListSecurityCenterServicesFolderlocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecurityCenterManagementClient securityCenterManagementClient = + SecurityCenterManagementClient.create()) { + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + for (SecurityCenterService element : + securityCenterManagementClient.listSecurityCenterServices(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycentermanagement_v1_generated_SecurityCenterManagement_ListSecurityCenterServices_Folderlocationname_sync] diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServicesLocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServicesLocationname.java new file mode 100644 index 000000000000..c080554c42cf --- /dev/null +++ b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServicesLocationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycentermanagement.v1.samples; + +// [START securitycentermanagement_v1_generated_SecurityCenterManagement_ListSecurityCenterServices_Locationname_sync] +import com.google.cloud.securitycentermanagement.v1.LocationName; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterService; + +public class SyncListSecurityCenterServicesLocationname { + + public static void main(String[] args) throws Exception { + syncListSecurityCenterServicesLocationname(); + } + + public static void syncListSecurityCenterServicesLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecurityCenterManagementClient securityCenterManagementClient = + SecurityCenterManagementClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (SecurityCenterService element : + securityCenterManagementClient.listSecurityCenterServices(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycentermanagement_v1_generated_SecurityCenterManagement_ListSecurityCenterServices_Locationname_sync] diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServicesOrganizationlocationname.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServicesOrganizationlocationname.java new file mode 100644 index 000000000000..bb7e81802fcf --- /dev/null +++ b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServicesOrganizationlocationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycentermanagement.v1.samples; + +// [START securitycentermanagement_v1_generated_SecurityCenterManagement_ListSecurityCenterServices_Organizationlocationname_sync] +import com.google.cloud.securitycentermanagement.v1.OrganizationLocationName; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterService; + +public class SyncListSecurityCenterServicesOrganizationlocationname { + + public static void main(String[] args) throws Exception { + syncListSecurityCenterServicesOrganizationlocationname(); + } + + public static void syncListSecurityCenterServicesOrganizationlocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecurityCenterManagementClient securityCenterManagementClient = + SecurityCenterManagementClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + for (SecurityCenterService element : + securityCenterManagementClient.listSecurityCenterServices(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycentermanagement_v1_generated_SecurityCenterManagement_ListSecurityCenterServices_Organizationlocationname_sync] diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServicesString.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServicesString.java new file mode 100644 index 000000000000..016e2379079b --- /dev/null +++ b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServicesString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycentermanagement.v1.samples; + +// [START securitycentermanagement_v1_generated_SecurityCenterManagement_ListSecurityCenterServices_String_sync] +import com.google.cloud.securitycentermanagement.v1.LocationName; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterService; + +public class SyncListSecurityCenterServicesString { + + public static void main(String[] args) throws Exception { + syncListSecurityCenterServicesString(); + } + + public static void syncListSecurityCenterServicesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecurityCenterManagementClient securityCenterManagementClient = + SecurityCenterManagementClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (SecurityCenterService element : + securityCenterManagementClient.listSecurityCenterServices(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycentermanagement_v1_generated_SecurityCenterManagement_ListSecurityCenterServices_String_sync] diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecuritycenterservice/AsyncUpdateSecurityCenterService.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecuritycenterservice/AsyncUpdateSecurityCenterService.java new file mode 100644 index 000000000000..ae2e192c4436 --- /dev/null +++ b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecuritycenterservice/AsyncUpdateSecurityCenterService.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycentermanagement.v1.samples; + +// [START securitycentermanagement_v1_generated_SecurityCenterManagement_UpdateSecurityCenterService_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterService; +import com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSecurityCenterService { + + public static void main(String[] args) throws Exception { + asyncUpdateSecurityCenterService(); + } + + public static void asyncUpdateSecurityCenterService() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecurityCenterManagementClient securityCenterManagementClient = + SecurityCenterManagementClient.create()) { + UpdateSecurityCenterServiceRequest request = + UpdateSecurityCenterServiceRequest.newBuilder() + .setSecurityCenterService(SecurityCenterService.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setValidateOnly(true) + .build(); + ApiFuture future = + securityCenterManagementClient.updateSecurityCenterServiceCallable().futureCall(request); + // Do something. + SecurityCenterService response = future.get(); + } + } +} +// [END securitycentermanagement_v1_generated_SecurityCenterManagement_UpdateSecurityCenterService_async] diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecuritycenterservice/SyncUpdateSecurityCenterService.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecuritycenterservice/SyncUpdateSecurityCenterService.java new file mode 100644 index 000000000000..425155746d39 --- /dev/null +++ b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecuritycenterservice/SyncUpdateSecurityCenterService.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycentermanagement.v1.samples; + +// [START securitycentermanagement_v1_generated_SecurityCenterManagement_UpdateSecurityCenterService_sync] +import com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterService; +import com.google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSecurityCenterService { + + public static void main(String[] args) throws Exception { + syncUpdateSecurityCenterService(); + } + + public static void syncUpdateSecurityCenterService() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecurityCenterManagementClient securityCenterManagementClient = + SecurityCenterManagementClient.create()) { + UpdateSecurityCenterServiceRequest request = + UpdateSecurityCenterServiceRequest.newBuilder() + .setSecurityCenterService(SecurityCenterService.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setValidateOnly(true) + .build(); + SecurityCenterService response = + securityCenterManagementClient.updateSecurityCenterService(request); + } + } +} +// [END securitycentermanagement_v1_generated_SecurityCenterManagement_UpdateSecurityCenterService_sync] diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecuritycenterservice/SyncUpdateSecurityCenterServiceSecuritycenterserviceFieldmask.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecuritycenterservice/SyncUpdateSecurityCenterServiceSecuritycenterserviceFieldmask.java new file mode 100644 index 000000000000..c984677e94d1 --- /dev/null +++ b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/updatesecuritycenterservice/SyncUpdateSecurityCenterServiceSecuritycenterserviceFieldmask.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycentermanagement.v1.samples; + +// [START securitycentermanagement_v1_generated_SecurityCenterManagement_UpdateSecurityCenterService_SecuritycenterserviceFieldmask_sync] +import com.google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient; +import com.google.cloud.securitycentermanagement.v1.SecurityCenterService; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSecurityCenterServiceSecuritycenterserviceFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateSecurityCenterServiceSecuritycenterserviceFieldmask(); + } + + public static void syncUpdateSecurityCenterServiceSecuritycenterserviceFieldmask() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecurityCenterManagementClient securityCenterManagementClient = + SecurityCenterManagementClient.create()) { + SecurityCenterService securityCenterService = SecurityCenterService.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + SecurityCenterService response = + securityCenterManagementClient.updateSecurityCenterService( + securityCenterService, updateMask); + } + } +} +// [END securitycentermanagement_v1_generated_SecurityCenterManagement_UpdateSecurityCenterService_SecuritycenterserviceFieldmask_sync] diff --git a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/src/main/java/com/google/shopping/merchant/conversions/v1beta/MerchantCenterDestination.java b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/src/main/java/com/google/shopping/merchant/conversions/v1beta/MerchantCenterDestination.java index 799600ee1ad6..3795463a3aee 100644 --- a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/src/main/java/com/google/shopping/merchant/conversions/v1beta/MerchantCenterDestination.java +++ b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/src/main/java/com/google/shopping/merchant/conversions/v1beta/MerchantCenterDestination.java @@ -24,7 +24,7 @@ * *
  * "Merchant Center Destination" sources can be used to send conversion events
- * from a website using a Google tag directly to a Merchant Center account
+ * from an online store using a Google tag directly to a Merchant Center account
  * where the source is created.
  * 
* @@ -490,7 +490,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * "Merchant Center Destination" sources can be used to send conversion events
-   * from a website using a Google tag directly to a Merchant Center account
+   * from an online store using a Google tag directly to a Merchant Center account
    * where the source is created.
    * 
* diff --git a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/src/main/proto/google/shopping/merchant/conversions/v1beta/conversionsources.proto b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/src/main/proto/google/shopping/merchant/conversions/v1beta/conversionsources.proto index 0bb1eda38130..16121667e5bf 100644 --- a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/src/main/proto/google/shopping/merchant/conversions/v1beta/conversionsources.proto +++ b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/src/main/proto/google/shopping/merchant/conversions/v1beta/conversionsources.proto @@ -255,7 +255,7 @@ message GoogleAnalyticsLink { } // "Merchant Center Destination" sources can be used to send conversion events -// from a website using a Google tag directly to a Merchant Center account +// from an online store using a Google tag directly to a Merchant Center account // where the source is created. message MerchantCenterDestination { // Output only. Merchant Center Destination ID. diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventory.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventory.java index d7cfe7dc0409..e49fd81b66d9 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventory.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventory.java @@ -27,7 +27,7 @@ * for a specific product at the store specified by * [`storeCode`][google.shopping.merchant.inventories.v1beta.LocalInventory.store_code]. * For a list of all accepted attribute values, see the [local product inventory - * feed specification](https://support.google.com/merchants/answer/3061342). + * data specification](https://support.google.com/merchants/answer/3061342). * * * Protobuf type {@code google.shopping.merchant.inventories.v1beta.LocalInventory} @@ -158,7 +158,7 @@ public long getAccount() { *
    * Required. Immutable. Store code (the store ID from your Business Profile)
    * of the physical store the product is sold in. See the [Local product
-   * inventory feed
+   * inventory data
    * specification](https://support.google.com/merchants/answer/3061342) for
    * more information.
    * 
@@ -187,7 +187,7 @@ public java.lang.String getStoreCode() { *
    * Required. Immutable. Store code (the store ID from your Business Profile)
    * of the physical store the product is sold in. See the [Local product
-   * inventory feed
+   * inventory data
    * specification](https://support.google.com/merchants/answer/3061342) for
    * more information.
    * 
@@ -371,7 +371,7 @@ public com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() { * *
    * Availability of the product at this store.
-   * For accepted attribute values, see the [local product inventory feed
+   * For accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342)
    * 
* @@ -388,7 +388,7 @@ public boolean hasAvailability() { * *
    * Availability of the product at this store.
-   * For accepted attribute values, see the [local product inventory feed
+   * For accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342)
    * 
* @@ -413,7 +413,7 @@ public java.lang.String getAvailability() { * *
    * Availability of the product at this store.
-   * For accepted attribute values, see the [local product inventory feed
+   * For accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342)
    * 
* @@ -480,7 +480,7 @@ public long getQuantity() { * Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with * `pickupSla`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -499,7 +499,7 @@ public boolean hasPickupMethod() { * Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with * `pickupSla`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -526,7 +526,7 @@ public java.lang.String getPickupMethod() { * Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with * `pickupSla`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -558,7 +558,7 @@ public com.google.protobuf.ByteString getPickupMethodBytes() { * Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with * `pickupMethod`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -577,7 +577,7 @@ public boolean hasPickupSla() { * Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with * `pickupMethod`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -604,7 +604,7 @@ public java.lang.String getPickupSla() { * Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with * `pickupMethod`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -700,7 +700,7 @@ public com.google.protobuf.ByteString getInstoreProductLocationBytes() { * *
    * A list of custom (merchant-provided) attributes. You can also use
-   * `CustomAttribute` to submit any attribute of the feed specification in its
+   * `CustomAttribute` to submit any attribute of the data specification in its
    * generic form.
    * 
* @@ -715,7 +715,7 @@ public java.util.List getCustomAttribu * *
    * A list of custom (merchant-provided) attributes. You can also use
-   * `CustomAttribute` to submit any attribute of the feed specification in its
+   * `CustomAttribute` to submit any attribute of the data specification in its
    * generic form.
    * 
* @@ -731,7 +731,7 @@ public java.util.List getCustomAttribu * *
    * A list of custom (merchant-provided) attributes. You can also use
-   * `CustomAttribute` to submit any attribute of the feed specification in its
+   * `CustomAttribute` to submit any attribute of the data specification in its
    * generic form.
    * 
* @@ -746,7 +746,7 @@ public int getCustomAttributesCount() { * *
    * A list of custom (merchant-provided) attributes. You can also use
-   * `CustomAttribute` to submit any attribute of the feed specification in its
+   * `CustomAttribute` to submit any attribute of the data specification in its
    * generic form.
    * 
* @@ -761,7 +761,7 @@ public com.google.shopping.type.CustomAttribute getCustomAttributes(int index) { * *
    * A list of custom (merchant-provided) attributes. You can also use
-   * `CustomAttribute` to submit any attribute of the feed specification in its
+   * `CustomAttribute` to submit any attribute of the data specification in its
    * generic form.
    * 
* @@ -1083,7 +1083,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * for a specific product at the store specified by * [`storeCode`][google.shopping.merchant.inventories.v1beta.LocalInventory.store_code]. * For a list of all accepted attribute values, see the [local product inventory - * feed specification](https://support.google.com/merchants/answer/3061342). + * data specification](https://support.google.com/merchants/answer/3061342). * * * Protobuf type {@code google.shopping.merchant.inventories.v1beta.LocalInventory} @@ -1683,7 +1683,7 @@ public Builder clearAccount() { *
      * Required. Immutable. Store code (the store ID from your Business Profile)
      * of the physical store the product is sold in. See the [Local product
-     * inventory feed
+     * inventory data
      * specification](https://support.google.com/merchants/answer/3061342) for
      * more information.
      * 
@@ -1711,7 +1711,7 @@ public java.lang.String getStoreCode() { *
      * Required. Immutable. Store code (the store ID from your Business Profile)
      * of the physical store the product is sold in. See the [Local product
-     * inventory feed
+     * inventory data
      * specification](https://support.google.com/merchants/answer/3061342) for
      * more information.
      * 
@@ -1739,7 +1739,7 @@ public com.google.protobuf.ByteString getStoreCodeBytes() { *
      * Required. Immutable. Store code (the store ID from your Business Profile)
      * of the physical store the product is sold in. See the [Local product
-     * inventory feed
+     * inventory data
      * specification](https://support.google.com/merchants/answer/3061342) for
      * more information.
      * 
@@ -1766,7 +1766,7 @@ public Builder setStoreCode(java.lang.String value) { *
      * Required. Immutable. Store code (the store ID from your Business Profile)
      * of the physical store the product is sold in. See the [Local product
-     * inventory feed
+     * inventory data
      * specification](https://support.google.com/merchants/answer/3061342) for
      * more information.
      * 
@@ -1789,7 +1789,7 @@ public Builder clearStoreCode() { *
      * Required. Immutable. Store code (the store ID from your Business Profile)
      * of the physical store the product is sold in. See the [Local product
-     * inventory feed
+     * inventory data
      * specification](https://support.google.com/merchants/answer/3061342) for
      * more information.
      * 
@@ -2396,7 +2396,7 @@ public com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() { * *
      * Availability of the product at this store.
-     * For accepted attribute values, see the [local product inventory feed
+     * For accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342)
      * 
* @@ -2412,7 +2412,7 @@ public boolean hasAvailability() { * *
      * Availability of the product at this store.
-     * For accepted attribute values, see the [local product inventory feed
+     * For accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342)
      * 
* @@ -2436,7 +2436,7 @@ public java.lang.String getAvailability() { * *
      * Availability of the product at this store.
-     * For accepted attribute values, see the [local product inventory feed
+     * For accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342)
      * 
* @@ -2460,7 +2460,7 @@ public com.google.protobuf.ByteString getAvailabilityBytes() { * *
      * Availability of the product at this store.
-     * For accepted attribute values, see the [local product inventory feed
+     * For accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342)
      * 
* @@ -2483,7 +2483,7 @@ public Builder setAvailability(java.lang.String value) { * *
      * Availability of the product at this store.
-     * For accepted attribute values, see the [local product inventory feed
+     * For accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342)
      * 
* @@ -2502,7 +2502,7 @@ public Builder clearAvailability() { * *
      * Availability of the product at this store.
-     * For accepted attribute values, see the [local product inventory feed
+     * For accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342)
      * 
* @@ -2602,7 +2602,7 @@ public Builder clearQuantity() { * Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with * `pickupSla`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -2620,7 +2620,7 @@ public boolean hasPickupMethod() { * Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with * `pickupSla`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -2646,7 +2646,7 @@ public java.lang.String getPickupMethod() { * Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with * `pickupSla`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -2672,7 +2672,7 @@ public com.google.protobuf.ByteString getPickupMethodBytes() { * Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with * `pickupSla`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -2697,7 +2697,7 @@ public Builder setPickupMethod(java.lang.String value) { * Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with * `pickupSla`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -2718,7 +2718,7 @@ public Builder clearPickupMethod() { * Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with * `pickupSla`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -2746,7 +2746,7 @@ public Builder setPickupMethodBytes(com.google.protobuf.ByteString value) { * Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with * `pickupMethod`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -2764,7 +2764,7 @@ public boolean hasPickupSla() { * Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with * `pickupMethod`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -2790,7 +2790,7 @@ public java.lang.String getPickupSla() { * Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with * `pickupMethod`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -2816,7 +2816,7 @@ public com.google.protobuf.ByteString getPickupSlaBytes() { * Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with * `pickupMethod`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -2841,7 +2841,7 @@ public Builder setPickupSla(java.lang.String value) { * Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with * `pickupMethod`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -2862,7 +2862,7 @@ public Builder clearPickupSla() { * Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with * `pickupMethod`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -3024,7 +3024,7 @@ private void ensureCustomAttributesIsMutable() { * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -3042,7 +3042,7 @@ public java.util.List getCustomAttribu * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -3060,7 +3060,7 @@ public int getCustomAttributesCount() { * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -3078,7 +3078,7 @@ public com.google.shopping.type.CustomAttribute getCustomAttributes(int index) { * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -3102,7 +3102,7 @@ public Builder setCustomAttributes(int index, com.google.shopping.type.CustomAtt * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -3124,7 +3124,7 @@ public Builder setCustomAttributes( * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -3148,7 +3148,7 @@ public Builder addCustomAttributes(com.google.shopping.type.CustomAttribute valu * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -3172,7 +3172,7 @@ public Builder addCustomAttributes(int index, com.google.shopping.type.CustomAtt * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -3194,7 +3194,7 @@ public Builder addCustomAttributes( * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -3216,7 +3216,7 @@ public Builder addCustomAttributes( * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -3238,7 +3238,7 @@ public Builder addAllCustomAttributes( * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -3259,7 +3259,7 @@ public Builder clearCustomAttributes() { * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -3280,7 +3280,7 @@ public Builder removeCustomAttributes(int index) { * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -3294,7 +3294,7 @@ public com.google.shopping.type.CustomAttribute.Builder getCustomAttributesBuild * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -3313,7 +3313,7 @@ public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBu * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -3332,7 +3332,7 @@ public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBu * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -3347,7 +3347,7 @@ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuild * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -3362,7 +3362,7 @@ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuild * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryOrBuilder.java index 509b0b1e6981..dfdefd18c76b 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/LocalInventoryOrBuilder.java @@ -73,7 +73,7 @@ public interface LocalInventoryOrBuilder *
    * Required. Immutable. Store code (the store ID from your Business Profile)
    * of the physical store the product is sold in. See the [Local product
-   * inventory feed
+   * inventory data
    * specification](https://support.google.com/merchants/answer/3061342) for
    * more information.
    * 
@@ -91,7 +91,7 @@ public interface LocalInventoryOrBuilder *
    * Required. Immutable. Store code (the store ID from your Business Profile)
    * of the physical store the product is sold in. See the [Local product
-   * inventory feed
+   * inventory data
    * specification](https://support.google.com/merchants/answer/3061342) for
    * more information.
    * 
@@ -223,7 +223,7 @@ public interface LocalInventoryOrBuilder * *
    * Availability of the product at this store.
-   * For accepted attribute values, see the [local product inventory feed
+   * For accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342)
    * 
* @@ -237,7 +237,7 @@ public interface LocalInventoryOrBuilder * *
    * Availability of the product at this store.
-   * For accepted attribute values, see the [local product inventory feed
+   * For accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342)
    * 
* @@ -251,7 +251,7 @@ public interface LocalInventoryOrBuilder * *
    * Availability of the product at this store.
-   * For accepted attribute values, see the [local product inventory feed
+   * For accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342)
    * 
* @@ -295,7 +295,7 @@ public interface LocalInventoryOrBuilder * Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with * `pickupSla`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -311,7 +311,7 @@ public interface LocalInventoryOrBuilder * Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with * `pickupSla`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -327,7 +327,7 @@ public interface LocalInventoryOrBuilder * Supported pickup method for this product. Unless the value is `"not * supported"`, this field must be submitted together with * `pickupSla`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -344,7 +344,7 @@ public interface LocalInventoryOrBuilder * Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with * `pickupMethod`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -360,7 +360,7 @@ public interface LocalInventoryOrBuilder * Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with * `pickupMethod`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -376,7 +376,7 @@ public interface LocalInventoryOrBuilder * Relative time period from the order date for an order for this product, * from this store, to be ready for pickup. Must be submitted with * `pickupMethod`. - * For accepted attribute values, see the [local product inventory feed + * For accepted attribute values, see the [local product inventory data * specification](https://support.google.com/merchants/answer/3061342) * * @@ -428,7 +428,7 @@ public interface LocalInventoryOrBuilder * *
    * A list of custom (merchant-provided) attributes. You can also use
-   * `CustomAttribute` to submit any attribute of the feed specification in its
+   * `CustomAttribute` to submit any attribute of the data specification in its
    * generic form.
    * 
* @@ -440,7 +440,7 @@ public interface LocalInventoryOrBuilder * *
    * A list of custom (merchant-provided) attributes. You can also use
-   * `CustomAttribute` to submit any attribute of the feed specification in its
+   * `CustomAttribute` to submit any attribute of the data specification in its
    * generic form.
    * 
* @@ -452,7 +452,7 @@ public interface LocalInventoryOrBuilder * *
    * A list of custom (merchant-provided) attributes. You can also use
-   * `CustomAttribute` to submit any attribute of the feed specification in its
+   * `CustomAttribute` to submit any attribute of the data specification in its
    * generic form.
    * 
* @@ -464,7 +464,7 @@ public interface LocalInventoryOrBuilder * *
    * A list of custom (merchant-provided) attributes. You can also use
-   * `CustomAttribute` to submit any attribute of the feed specification in its
+   * `CustomAttribute` to submit any attribute of the data specification in its
    * generic form.
    * 
* @@ -477,7 +477,7 @@ public interface LocalInventoryOrBuilder * *
    * A list of custom (merchant-provided) attributes. You can also use
-   * `CustomAttribute` to submit any attribute of the feed specification in its
+   * `CustomAttribute` to submit any attribute of the data specification in its
    * generic form.
    * 
* diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventory.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventory.java index 624cfdd8160d..fd577048d4d6 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventory.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventory.java @@ -27,7 +27,7 @@ * information like price and availability for a given product in a specific * [`region`][google.shopping.merchant.inventories.v1beta.RegionalInventory.region]. * For a list of all accepted attribute values, see the [regional product - * inventory feed + * inventory data * specification](https://support.google.com/merchants/answer/9698880). * * @@ -367,7 +367,7 @@ public com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() { * *
    * Availability of the product in this region.
-   * For accepted attribute values, see the [regional product inventory feed
+   * For accepted attribute values, see the [regional product inventory data
    * specification](https://support.google.com/merchants/answer/3061342)
    * 
* @@ -384,7 +384,7 @@ public boolean hasAvailability() { * *
    * Availability of the product in this region.
-   * For accepted attribute values, see the [regional product inventory feed
+   * For accepted attribute values, see the [regional product inventory data
    * specification](https://support.google.com/merchants/answer/3061342)
    * 
* @@ -409,7 +409,7 @@ public java.lang.String getAvailability() { * *
    * Availability of the product in this region.
-   * For accepted attribute values, see the [regional product inventory feed
+   * For accepted attribute values, see the [regional product inventory data
    * specification](https://support.google.com/merchants/answer/3061342)
    * 
* @@ -439,7 +439,7 @@ public com.google.protobuf.ByteString getAvailabilityBytes() { * *
    * A list of custom (merchant-provided) attributes. You can also use
-   * `CustomAttribute` to submit any attribute of the feed specification in its
+   * `CustomAttribute` to submit any attribute of the data specification in its
    * generic form.
    * 
* @@ -454,7 +454,7 @@ public java.util.List getCustomAttribu * *
    * A list of custom (merchant-provided) attributes. You can also use
-   * `CustomAttribute` to submit any attribute of the feed specification in its
+   * `CustomAttribute` to submit any attribute of the data specification in its
    * generic form.
    * 
* @@ -470,7 +470,7 @@ public java.util.List getCustomAttribu * *
    * A list of custom (merchant-provided) attributes. You can also use
-   * `CustomAttribute` to submit any attribute of the feed specification in its
+   * `CustomAttribute` to submit any attribute of the data specification in its
    * generic form.
    * 
* @@ -485,7 +485,7 @@ public int getCustomAttributesCount() { * *
    * A list of custom (merchant-provided) attributes. You can also use
-   * `CustomAttribute` to submit any attribute of the feed specification in its
+   * `CustomAttribute` to submit any attribute of the data specification in its
    * generic form.
    * 
* @@ -500,7 +500,7 @@ public com.google.shopping.type.CustomAttribute getCustomAttributes(int index) { * *
    * A list of custom (merchant-provided) attributes. You can also use
-   * `CustomAttribute` to submit any attribute of the feed specification in its
+   * `CustomAttribute` to submit any attribute of the data specification in its
    * generic form.
    * 
* @@ -766,7 +766,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * information like price and availability for a given product in a specific * [`region`][google.shopping.merchant.inventories.v1beta.RegionalInventory.region]. * For a list of all accepted attribute values, see the [regional product - * inventory feed + * inventory data * specification](https://support.google.com/merchants/answer/9698880). * * @@ -2015,7 +2015,7 @@ public com.google.type.IntervalOrBuilder getSalePriceEffectiveDateOrBuilder() { * *
      * Availability of the product in this region.
-     * For accepted attribute values, see the [regional product inventory feed
+     * For accepted attribute values, see the [regional product inventory data
      * specification](https://support.google.com/merchants/answer/3061342)
      * 
* @@ -2031,7 +2031,7 @@ public boolean hasAvailability() { * *
      * Availability of the product in this region.
-     * For accepted attribute values, see the [regional product inventory feed
+     * For accepted attribute values, see the [regional product inventory data
      * specification](https://support.google.com/merchants/answer/3061342)
      * 
* @@ -2055,7 +2055,7 @@ public java.lang.String getAvailability() { * *
      * Availability of the product in this region.
-     * For accepted attribute values, see the [regional product inventory feed
+     * For accepted attribute values, see the [regional product inventory data
      * specification](https://support.google.com/merchants/answer/3061342)
      * 
* @@ -2079,7 +2079,7 @@ public com.google.protobuf.ByteString getAvailabilityBytes() { * *
      * Availability of the product in this region.
-     * For accepted attribute values, see the [regional product inventory feed
+     * For accepted attribute values, see the [regional product inventory data
      * specification](https://support.google.com/merchants/answer/3061342)
      * 
* @@ -2102,7 +2102,7 @@ public Builder setAvailability(java.lang.String value) { * *
      * Availability of the product in this region.
-     * For accepted attribute values, see the [regional product inventory feed
+     * For accepted attribute values, see the [regional product inventory data
      * specification](https://support.google.com/merchants/answer/3061342)
      * 
* @@ -2121,7 +2121,7 @@ public Builder clearAvailability() { * *
      * Availability of the product in this region.
-     * For accepted attribute values, see the [regional product inventory feed
+     * For accepted attribute values, see the [regional product inventory data
      * specification](https://support.google.com/merchants/answer/3061342)
      * 
* @@ -2163,7 +2163,7 @@ private void ensureCustomAttributesIsMutable() { * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -2181,7 +2181,7 @@ public java.util.List getCustomAttribu * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -2199,7 +2199,7 @@ public int getCustomAttributesCount() { * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -2217,7 +2217,7 @@ public com.google.shopping.type.CustomAttribute getCustomAttributes(int index) { * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -2241,7 +2241,7 @@ public Builder setCustomAttributes(int index, com.google.shopping.type.CustomAtt * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -2263,7 +2263,7 @@ public Builder setCustomAttributes( * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -2287,7 +2287,7 @@ public Builder addCustomAttributes(com.google.shopping.type.CustomAttribute valu * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -2311,7 +2311,7 @@ public Builder addCustomAttributes(int index, com.google.shopping.type.CustomAtt * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -2333,7 +2333,7 @@ public Builder addCustomAttributes( * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -2355,7 +2355,7 @@ public Builder addCustomAttributes( * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -2377,7 +2377,7 @@ public Builder addAllCustomAttributes( * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -2398,7 +2398,7 @@ public Builder clearCustomAttributes() { * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -2419,7 +2419,7 @@ public Builder removeCustomAttributes(int index) { * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -2433,7 +2433,7 @@ public com.google.shopping.type.CustomAttribute.Builder getCustomAttributesBuild * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -2452,7 +2452,7 @@ public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBu * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -2471,7 +2471,7 @@ public com.google.shopping.type.CustomAttributeOrBuilder getCustomAttributesOrBu * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -2486,7 +2486,7 @@ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuild * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* @@ -2501,7 +2501,7 @@ public com.google.shopping.type.CustomAttribute.Builder addCustomAttributesBuild * *
      * A list of custom (merchant-provided) attributes. You can also use
-     * `CustomAttribute` to submit any attribute of the feed specification in its
+     * `CustomAttribute` to submit any attribute of the data specification in its
      * generic form.
      * 
* diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryOrBuilder.java b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryOrBuilder.java index de750d94c0f3..65bf38ebd859 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryOrBuilder.java +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/java/com/google/shopping/merchant/inventories/v1beta/RegionalInventoryOrBuilder.java @@ -221,7 +221,7 @@ public interface RegionalInventoryOrBuilder * *
    * Availability of the product in this region.
-   * For accepted attribute values, see the [regional product inventory feed
+   * For accepted attribute values, see the [regional product inventory data
    * specification](https://support.google.com/merchants/answer/3061342)
    * 
* @@ -235,7 +235,7 @@ public interface RegionalInventoryOrBuilder * *
    * Availability of the product in this region.
-   * For accepted attribute values, see the [regional product inventory feed
+   * For accepted attribute values, see the [regional product inventory data
    * specification](https://support.google.com/merchants/answer/3061342)
    * 
* @@ -249,7 +249,7 @@ public interface RegionalInventoryOrBuilder * *
    * Availability of the product in this region.
-   * For accepted attribute values, see the [regional product inventory feed
+   * For accepted attribute values, see the [regional product inventory data
    * specification](https://support.google.com/merchants/answer/3061342)
    * 
* @@ -264,7 +264,7 @@ public interface RegionalInventoryOrBuilder * *
    * A list of custom (merchant-provided) attributes. You can also use
-   * `CustomAttribute` to submit any attribute of the feed specification in its
+   * `CustomAttribute` to submit any attribute of the data specification in its
    * generic form.
    * 
* @@ -276,7 +276,7 @@ public interface RegionalInventoryOrBuilder * *
    * A list of custom (merchant-provided) attributes. You can also use
-   * `CustomAttribute` to submit any attribute of the feed specification in its
+   * `CustomAttribute` to submit any attribute of the data specification in its
    * generic form.
    * 
* @@ -288,7 +288,7 @@ public interface RegionalInventoryOrBuilder * *
    * A list of custom (merchant-provided) attributes. You can also use
-   * `CustomAttribute` to submit any attribute of the feed specification in its
+   * `CustomAttribute` to submit any attribute of the data specification in its
    * generic form.
    * 
* @@ -300,7 +300,7 @@ public interface RegionalInventoryOrBuilder * *
    * A list of custom (merchant-provided) attributes. You can also use
-   * `CustomAttribute` to submit any attribute of the feed specification in its
+   * `CustomAttribute` to submit any attribute of the data specification in its
    * generic form.
    * 
* @@ -313,7 +313,7 @@ public interface RegionalInventoryOrBuilder * *
    * A list of custom (merchant-provided) attributes. You can also use
-   * `CustomAttribute` to submit any attribute of the feed specification in its
+   * `CustomAttribute` to submit any attribute of the data specification in its
    * generic form.
    * 
* diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/proto/google/shopping/merchant/inventories/v1beta/localinventory.proto b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/proto/google/shopping/merchant/inventories/v1beta/localinventory.proto index 32cc965d51a9..7aef146c1157 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/proto/google/shopping/merchant/inventories/v1beta/localinventory.proto +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/proto/google/shopping/merchant/inventories/v1beta/localinventory.proto @@ -87,7 +87,7 @@ service LocalInventoryService { // for a specific product at the store specified by // [`storeCode`][google.shopping.merchant.inventories.v1beta.LocalInventory.store_code]. // For a list of all accepted attribute values, see the [local product inventory -// feed specification](https://support.google.com/merchants/answer/3061342). +// data specification](https://support.google.com/merchants/answer/3061342). message LocalInventory { option (google.api.resource) = { type: "merchantapi.googleapis.com/LocalInventory" @@ -105,7 +105,7 @@ message LocalInventory { // Required. Immutable. Store code (the store ID from your Business Profile) // of the physical store the product is sold in. See the [Local product - // inventory feed + // inventory data // specification](https://support.google.com/merchants/answer/3061342) for // more information. string store_code = 3 [ @@ -126,7 +126,7 @@ message LocalInventory { google.type.Interval sale_price_effective_date = 6; // Availability of the product at this store. - // For accepted attribute values, see the [local product inventory feed + // For accepted attribute values, see the [local product inventory data // specification](https://support.google.com/merchants/answer/3061342) optional string availability = 7; @@ -137,14 +137,14 @@ message LocalInventory { // Supported pickup method for this product. Unless the value is `"not // supported"`, this field must be submitted together with // `pickupSla`. - // For accepted attribute values, see the [local product inventory feed + // For accepted attribute values, see the [local product inventory data // specification](https://support.google.com/merchants/answer/3061342) optional string pickup_method = 9; // Relative time period from the order date for an order for this product, // from this store, to be ready for pickup. Must be submitted with // `pickupMethod`. - // For accepted attribute values, see the [local product inventory feed + // For accepted attribute values, see the [local product inventory data // specification](https://support.google.com/merchants/answer/3061342) optional string pickup_sla = 10; @@ -152,7 +152,7 @@ message LocalInventory { optional string instore_product_location = 11; // A list of custom (merchant-provided) attributes. You can also use - // `CustomAttribute` to submit any attribute of the feed specification in its + // `CustomAttribute` to submit any attribute of the data specification in its // generic form. repeated google.shopping.type.CustomAttribute custom_attributes = 12; } diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/proto/google/shopping/merchant/inventories/v1beta/regionalinventory.proto b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/proto/google/shopping/merchant/inventories/v1beta/regionalinventory.proto index ebc9d7057528..87120253f1ca 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/proto/google/shopping/merchant/inventories/v1beta/regionalinventory.proto +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/src/main/proto/google/shopping/merchant/inventories/v1beta/regionalinventory.proto @@ -84,7 +84,7 @@ service RegionalInventoryService { // information like price and availability for a given product in a specific // [`region`][google.shopping.merchant.inventories.v1beta.RegionalInventory.region]. // For a list of all accepted attribute values, see the [regional product -// inventory feed +// inventory data // specification](https://support.google.com/merchants/answer/9698880). message RegionalInventory { option (google.api.resource) = { @@ -123,12 +123,12 @@ message RegionalInventory { google.type.Interval sale_price_effective_date = 6; // Availability of the product in this region. - // For accepted attribute values, see the [regional product inventory feed + // For accepted attribute values, see the [regional product inventory data // specification](https://support.google.com/merchants/answer/3061342) optional string availability = 7; // A list of custom (merchant-provided) attributes. You can also use - // `CustomAttribute` to submit any attribute of the feed specification in its + // `CustomAttribute` to submit any attribute of the data specification in its // generic form. repeated google.shopping.type.CustomAttribute custom_attributes = 8; } diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventory.java b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventory.java index 94e3ea5c4627..f5c5474dc1fd 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventory.java +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventory.java @@ -498,7 +498,7 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { * *
    * Required. Availability of the product at this store.
-   * For accepted attribute values, see the [local product inventory feed
+   * For accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342)
    * 
* @@ -523,7 +523,7 @@ public java.lang.String getAvailability() { * *
    * Required. Availability of the product at this store.
-   * For accepted attribute values, see the [local product inventory feed
+   * For accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342)
    * 
* @@ -648,7 +648,7 @@ public com.google.protobuf.TimestampOrBuilder getCollectionTimeOrBuilder() { *
    * Optional. Supported pickup method for this offer. Unless the value is "not
    * supported", this field must be submitted together with `pickupSla`. For
-   * accepted attribute values, see the [local product inventory feed
+   * accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342).
    * 
* @@ -666,7 +666,7 @@ public boolean hasPickupMethod() { *
    * Optional. Supported pickup method for this offer. Unless the value is "not
    * supported", this field must be submitted together with `pickupSla`. For
-   * accepted attribute values, see the [local product inventory feed
+   * accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342).
    * 
* @@ -692,7 +692,7 @@ public java.lang.String getPickupMethod() { *
    * Optional. Supported pickup method for this offer. Unless the value is "not
    * supported", this field must be submitted together with `pickupSla`. For
-   * accepted attribute values, see the [local product inventory feed
+   * accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342).
    * 
* @@ -723,7 +723,7 @@ public com.google.protobuf.ByteString getPickupMethodBytes() { *
    * Optional. Expected date that an order will be ready for pickup relative to
    * the order date. Must be submitted together with `pickupMethod`. For
-   * accepted attribute values, see the [local product inventory feed
+   * accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342).
    * 
* @@ -741,7 +741,7 @@ public boolean hasPickupSla() { *
    * Optional. Expected date that an order will be ready for pickup relative to
    * the order date. Must be submitted together with `pickupMethod`. For
-   * accepted attribute values, see the [local product inventory feed
+   * accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342).
    * 
* @@ -767,7 +767,7 @@ public java.lang.String getPickupSla() { *
    * Optional. Expected date that an order will be ready for pickup relative to
    * the order date. Must be submitted together with `pickupMethod`. For
-   * accepted attribute values, see the [local product inventory feed
+   * accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342).
    * 
* @@ -2537,7 +2537,7 @@ public com.google.shopping.type.PriceOrBuilder getPriceOrBuilder() { * *
      * Required. Availability of the product at this store.
-     * For accepted attribute values, see the [local product inventory feed
+     * For accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342)
      * 
* @@ -2561,7 +2561,7 @@ public java.lang.String getAvailability() { * *
      * Required. Availability of the product at this store.
-     * For accepted attribute values, see the [local product inventory feed
+     * For accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342)
      * 
* @@ -2585,7 +2585,7 @@ public com.google.protobuf.ByteString getAvailabilityBytes() { * *
      * Required. Availability of the product at this store.
-     * For accepted attribute values, see the [local product inventory feed
+     * For accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342)
      * 
* @@ -2608,7 +2608,7 @@ public Builder setAvailability(java.lang.String value) { * *
      * Required. Availability of the product at this store.
-     * For accepted attribute values, see the [local product inventory feed
+     * For accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342)
      * 
* @@ -2627,7 +2627,7 @@ public Builder clearAvailability() { * *
      * Required. Availability of the product at this store.
-     * For accepted attribute values, see the [local product inventory feed
+     * For accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342)
      * 
* @@ -2938,7 +2938,7 @@ public com.google.protobuf.TimestampOrBuilder getCollectionTimeOrBuilder() { *
      * Optional. Supported pickup method for this offer. Unless the value is "not
      * supported", this field must be submitted together with `pickupSla`. For
-     * accepted attribute values, see the [local product inventory feed
+     * accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342).
      * 
* @@ -2955,7 +2955,7 @@ public boolean hasPickupMethod() { *
      * Optional. Supported pickup method for this offer. Unless the value is "not
      * supported", this field must be submitted together with `pickupSla`. For
-     * accepted attribute values, see the [local product inventory feed
+     * accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342).
      * 
* @@ -2980,7 +2980,7 @@ public java.lang.String getPickupMethod() { *
      * Optional. Supported pickup method for this offer. Unless the value is "not
      * supported", this field must be submitted together with `pickupSla`. For
-     * accepted attribute values, see the [local product inventory feed
+     * accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342).
      * 
* @@ -3005,7 +3005,7 @@ public com.google.protobuf.ByteString getPickupMethodBytes() { *
      * Optional. Supported pickup method for this offer. Unless the value is "not
      * supported", this field must be submitted together with `pickupSla`. For
-     * accepted attribute values, see the [local product inventory feed
+     * accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342).
      * 
* @@ -3029,7 +3029,7 @@ public Builder setPickupMethod(java.lang.String value) { *
      * Optional. Supported pickup method for this offer. Unless the value is "not
      * supported", this field must be submitted together with `pickupSla`. For
-     * accepted attribute values, see the [local product inventory feed
+     * accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342).
      * 
* @@ -3049,7 +3049,7 @@ public Builder clearPickupMethod() { *
      * Optional. Supported pickup method for this offer. Unless the value is "not
      * supported", this field must be submitted together with `pickupSla`. For
-     * accepted attribute values, see the [local product inventory feed
+     * accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342).
      * 
* @@ -3076,7 +3076,7 @@ public Builder setPickupMethodBytes(com.google.protobuf.ByteString value) { *
      * Optional. Expected date that an order will be ready for pickup relative to
      * the order date. Must be submitted together with `pickupMethod`. For
-     * accepted attribute values, see the [local product inventory feed
+     * accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342).
      * 
* @@ -3093,7 +3093,7 @@ public boolean hasPickupSla() { *
      * Optional. Expected date that an order will be ready for pickup relative to
      * the order date. Must be submitted together with `pickupMethod`. For
-     * accepted attribute values, see the [local product inventory feed
+     * accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342).
      * 
* @@ -3118,7 +3118,7 @@ public java.lang.String getPickupSla() { *
      * Optional. Expected date that an order will be ready for pickup relative to
      * the order date. Must be submitted together with `pickupMethod`. For
-     * accepted attribute values, see the [local product inventory feed
+     * accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342).
      * 
* @@ -3143,7 +3143,7 @@ public com.google.protobuf.ByteString getPickupSlaBytes() { *
      * Optional. Expected date that an order will be ready for pickup relative to
      * the order date. Must be submitted together with `pickupMethod`. For
-     * accepted attribute values, see the [local product inventory feed
+     * accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342).
      * 
* @@ -3167,7 +3167,7 @@ public Builder setPickupSla(java.lang.String value) { *
      * Optional. Expected date that an order will be ready for pickup relative to
      * the order date. Must be submitted together with `pickupMethod`. For
-     * accepted attribute values, see the [local product inventory feed
+     * accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342).
      * 
* @@ -3187,7 +3187,7 @@ public Builder clearPickupSla() { *
      * Optional. Expected date that an order will be ready for pickup relative to
      * the order date. Must be submitted together with `pickupMethod`. For
-     * accepted attribute values, see the [local product inventory feed
+     * accepted attribute values, see the [local product inventory data
      * specification](https://support.google.com/merchants/answer/3061342).
      * 
* diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventoryOrBuilder.java b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventoryOrBuilder.java index f5fc68325909..6ee4255c46c3 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventoryOrBuilder.java +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpInventoryOrBuilder.java @@ -270,7 +270,7 @@ public interface LfpInventoryOrBuilder * *
    * Required. Availability of the product at this store.
-   * For accepted attribute values, see the [local product inventory feed
+   * For accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342)
    * 
* @@ -284,7 +284,7 @@ public interface LfpInventoryOrBuilder * *
    * Required. Availability of the product at this store.
-   * For accepted attribute values, see the [local product inventory feed
+   * For accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342)
    * 
* @@ -371,7 +371,7 @@ public interface LfpInventoryOrBuilder *
    * Optional. Supported pickup method for this offer. Unless the value is "not
    * supported", this field must be submitted together with `pickupSla`. For
-   * accepted attribute values, see the [local product inventory feed
+   * accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342).
    * 
* @@ -386,7 +386,7 @@ public interface LfpInventoryOrBuilder *
    * Optional. Supported pickup method for this offer. Unless the value is "not
    * supported", this field must be submitted together with `pickupSla`. For
-   * accepted attribute values, see the [local product inventory feed
+   * accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342).
    * 
* @@ -401,7 +401,7 @@ public interface LfpInventoryOrBuilder *
    * Optional. Supported pickup method for this offer. Unless the value is "not
    * supported", this field must be submitted together with `pickupSla`. For
-   * accepted attribute values, see the [local product inventory feed
+   * accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342).
    * 
* @@ -417,7 +417,7 @@ public interface LfpInventoryOrBuilder *
    * Optional. Expected date that an order will be ready for pickup relative to
    * the order date. Must be submitted together with `pickupMethod`. For
-   * accepted attribute values, see the [local product inventory feed
+   * accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342).
    * 
* @@ -432,7 +432,7 @@ public interface LfpInventoryOrBuilder *
    * Optional. Expected date that an order will be ready for pickup relative to
    * the order date. Must be submitted together with `pickupMethod`. For
-   * accepted attribute values, see the [local product inventory feed
+   * accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342).
    * 
* @@ -447,7 +447,7 @@ public interface LfpInventoryOrBuilder *
    * Optional. Expected date that an order will be ready for pickup relative to
    * the order date. Must be submitted together with `pickupMethod`. For
-   * accepted attribute values, see the [local product inventory feed
+   * accepted attribute values, see the [local product inventory data
    * specification](https://support.google.com/merchants/answer/3061342).
    * 
* diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStore.java b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStore.java index 822d03016c09..e739b5c5c609 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStore.java +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStore.java @@ -23,8 +23,8 @@ * * *
- * A store for the merchant. This will be used to match to a Google Business
- * Profile listing for the target merchant. If a matching listing can't be
+ * A store for the merchant. This will be used to match to a store under the
+ * Google Business Profile of the target merchant. If a matching store can't be
  * found, the inventories or sales submitted with the store code will not be
  * used.
  * 
@@ -79,7 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The state of matching `LfpStore` to a Google Business Profile listing.
+   * The state of matching `LfpStore` to a Google Business Profile.
    * 
* * Protobuf enum {@code google.shopping.merchant.lfp.v1beta.LfpStore.StoreMatchingState} @@ -773,8 +773,8 @@ public com.google.protobuf.ByteString getPlaceIdBytes() { * * *
-   * Optional. Output only. The state of matching to a Google Business Profile
-   * listing. See
+   * Optional. Output only. The state of matching to a Google Business Profile.
+   * See
    * [matchingStateHint][google.shopping.merchant.lfp.v1beta.LfpStore.matching_state_hint]
    * for further details if no match is found.
    * 
@@ -793,8 +793,8 @@ public int getMatchingStateValue() { * * *
-   * Optional. Output only. The state of matching to a Google Business Profile
-   * listing. See
+   * Optional. Output only. The state of matching to a Google Business Profile.
+   * See
    * [matchingStateHint][google.shopping.merchant.lfp.v1beta.LfpStore.matching_state_hint]
    * for further details if no match is found.
    * 
@@ -1229,8 +1229,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * A store for the merchant. This will be used to match to a Google Business
-   * Profile listing for the target merchant. If a matching listing can't be
+   * A store for the merchant. This will be used to match to a store under the
+   * Google Business Profile of the target merchant. If a matching store can't be
    * found, the inventories or sales submitted with the store code will not be
    * used.
    * 
@@ -2669,8 +2669,8 @@ public Builder setPlaceIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Output only. The state of matching to a Google Business Profile
-     * listing. See
+     * Optional. Output only. The state of matching to a Google Business Profile.
+     * See
      * [matchingStateHint][google.shopping.merchant.lfp.v1beta.LfpStore.matching_state_hint]
      * for further details if no match is found.
      * 
@@ -2689,8 +2689,8 @@ public int getMatchingStateValue() { * * *
-     * Optional. Output only. The state of matching to a Google Business Profile
-     * listing. See
+     * Optional. Output only. The state of matching to a Google Business Profile.
+     * See
      * [matchingStateHint][google.shopping.merchant.lfp.v1beta.LfpStore.matching_state_hint]
      * for further details if no match is found.
      * 
@@ -2712,8 +2712,8 @@ public Builder setMatchingStateValue(int value) { * * *
-     * Optional. Output only. The state of matching to a Google Business Profile
-     * listing. See
+     * Optional. Output only. The state of matching to a Google Business Profile.
+     * See
      * [matchingStateHint][google.shopping.merchant.lfp.v1beta.LfpStore.matching_state_hint]
      * for further details if no match is found.
      * 
@@ -2737,8 +2737,8 @@ public com.google.shopping.merchant.lfp.v1beta.LfpStore.StoreMatchingState getMa * * *
-     * Optional. Output only. The state of matching to a Google Business Profile
-     * listing. See
+     * Optional. Output only. The state of matching to a Google Business Profile.
+     * See
      * [matchingStateHint][google.shopping.merchant.lfp.v1beta.LfpStore.matching_state_hint]
      * for further details if no match is found.
      * 
@@ -2764,8 +2764,8 @@ public Builder setMatchingState( * * *
-     * Optional. Output only. The state of matching to a Google Business Profile
-     * listing. See
+     * Optional. Output only. The state of matching to a Google Business Profile.
+     * See
      * [matchingStateHint][google.shopping.merchant.lfp.v1beta.LfpStore.matching_state_hint]
      * for further details if no match is found.
      * 
diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStoreOrBuilder.java b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStoreOrBuilder.java index bde510c15e2f..3ee5e9e020a1 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStoreOrBuilder.java +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/java/com/google/shopping/merchant/lfp/v1beta/LfpStoreOrBuilder.java @@ -345,8 +345,8 @@ public interface LfpStoreOrBuilder * * *
-   * Optional. Output only. The state of matching to a Google Business Profile
-   * listing. See
+   * Optional. Output only. The state of matching to a Google Business Profile.
+   * See
    * [matchingStateHint][google.shopping.merchant.lfp.v1beta.LfpStore.matching_state_hint]
    * for further details if no match is found.
    * 
@@ -362,8 +362,8 @@ public interface LfpStoreOrBuilder * * *
-   * Optional. Output only. The state of matching to a Google Business Profile
-   * listing. See
+   * Optional. Output only. The state of matching to a Google Business Profile.
+   * See
    * [matchingStateHint][google.shopping.merchant.lfp.v1beta.LfpStore.matching_state_hint]
    * for further details if no match is found.
    * 
diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/proto/google/shopping/merchant/lfp/v1beta/lfpinventory.proto b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/proto/google/shopping/merchant/lfp/v1beta/lfpinventory.proto index 82712b939eb8..8f5ea87a3fba 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/proto/google/shopping/merchant/lfp/v1beta/lfpinventory.proto +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/proto/google/shopping/merchant/lfp/v1beta/lfpinventory.proto @@ -102,7 +102,7 @@ message LfpInventory { google.shopping.type.Price price = 8 [(google.api.field_behavior) = OPTIONAL]; // Required. Availability of the product at this store. - // For accepted attribute values, see the [local product inventory feed + // For accepted attribute values, see the [local product inventory data // specification](https://support.google.com/merchants/answer/3061342) string availability = 9 [(google.api.field_behavior) = REQUIRED]; @@ -117,13 +117,13 @@ message LfpInventory { // Optional. Supported pickup method for this offer. Unless the value is "not // supported", this field must be submitted together with `pickupSla`. For - // accepted attribute values, see the [local product inventory feed + // accepted attribute values, see the [local product inventory data // specification](https://support.google.com/merchants/answer/3061342). optional string pickup_method = 12 [(google.api.field_behavior) = OPTIONAL]; // Optional. Expected date that an order will be ready for pickup relative to // the order date. Must be submitted together with `pickupMethod`. For - // accepted attribute values, see the [local product inventory feed + // accepted attribute values, see the [local product inventory data // specification](https://support.google.com/merchants/answer/3061342). optional string pickup_sla = 13 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/proto/google/shopping/merchant/lfp/v1beta/lfpstore.proto b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/proto/google/shopping/merchant/lfp/v1beta/lfpstore.proto index 0d0477cd3489..37b37c1b650b 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/proto/google/shopping/merchant/lfp/v1beta/lfpstore.proto +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/src/main/proto/google/shopping/merchant/lfp/v1beta/lfpstore.proto @@ -70,8 +70,8 @@ service LfpStoreService { } } -// A store for the merchant. This will be used to match to a Google Business -// Profile listing for the target merchant. If a matching listing can't be +// A store for the merchant. This will be used to match to a store under the +// Google Business Profile of the target merchant. If a matching store can't be // found, the inventories or sales submitted with the store code will not be // used. message LfpStore { @@ -82,7 +82,7 @@ message LfpStore { singular: "lfpStore" }; - // The state of matching `LfpStore` to a Google Business Profile listing. + // The state of matching `LfpStore` to a Google Business Profile. enum StoreMatchingState { // Store matching state unspecified. STORE_MATCHING_STATE_UNSPECIFIED = 0; @@ -136,8 +136,8 @@ message LfpStore { // of the store location. optional string place_id = 9 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Output only. The state of matching to a Google Business Profile - // listing. See + // Optional. Output only. The state of matching to a Google Business Profile. + // See // [matchingStateHint][google.shopping.merchant.lfp.v1beta.LfpStore.matching_state_hint] // for further details if no match is found. StoreMatchingState matching_state = 10 [ diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/resources/META-INF/native-image/com.google.shopping.merchant.reports.v1beta/reflect-config.json b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/resources/META-INF/native-image/com.google.shopping.merchant.reports.v1beta/reflect-config.json index 0c4114cb54bb..51e2fdaa137c 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/resources/META-INF/native-image/com.google.shopping.merchant.reports.v1beta/reflect-config.json +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/resources/META-INF/native-image/com.google.shopping.merchant.reports.v1beta/reflect-config.json @@ -1268,6 +1268,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView", "queryAllDeclaredConstructors": true, @@ -1304,6 +1322,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.shopping.merchant.reports.v1beta.PriceInsightsProductView$Effectiveness", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.shopping.merchant.reports.v1beta.ProductPerformanceView", "queryAllDeclaredConstructors": true, diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersProductClusterView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersProductClusterView.java index 22490a0ef944..9e14ce52ce15 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersProductClusterView.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersProductClusterView.java @@ -1099,9 +1099,9 @@ public com.google.protobuf.ByteString getVariantGtinsBytes(int index) { * * *
-   * Whether the product cluster is `IN_STOCK` in your product feed in at least
-   * one of the countries, `OUT_OF_STOCK` in your product feed in all countries,
-   * or `NOT_IN_INVENTORY` at all.
+   * Whether the product cluster is `IN_STOCK` in your product data source in at
+   * least one of the countries, `OUT_OF_STOCK` in your product data source in
+   * all countries, or `NOT_IN_INVENTORY` at all.
    *
    * The field doesn't take the Best sellers report country filter into account.
    * 
@@ -1120,9 +1120,9 @@ public boolean hasInventoryStatus() { * * *
-   * Whether the product cluster is `IN_STOCK` in your product feed in at least
-   * one of the countries, `OUT_OF_STOCK` in your product feed in all countries,
-   * or `NOT_IN_INVENTORY` at all.
+   * Whether the product cluster is `IN_STOCK` in your product data source in at
+   * least one of the countries, `OUT_OF_STOCK` in your product data source in
+   * all countries, or `NOT_IN_INVENTORY` at all.
    *
    * The field doesn't take the Best sellers report country filter into account.
    * 
@@ -1141,9 +1141,9 @@ public int getInventoryStatusValue() { * * *
-   * Whether the product cluster is `IN_STOCK` in your product feed in at least
-   * one of the countries, `OUT_OF_STOCK` in your product feed in all countries,
-   * or `NOT_IN_INVENTORY` at all.
+   * Whether the product cluster is `IN_STOCK` in your product data source in at
+   * least one of the countries, `OUT_OF_STOCK` in your product data source in
+   * all countries, or `NOT_IN_INVENTORY` at all.
    *
    * The field doesn't take the Best sellers report country filter into account.
    * 
@@ -1174,8 +1174,8 @@ public int getInventoryStatusValue() { * *
    * Whether there is at least one product of the brand currently `IN_STOCK` in
-   * your product feed in at least one of the countries, all products are
-   * `OUT_OF_STOCK` in your product feed in all countries, or
+   * your product data source in at least one of the countries, all products are
+   * `OUT_OF_STOCK` in your product data source in all countries, or
    * `NOT_IN_INVENTORY`.
    *
    * The field doesn't take the Best sellers report country filter into account.
@@ -1196,8 +1196,8 @@ public boolean hasBrandInventoryStatus() {
    *
    * 
    * Whether there is at least one product of the brand currently `IN_STOCK` in
-   * your product feed in at least one of the countries, all products are
-   * `OUT_OF_STOCK` in your product feed in all countries, or
+   * your product data source in at least one of the countries, all products are
+   * `OUT_OF_STOCK` in your product data source in all countries, or
    * `NOT_IN_INVENTORY`.
    *
    * The field doesn't take the Best sellers report country filter into account.
@@ -1218,8 +1218,8 @@ public int getBrandInventoryStatusValue() {
    *
    * 
    * Whether there is at least one product of the brand currently `IN_STOCK` in
-   * your product feed in at least one of the countries, all products are
-   * `OUT_OF_STOCK` in your product feed in all countries, or
+   * your product data source in at least one of the countries, all products are
+   * `OUT_OF_STOCK` in your product data source in all countries, or
    * `NOT_IN_INVENTORY`.
    *
    * The field doesn't take the Best sellers report country filter into account.
@@ -4118,9 +4118,9 @@ public Builder addVariantGtinsBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Whether the product cluster is `IN_STOCK` in your product feed in at least
-     * one of the countries, `OUT_OF_STOCK` in your product feed in all countries,
-     * or `NOT_IN_INVENTORY` at all.
+     * Whether the product cluster is `IN_STOCK` in your product data source in at
+     * least one of the countries, `OUT_OF_STOCK` in your product data source in
+     * all countries, or `NOT_IN_INVENTORY` at all.
      *
      * The field doesn't take the Best sellers report country filter into account.
      * 
@@ -4139,9 +4139,9 @@ public boolean hasInventoryStatus() { * * *
-     * Whether the product cluster is `IN_STOCK` in your product feed in at least
-     * one of the countries, `OUT_OF_STOCK` in your product feed in all countries,
-     * or `NOT_IN_INVENTORY` at all.
+     * Whether the product cluster is `IN_STOCK` in your product data source in at
+     * least one of the countries, `OUT_OF_STOCK` in your product data source in
+     * all countries, or `NOT_IN_INVENTORY` at all.
      *
      * The field doesn't take the Best sellers report country filter into account.
      * 
@@ -4160,9 +4160,9 @@ public int getInventoryStatusValue() { * * *
-     * Whether the product cluster is `IN_STOCK` in your product feed in at least
-     * one of the countries, `OUT_OF_STOCK` in your product feed in all countries,
-     * or `NOT_IN_INVENTORY` at all.
+     * Whether the product cluster is `IN_STOCK` in your product data source in at
+     * least one of the countries, `OUT_OF_STOCK` in your product data source in
+     * all countries, or `NOT_IN_INVENTORY` at all.
      *
      * The field doesn't take the Best sellers report country filter into account.
      * 
@@ -4184,9 +4184,9 @@ public Builder setInventoryStatusValue(int value) { * * *
-     * Whether the product cluster is `IN_STOCK` in your product feed in at least
-     * one of the countries, `OUT_OF_STOCK` in your product feed in all countries,
-     * or `NOT_IN_INVENTORY` at all.
+     * Whether the product cluster is `IN_STOCK` in your product data source in at
+     * least one of the countries, `OUT_OF_STOCK` in your product data source in
+     * all countries, or `NOT_IN_INVENTORY` at all.
      *
      * The field doesn't take the Best sellers report country filter into account.
      * 
@@ -4213,9 +4213,9 @@ public Builder setInventoryStatusValue(int value) { * * *
-     * Whether the product cluster is `IN_STOCK` in your product feed in at least
-     * one of the countries, `OUT_OF_STOCK` in your product feed in all countries,
-     * or `NOT_IN_INVENTORY` at all.
+     * Whether the product cluster is `IN_STOCK` in your product data source in at
+     * least one of the countries, `OUT_OF_STOCK` in your product data source in
+     * all countries, or `NOT_IN_INVENTORY` at all.
      *
      * The field doesn't take the Best sellers report country filter into account.
      * 
@@ -4242,9 +4242,9 @@ public Builder setInventoryStatus( * * *
-     * Whether the product cluster is `IN_STOCK` in your product feed in at least
-     * one of the countries, `OUT_OF_STOCK` in your product feed in all countries,
-     * or `NOT_IN_INVENTORY` at all.
+     * Whether the product cluster is `IN_STOCK` in your product data source in at
+     * least one of the countries, `OUT_OF_STOCK` in your product data source in
+     * all countries, or `NOT_IN_INVENTORY` at all.
      *
      * The field doesn't take the Best sellers report country filter into account.
      * 
@@ -4268,8 +4268,8 @@ public Builder clearInventoryStatus() { * *
      * Whether there is at least one product of the brand currently `IN_STOCK` in
-     * your product feed in at least one of the countries, all products are
-     * `OUT_OF_STOCK` in your product feed in all countries, or
+     * your product data source in at least one of the countries, all products are
+     * `OUT_OF_STOCK` in your product data source in all countries, or
      * `NOT_IN_INVENTORY`.
      *
      * The field doesn't take the Best sellers report country filter into account.
@@ -4290,8 +4290,8 @@ public boolean hasBrandInventoryStatus() {
      *
      * 
      * Whether there is at least one product of the brand currently `IN_STOCK` in
-     * your product feed in at least one of the countries, all products are
-     * `OUT_OF_STOCK` in your product feed in all countries, or
+     * your product data source in at least one of the countries, all products are
+     * `OUT_OF_STOCK` in your product data source in all countries, or
      * `NOT_IN_INVENTORY`.
      *
      * The field doesn't take the Best sellers report country filter into account.
@@ -4312,8 +4312,8 @@ public int getBrandInventoryStatusValue() {
      *
      * 
      * Whether there is at least one product of the brand currently `IN_STOCK` in
-     * your product feed in at least one of the countries, all products are
-     * `OUT_OF_STOCK` in your product feed in all countries, or
+     * your product data source in at least one of the countries, all products are
+     * `OUT_OF_STOCK` in your product data source in all countries, or
      * `NOT_IN_INVENTORY`.
      *
      * The field doesn't take the Best sellers report country filter into account.
@@ -4337,8 +4337,8 @@ public Builder setBrandInventoryStatusValue(int value) {
      *
      * 
      * Whether there is at least one product of the brand currently `IN_STOCK` in
-     * your product feed in at least one of the countries, all products are
-     * `OUT_OF_STOCK` in your product feed in all countries, or
+     * your product data source in at least one of the countries, all products are
+     * `OUT_OF_STOCK` in your product data source in all countries, or
      * `NOT_IN_INVENTORY`.
      *
      * The field doesn't take the Best sellers report country filter into account.
@@ -4367,8 +4367,8 @@ public Builder setBrandInventoryStatusValue(int value) {
      *
      * 
      * Whether there is at least one product of the brand currently `IN_STOCK` in
-     * your product feed in at least one of the countries, all products are
-     * `OUT_OF_STOCK` in your product feed in all countries, or
+     * your product data source in at least one of the countries, all products are
+     * `OUT_OF_STOCK` in your product data source in all countries, or
      * `NOT_IN_INVENTORY`.
      *
      * The field doesn't take the Best sellers report country filter into account.
@@ -4397,8 +4397,8 @@ public Builder setBrandInventoryStatus(
      *
      * 
      * Whether there is at least one product of the brand currently `IN_STOCK` in
-     * your product feed in at least one of the countries, all products are
-     * `OUT_OF_STOCK` in your product feed in all countries, or
+     * your product data source in at least one of the countries, all products are
+     * `OUT_OF_STOCK` in your product data source in all countries, or
      * `NOT_IN_INVENTORY`.
      *
      * The field doesn't take the Best sellers report country filter into account.
diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersProductClusterViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersProductClusterViewOrBuilder.java
index 86c0641348d6..1aefc370ea0a 100644
--- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersProductClusterViewOrBuilder.java
+++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/BestSellersProductClusterViewOrBuilder.java
@@ -566,9 +566,9 @@ public interface BestSellersProductClusterViewOrBuilder
    *
    *
    * 
-   * Whether the product cluster is `IN_STOCK` in your product feed in at least
-   * one of the countries, `OUT_OF_STOCK` in your product feed in all countries,
-   * or `NOT_IN_INVENTORY` at all.
+   * Whether the product cluster is `IN_STOCK` in your product data source in at
+   * least one of the countries, `OUT_OF_STOCK` in your product data source in
+   * all countries, or `NOT_IN_INVENTORY` at all.
    *
    * The field doesn't take the Best sellers report country filter into account.
    * 
@@ -584,9 +584,9 @@ public interface BestSellersProductClusterViewOrBuilder * * *
-   * Whether the product cluster is `IN_STOCK` in your product feed in at least
-   * one of the countries, `OUT_OF_STOCK` in your product feed in all countries,
-   * or `NOT_IN_INVENTORY` at all.
+   * Whether the product cluster is `IN_STOCK` in your product data source in at
+   * least one of the countries, `OUT_OF_STOCK` in your product data source in
+   * all countries, or `NOT_IN_INVENTORY` at all.
    *
    * The field doesn't take the Best sellers report country filter into account.
    * 
@@ -602,9 +602,9 @@ public interface BestSellersProductClusterViewOrBuilder * * *
-   * Whether the product cluster is `IN_STOCK` in your product feed in at least
-   * one of the countries, `OUT_OF_STOCK` in your product feed in all countries,
-   * or `NOT_IN_INVENTORY` at all.
+   * Whether the product cluster is `IN_STOCK` in your product data source in at
+   * least one of the countries, `OUT_OF_STOCK` in your product data source in
+   * all countries, or `NOT_IN_INVENTORY` at all.
    *
    * The field doesn't take the Best sellers report country filter into account.
    * 
@@ -623,8 +623,8 @@ public interface BestSellersProductClusterViewOrBuilder * *
    * Whether there is at least one product of the brand currently `IN_STOCK` in
-   * your product feed in at least one of the countries, all products are
-   * `OUT_OF_STOCK` in your product feed in all countries, or
+   * your product data source in at least one of the countries, all products are
+   * `OUT_OF_STOCK` in your product data source in all countries, or
    * `NOT_IN_INVENTORY`.
    *
    * The field doesn't take the Best sellers report country filter into account.
@@ -642,8 +642,8 @@ public interface BestSellersProductClusterViewOrBuilder
    *
    * 
    * Whether there is at least one product of the brand currently `IN_STOCK` in
-   * your product feed in at least one of the countries, all products are
-   * `OUT_OF_STOCK` in your product feed in all countries, or
+   * your product data source in at least one of the countries, all products are
+   * `OUT_OF_STOCK` in your product data source in all countries, or
    * `NOT_IN_INVENTORY`.
    *
    * The field doesn't take the Best sellers report country filter into account.
@@ -661,8 +661,8 @@ public interface BestSellersProductClusterViewOrBuilder
    *
    * 
    * Whether there is at least one product of the brand currently `IN_STOCK` in
-   * your product feed in at least one of the countries, all products are
-   * `OUT_OF_STOCK` in your product feed in all countries, or
+   * your product data source in at least one of the countries, all products are
+   * `OUT_OF_STOCK` in your product data source in all countries, or
    * `NOT_IN_INVENTORY`.
    *
    * The field doesn't take the Best sellers report country filter into account.
diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/NonProductPerformanceView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/NonProductPerformanceView.java
new file mode 100644
index 000000000000..44f421a98417
--- /dev/null
+++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/NonProductPerformanceView.java
@@ -0,0 +1,1446 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/shopping/merchant/reports/v1beta/reports.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.shopping.merchant.reports.v1beta;
+
+/**
+ *
+ *
+ * 
+ * Fields available for query in `non_product_performance_view` table.
+ *
+ * Performance data on images and online store links leading to your non-product
+ * pages. This includes performance metrics (for example, `clicks`)
+ * and dimensions according to which performance metrics are segmented (for
+ * example, `date`).
+ *
+ * Segment fields cannot be selected in queries without also selecting at least
+ * one metric field.
+ *
+ * Values are only set for fields requested explicitly in the request's search
+ * query.
+ * 
+ * + * Protobuf type {@code google.shopping.merchant.reports.v1beta.NonProductPerformanceView} + */ +public final class NonProductPerformanceView extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.shopping.merchant.reports.v1beta.NonProductPerformanceView) + NonProductPerformanceViewOrBuilder { + private static final long serialVersionUID = 0L; + // Use NonProductPerformanceView.newBuilder() to construct. + private NonProductPerformanceView(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NonProductPerformanceView() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NonProductPerformanceView(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_NonProductPerformanceView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_NonProductPerformanceView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.class, + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.Builder.class); + } + + private int bitField0_; + public static final int DATE_FIELD_NUMBER = 1; + private com.google.type.Date date_; + /** + * + * + *
+   * Date in the merchant timezone to which metrics apply. Segment.
+   *
+   * Condition on `date` is required in the `WHERE` clause.
+   * 
+ * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + @java.lang.Override + public boolean hasDate() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Date in the merchant timezone to which metrics apply. Segment.
+   *
+   * Condition on `date` is required in the `WHERE` clause.
+   * 
+ * + * .google.type.Date date = 1; + * + * @return The date. + */ + @java.lang.Override + public com.google.type.Date getDate() { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + /** + * + * + *
+   * Date in the merchant timezone to which metrics apply. Segment.
+   *
+   * Condition on `date` is required in the `WHERE` clause.
+   * 
+ * + * .google.type.Date date = 1; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getDateOrBuilder() { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + + public static final int WEEK_FIELD_NUMBER = 2; + private com.google.type.Date week_; + /** + * + * + *
+   * First day of the week (Monday) of the metrics date in the merchant
+   * timezone. Segment.
+   * 
+ * + * .google.type.Date week = 2; + * + * @return Whether the week field is set. + */ + @java.lang.Override + public boolean hasWeek() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * First day of the week (Monday) of the metrics date in the merchant
+   * timezone. Segment.
+   * 
+ * + * .google.type.Date week = 2; + * + * @return The week. + */ + @java.lang.Override + public com.google.type.Date getWeek() { + return week_ == null ? com.google.type.Date.getDefaultInstance() : week_; + } + /** + * + * + *
+   * First day of the week (Monday) of the metrics date in the merchant
+   * timezone. Segment.
+   * 
+ * + * .google.type.Date week = 2; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getWeekOrBuilder() { + return week_ == null ? com.google.type.Date.getDefaultInstance() : week_; + } + + public static final int CLICKS_FIELD_NUMBER = 3; + private long clicks_ = 0L; + /** + * + * + *
+   * Number of clicks on images and online store links leading to your
+   * non-product pages. Metric.
+   * 
+ * + * optional int64 clicks = 3; + * + * @return Whether the clicks field is set. + */ + @java.lang.Override + public boolean hasClicks() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Number of clicks on images and online store links leading to your
+   * non-product pages. Metric.
+   * 
+ * + * optional int64 clicks = 3; + * + * @return The clicks. + */ + @java.lang.Override + public long getClicks() { + return clicks_; + } + + public static final int IMPRESSIONS_FIELD_NUMBER = 4; + private long impressions_ = 0L; + /** + * + * + *
+   * Number of times images and online store links leading to your non-product
+   * pages were shown. Metric.
+   * 
+ * + * optional int64 impressions = 4; + * + * @return Whether the impressions field is set. + */ + @java.lang.Override + public boolean hasImpressions() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * Number of times images and online store links leading to your non-product
+   * pages were shown. Metric.
+   * 
+ * + * optional int64 impressions = 4; + * + * @return The impressions. + */ + @java.lang.Override + public long getImpressions() { + return impressions_; + } + + public static final int CLICK_THROUGH_RATE_FIELD_NUMBER = 5; + private double clickThroughRate_ = 0D; + /** + * + * + *
+   * Click-through rate - the number of clicks (`clicks`) divided by the number
+   * of impressions (`impressions`) of images and online store links leading to
+   * your non-product pages. Metric.
+   * 
+ * + * optional double click_through_rate = 5; + * + * @return Whether the clickThroughRate field is set. + */ + @java.lang.Override + public boolean hasClickThroughRate() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+   * Click-through rate - the number of clicks (`clicks`) divided by the number
+   * of impressions (`impressions`) of images and online store links leading to
+   * your non-product pages. Metric.
+   * 
+ * + * optional double click_through_rate = 5; + * + * @return The clickThroughRate. + */ + @java.lang.Override + public double getClickThroughRate() { + return clickThroughRate_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getWeek()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, clicks_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt64(4, impressions_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeDouble(5, clickThroughRate_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWeek()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, clicks_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, impressions_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, clickThroughRate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView)) { + return super.equals(obj); + } + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView other = + (com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView) obj; + + if (hasDate() != other.hasDate()) return false; + if (hasDate()) { + if (!getDate().equals(other.getDate())) return false; + } + if (hasWeek() != other.hasWeek()) return false; + if (hasWeek()) { + if (!getWeek().equals(other.getWeek())) return false; + } + if (hasClicks() != other.hasClicks()) return false; + if (hasClicks()) { + if (getClicks() != other.getClicks()) return false; + } + if (hasImpressions() != other.hasImpressions()) return false; + if (hasImpressions()) { + if (getImpressions() != other.getImpressions()) return false; + } + if (hasClickThroughRate() != other.hasClickThroughRate()) return false; + if (hasClickThroughRate()) { + if (java.lang.Double.doubleToLongBits(getClickThroughRate()) + != java.lang.Double.doubleToLongBits(other.getClickThroughRate())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDate()) { + hash = (37 * hash) + DATE_FIELD_NUMBER; + hash = (53 * hash) + getDate().hashCode(); + } + if (hasWeek()) { + hash = (37 * hash) + WEEK_FIELD_NUMBER; + hash = (53 * hash) + getWeek().hashCode(); + } + if (hasClicks()) { + hash = (37 * hash) + CLICKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getClicks()); + } + if (hasImpressions()) { + hash = (37 * hash) + IMPRESSIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getImpressions()); + } + if (hasClickThroughRate()) { + hash = (37 * hash) + CLICK_THROUGH_RATE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getClickThroughRate())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView 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.shopping.merchant.reports.v1beta.NonProductPerformanceView + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView + 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.shopping.merchant.reports.v1beta.NonProductPerformanceView parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Fields available for query in `non_product_performance_view` table.
+   *
+   * Performance data on images and online store links leading to your non-product
+   * pages. This includes performance metrics (for example, `clicks`)
+   * and dimensions according to which performance metrics are segmented (for
+   * example, `date`).
+   *
+   * Segment fields cannot be selected in queries without also selecting at least
+   * one metric field.
+   *
+   * Values are only set for fields requested explicitly in the request's search
+   * query.
+   * 
+ * + * Protobuf type {@code google.shopping.merchant.reports.v1beta.NonProductPerformanceView} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.shopping.merchant.reports.v1beta.NonProductPerformanceView) + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_NonProductPerformanceView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_NonProductPerformanceView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.class, + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.Builder.class); + } + + // Construct using + // com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDateFieldBuilder(); + getWeekFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + date_ = null; + if (dateBuilder_ != null) { + dateBuilder_.dispose(); + dateBuilder_ = null; + } + week_ = null; + if (weekBuilder_ != null) { + weekBuilder_.dispose(); + weekBuilder_ = null; + } + clicks_ = 0L; + impressions_ = 0L; + clickThroughRate_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.shopping.merchant.reports.v1beta.ReportsProto + .internal_static_google_shopping_merchant_reports_v1beta_NonProductPerformanceView_descriptor; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView + getDefaultInstanceForType() { + return com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView build() { + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView buildPartial() { + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView result = + new com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.date_ = dateBuilder_ == null ? date_ : dateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.week_ = weekBuilder_ == null ? week_ : weekBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clicks_ = clicks_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.impressions_ = impressions_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.clickThroughRate_ = clickThroughRate_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView) { + return mergeFrom( + (com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView other) { + if (other + == com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView + .getDefaultInstance()) return this; + if (other.hasDate()) { + mergeDate(other.getDate()); + } + if (other.hasWeek()) { + mergeWeek(other.getWeek()); + } + if (other.hasClicks()) { + setClicks(other.getClicks()); + } + if (other.hasImpressions()) { + setImpressions(other.getImpressions()); + } + if (other.hasClickThroughRate()) { + setClickThroughRate(other.getClickThroughRate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getWeekFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + clicks_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + impressions_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 41: + { + clickThroughRate_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 41 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.type.Date date_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + dateBuilder_; + /** + * + * + *
+     * Date in the merchant timezone to which metrics apply. Segment.
+     *
+     * Condition on `date` is required in the `WHERE` clause.
+     * 
+ * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + public boolean hasDate() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Date in the merchant timezone to which metrics apply. Segment.
+     *
+     * Condition on `date` is required in the `WHERE` clause.
+     * 
+ * + * .google.type.Date date = 1; + * + * @return The date. + */ + public com.google.type.Date getDate() { + if (dateBuilder_ == null) { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } else { + return dateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Date in the merchant timezone to which metrics apply. Segment.
+     *
+     * Condition on `date` is required in the `WHERE` clause.
+     * 
+ * + * .google.type.Date date = 1; + */ + public Builder setDate(com.google.type.Date value) { + if (dateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + date_ = value; + } else { + dateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Date in the merchant timezone to which metrics apply. Segment.
+     *
+     * Condition on `date` is required in the `WHERE` clause.
+     * 
+ * + * .google.type.Date date = 1; + */ + public Builder setDate(com.google.type.Date.Builder builderForValue) { + if (dateBuilder_ == null) { + date_ = builderForValue.build(); + } else { + dateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Date in the merchant timezone to which metrics apply. Segment.
+     *
+     * Condition on `date` is required in the `WHERE` clause.
+     * 
+ * + * .google.type.Date date = 1; + */ + public Builder mergeDate(com.google.type.Date value) { + if (dateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && date_ != null + && date_ != com.google.type.Date.getDefaultInstance()) { + getDateBuilder().mergeFrom(value); + } else { + date_ = value; + } + } else { + dateBuilder_.mergeFrom(value); + } + if (date_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Date in the merchant timezone to which metrics apply. Segment.
+     *
+     * Condition on `date` is required in the `WHERE` clause.
+     * 
+ * + * .google.type.Date date = 1; + */ + public Builder clearDate() { + bitField0_ = (bitField0_ & ~0x00000001); + date_ = null; + if (dateBuilder_ != null) { + dateBuilder_.dispose(); + dateBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Date in the merchant timezone to which metrics apply. Segment.
+     *
+     * Condition on `date` is required in the `WHERE` clause.
+     * 
+ * + * .google.type.Date date = 1; + */ + public com.google.type.Date.Builder getDateBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Date in the merchant timezone to which metrics apply. Segment.
+     *
+     * Condition on `date` is required in the `WHERE` clause.
+     * 
+ * + * .google.type.Date date = 1; + */ + public com.google.type.DateOrBuilder getDateOrBuilder() { + if (dateBuilder_ != null) { + return dateBuilder_.getMessageOrBuilder(); + } else { + return date_ == null ? com.google.type.Date.getDefaultInstance() : date_; + } + } + /** + * + * + *
+     * Date in the merchant timezone to which metrics apply. Segment.
+     *
+     * Condition on `date` is required in the `WHERE` clause.
+     * 
+ * + * .google.type.Date date = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getDateFieldBuilder() { + if (dateBuilder_ == null) { + dateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getDate(), getParentForChildren(), isClean()); + date_ = null; + } + return dateBuilder_; + } + + private com.google.type.Date week_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + weekBuilder_; + /** + * + * + *
+     * First day of the week (Monday) of the metrics date in the merchant
+     * timezone. Segment.
+     * 
+ * + * .google.type.Date week = 2; + * + * @return Whether the week field is set. + */ + public boolean hasWeek() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * First day of the week (Monday) of the metrics date in the merchant
+     * timezone. Segment.
+     * 
+ * + * .google.type.Date week = 2; + * + * @return The week. + */ + public com.google.type.Date getWeek() { + if (weekBuilder_ == null) { + return week_ == null ? com.google.type.Date.getDefaultInstance() : week_; + } else { + return weekBuilder_.getMessage(); + } + } + /** + * + * + *
+     * First day of the week (Monday) of the metrics date in the merchant
+     * timezone. Segment.
+     * 
+ * + * .google.type.Date week = 2; + */ + public Builder setWeek(com.google.type.Date value) { + if (weekBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + week_ = value; + } else { + weekBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * First day of the week (Monday) of the metrics date in the merchant
+     * timezone. Segment.
+     * 
+ * + * .google.type.Date week = 2; + */ + public Builder setWeek(com.google.type.Date.Builder builderForValue) { + if (weekBuilder_ == null) { + week_ = builderForValue.build(); + } else { + weekBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * First day of the week (Monday) of the metrics date in the merchant
+     * timezone. Segment.
+     * 
+ * + * .google.type.Date week = 2; + */ + public Builder mergeWeek(com.google.type.Date value) { + if (weekBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && week_ != null + && week_ != com.google.type.Date.getDefaultInstance()) { + getWeekBuilder().mergeFrom(value); + } else { + week_ = value; + } + } else { + weekBuilder_.mergeFrom(value); + } + if (week_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * First day of the week (Monday) of the metrics date in the merchant
+     * timezone. Segment.
+     * 
+ * + * .google.type.Date week = 2; + */ + public Builder clearWeek() { + bitField0_ = (bitField0_ & ~0x00000002); + week_ = null; + if (weekBuilder_ != null) { + weekBuilder_.dispose(); + weekBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * First day of the week (Monday) of the metrics date in the merchant
+     * timezone. Segment.
+     * 
+ * + * .google.type.Date week = 2; + */ + public com.google.type.Date.Builder getWeekBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getWeekFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * First day of the week (Monday) of the metrics date in the merchant
+     * timezone. Segment.
+     * 
+ * + * .google.type.Date week = 2; + */ + public com.google.type.DateOrBuilder getWeekOrBuilder() { + if (weekBuilder_ != null) { + return weekBuilder_.getMessageOrBuilder(); + } else { + return week_ == null ? com.google.type.Date.getDefaultInstance() : week_; + } + } + /** + * + * + *
+     * First day of the week (Monday) of the metrics date in the merchant
+     * timezone. Segment.
+     * 
+ * + * .google.type.Date week = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getWeekFieldBuilder() { + if (weekBuilder_ == null) { + weekBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getWeek(), getParentForChildren(), isClean()); + week_ = null; + } + return weekBuilder_; + } + + private long clicks_; + /** + * + * + *
+     * Number of clicks on images and online store links leading to your
+     * non-product pages. Metric.
+     * 
+ * + * optional int64 clicks = 3; + * + * @return Whether the clicks field is set. + */ + @java.lang.Override + public boolean hasClicks() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Number of clicks on images and online store links leading to your
+     * non-product pages. Metric.
+     * 
+ * + * optional int64 clicks = 3; + * + * @return The clicks. + */ + @java.lang.Override + public long getClicks() { + return clicks_; + } + /** + * + * + *
+     * Number of clicks on images and online store links leading to your
+     * non-product pages. Metric.
+     * 
+ * + * optional int64 clicks = 3; + * + * @param value The clicks to set. + * @return This builder for chaining. + */ + public Builder setClicks(long value) { + + clicks_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Number of clicks on images and online store links leading to your
+     * non-product pages. Metric.
+     * 
+ * + * optional int64 clicks = 3; + * + * @return This builder for chaining. + */ + public Builder clearClicks() { + bitField0_ = (bitField0_ & ~0x00000004); + clicks_ = 0L; + onChanged(); + return this; + } + + private long impressions_; + /** + * + * + *
+     * Number of times images and online store links leading to your non-product
+     * pages were shown. Metric.
+     * 
+ * + * optional int64 impressions = 4; + * + * @return Whether the impressions field is set. + */ + @java.lang.Override + public boolean hasImpressions() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Number of times images and online store links leading to your non-product
+     * pages were shown. Metric.
+     * 
+ * + * optional int64 impressions = 4; + * + * @return The impressions. + */ + @java.lang.Override + public long getImpressions() { + return impressions_; + } + /** + * + * + *
+     * Number of times images and online store links leading to your non-product
+     * pages were shown. Metric.
+     * 
+ * + * optional int64 impressions = 4; + * + * @param value The impressions to set. + * @return This builder for chaining. + */ + public Builder setImpressions(long value) { + + impressions_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Number of times images and online store links leading to your non-product
+     * pages were shown. Metric.
+     * 
+ * + * optional int64 impressions = 4; + * + * @return This builder for chaining. + */ + public Builder clearImpressions() { + bitField0_ = (bitField0_ & ~0x00000008); + impressions_ = 0L; + onChanged(); + return this; + } + + private double clickThroughRate_; + /** + * + * + *
+     * Click-through rate - the number of clicks (`clicks`) divided by the number
+     * of impressions (`impressions`) of images and online store links leading to
+     * your non-product pages. Metric.
+     * 
+ * + * optional double click_through_rate = 5; + * + * @return Whether the clickThroughRate field is set. + */ + @java.lang.Override + public boolean hasClickThroughRate() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Click-through rate - the number of clicks (`clicks`) divided by the number
+     * of impressions (`impressions`) of images and online store links leading to
+     * your non-product pages. Metric.
+     * 
+ * + * optional double click_through_rate = 5; + * + * @return The clickThroughRate. + */ + @java.lang.Override + public double getClickThroughRate() { + return clickThroughRate_; + } + /** + * + * + *
+     * Click-through rate - the number of clicks (`clicks`) divided by the number
+     * of impressions (`impressions`) of images and online store links leading to
+     * your non-product pages. Metric.
+     * 
+ * + * optional double click_through_rate = 5; + * + * @param value The clickThroughRate to set. + * @return This builder for chaining. + */ + public Builder setClickThroughRate(double value) { + + clickThroughRate_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Click-through rate - the number of clicks (`clicks`) divided by the number
+     * of impressions (`impressions`) of images and online store links leading to
+     * your non-product pages. Metric.
+     * 
+ * + * optional double click_through_rate = 5; + * + * @return This builder for chaining. + */ + public Builder clearClickThroughRate() { + bitField0_ = (bitField0_ & ~0x00000010); + clickThroughRate_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.reports.v1beta.NonProductPerformanceView) + } + + // @@protoc_insertion_point(class_scope:google.shopping.merchant.reports.v1beta.NonProductPerformanceView) + private static final com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView(); + } + + public static com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NonProductPerformanceView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/NonProductPerformanceViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/NonProductPerformanceViewOrBuilder.java new file mode 100644 index 000000000000..e46d0aee05f8 --- /dev/null +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/NonProductPerformanceViewOrBuilder.java @@ -0,0 +1,188 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/shopping/merchant/reports/v1beta/reports.proto + +// Protobuf Java Version: 3.25.3 +package com.google.shopping.merchant.reports.v1beta; + +public interface NonProductPerformanceViewOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.shopping.merchant.reports.v1beta.NonProductPerformanceView) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Date in the merchant timezone to which metrics apply. Segment.
+   *
+   * Condition on `date` is required in the `WHERE` clause.
+   * 
+ * + * .google.type.Date date = 1; + * + * @return Whether the date field is set. + */ + boolean hasDate(); + /** + * + * + *
+   * Date in the merchant timezone to which metrics apply. Segment.
+   *
+   * Condition on `date` is required in the `WHERE` clause.
+   * 
+ * + * .google.type.Date date = 1; + * + * @return The date. + */ + com.google.type.Date getDate(); + /** + * + * + *
+   * Date in the merchant timezone to which metrics apply. Segment.
+   *
+   * Condition on `date` is required in the `WHERE` clause.
+   * 
+ * + * .google.type.Date date = 1; + */ + com.google.type.DateOrBuilder getDateOrBuilder(); + + /** + * + * + *
+   * First day of the week (Monday) of the metrics date in the merchant
+   * timezone. Segment.
+   * 
+ * + * .google.type.Date week = 2; + * + * @return Whether the week field is set. + */ + boolean hasWeek(); + /** + * + * + *
+   * First day of the week (Monday) of the metrics date in the merchant
+   * timezone. Segment.
+   * 
+ * + * .google.type.Date week = 2; + * + * @return The week. + */ + com.google.type.Date getWeek(); + /** + * + * + *
+   * First day of the week (Monday) of the metrics date in the merchant
+   * timezone. Segment.
+   * 
+ * + * .google.type.Date week = 2; + */ + com.google.type.DateOrBuilder getWeekOrBuilder(); + + /** + * + * + *
+   * Number of clicks on images and online store links leading to your
+   * non-product pages. Metric.
+   * 
+ * + * optional int64 clicks = 3; + * + * @return Whether the clicks field is set. + */ + boolean hasClicks(); + /** + * + * + *
+   * Number of clicks on images and online store links leading to your
+   * non-product pages. Metric.
+   * 
+ * + * optional int64 clicks = 3; + * + * @return The clicks. + */ + long getClicks(); + + /** + * + * + *
+   * Number of times images and online store links leading to your non-product
+   * pages were shown. Metric.
+   * 
+ * + * optional int64 impressions = 4; + * + * @return Whether the impressions field is set. + */ + boolean hasImpressions(); + /** + * + * + *
+   * Number of times images and online store links leading to your non-product
+   * pages were shown. Metric.
+   * 
+ * + * optional int64 impressions = 4; + * + * @return The impressions. + */ + long getImpressions(); + + /** + * + * + *
+   * Click-through rate - the number of clicks (`clicks`) divided by the number
+   * of impressions (`impressions`) of images and online store links leading to
+   * your non-product pages. Metric.
+   * 
+ * + * optional double click_through_rate = 5; + * + * @return Whether the clickThroughRate field is set. + */ + boolean hasClickThroughRate(); + /** + * + * + *
+   * Click-through rate - the number of clicks (`clicks`) divided by the number
+   * of impressions (`impressions`) of images and online store links leading to
+   * your non-product pages. Metric.
+   * 
+ * + * optional double click_through_rate = 5; + * + * @return The clickThroughRate. + */ + double getClickThroughRate(); +} diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceInsightsProductView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceInsightsProductView.java index 01ea006832ac..a134b9b01f24 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceInsightsProductView.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceInsightsProductView.java @@ -59,6 +59,7 @@ private PriceInsightsProductView() { productTypeL3_ = ""; productTypeL4_ = ""; productTypeL5_ = ""; + effectiveness_ = 0; } @java.lang.Override @@ -82,6 +83,194 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Builder.class); } + /** + * + * + *
+   * Predicted effectiveness bucket.
+   *
+   * Effectiveness indicates which products would benefit most from price
+   * changes. This rating takes into consideration the performance boost
+   * predicted by adjusting the sale price and the difference between your
+   * current price and the suggested price. Price suggestions with `HIGH`
+   * effectiveness are predicted to drive the largest increase in performance.
+   * 
+ * + * Protobuf enum {@code + * google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness} + */ + public enum Effectiveness implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Effectiveness is unknown.
+     * 
+ * + * EFFECTIVENESS_UNSPECIFIED = 0; + */ + EFFECTIVENESS_UNSPECIFIED(0), + /** + * + * + *
+     * Effectiveness is low.
+     * 
+ * + * LOW = 1; + */ + LOW(1), + /** + * + * + *
+     * Effectiveness is medium.
+     * 
+ * + * MEDIUM = 2; + */ + MEDIUM(2), + /** + * + * + *
+     * Effectiveness is high.
+     * 
+ * + * HIGH = 3; + */ + HIGH(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Effectiveness is unknown.
+     * 
+ * + * EFFECTIVENESS_UNSPECIFIED = 0; + */ + public static final int EFFECTIVENESS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Effectiveness is low.
+     * 
+ * + * LOW = 1; + */ + public static final int LOW_VALUE = 1; + /** + * + * + *
+     * Effectiveness is medium.
+     * 
+ * + * MEDIUM = 2; + */ + public static final int MEDIUM_VALUE = 2; + /** + * + * + *
+     * Effectiveness is high.
+     * 
+ * + * HIGH = 3; + */ + public static final int HIGH_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Effectiveness valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Effectiveness forNumber(int value) { + switch (value) { + case 0: + return EFFECTIVENESS_UNSPECIFIED; + case 1: + return LOW; + case 2: + return MEDIUM; + case 3: + return HIGH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Effectiveness findValueByNumber(int number) { + return Effectiveness.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() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.shopping.merchant.reports.v1beta.PriceInsightsProductView.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Effectiveness[] VALUES = values(); + + public static Effectiveness valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Effectiveness(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness) + } + private int bitField0_; public static final int ID_FIELD_NUMBER = 1; @@ -1256,6 +1445,50 @@ public double getPredictedConversionsChangeFraction() { return predictedConversionsChangeFraction_; } + public static final int EFFECTIVENESS_FIELD_NUMBER = 22; + private int effectiveness_ = 0; + /** + * + * + *
+   * The predicted effectiveness of applying the price suggestion, bucketed.
+   * 
+ * + * + * .google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness effectiveness = 22; + * + * + * @return The enum numeric value on the wire for effectiveness. + */ + @java.lang.Override + public int getEffectivenessValue() { + return effectiveness_; + } + /** + * + * + *
+   * The predicted effectiveness of applying the price suggestion, bucketed.
+   * 
+ * + * + * .google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness effectiveness = 22; + * + * + * @return The effectiveness. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness + getEffectiveness() { + com.google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness result = + com.google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness + .forNumber(effectiveness_); + return result == null + ? com.google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness + .UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1327,6 +1560,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00040000) != 0)) { output.writeDouble(19, predictedConversionsChangeFraction_); } + if (effectiveness_ + != com.google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness + .EFFECTIVENESS_UNSPECIFIED + .getNumber()) { + output.writeEnum(22, effectiveness_); + } getUnknownFields().writeTo(output); } @@ -1399,6 +1638,12 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeDoubleSize( 19, predictedConversionsChangeFraction_); } + if (effectiveness_ + != com.google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness + .EFFECTIVENESS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, effectiveness_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1500,6 +1745,7 @@ public boolean equals(final java.lang.Object obj) { != java.lang.Double.doubleToLongBits(other.getPredictedConversionsChangeFraction())) return false; } + if (effectiveness_ != other.effectiveness_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1596,6 +1842,8 @@ public int hashCode() { + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getPredictedConversionsChangeFraction())); } + hash = (37 * hash) + EFFECTIVENESS_FIELD_NUMBER; + hash = (53 * hash) + effectiveness_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1781,6 +2029,7 @@ public Builder clear() { predictedImpressionsChangeFraction_ = 0D; predictedClicksChangeFraction_ = 0D; predictedConversionsChangeFraction_ = 0D; + effectiveness_ = 0; return this; } @@ -1898,6 +2147,9 @@ private void buildPartial0( result.predictedConversionsChangeFraction_ = predictedConversionsChangeFraction_; to_bitField0_ |= 0x00040000; } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.effectiveness_ = effectiveness_; + } result.bitField0_ |= to_bitField0_; } @@ -2035,6 +2287,9 @@ public Builder mergeFrom( if (other.hasPredictedConversionsChangeFraction()) { setPredictedConversionsChangeFraction(other.getPredictedConversionsChangeFraction()); } + if (other.effectiveness_ != 0) { + setEffectivenessValue(other.getEffectivenessValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2175,6 +2430,12 @@ public Builder mergeFrom( bitField0_ |= 0x00040000; break; } // case 153 + case 176: + { + effectiveness_ = input.readEnum(); + bitField0_ |= 0x00080000; + break; + } // case 176 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4552,6 +4813,112 @@ public Builder clearPredictedConversionsChangeFraction() { return this; } + private int effectiveness_ = 0; + /** + * + * + *
+     * The predicted effectiveness of applying the price suggestion, bucketed.
+     * 
+ * + * + * .google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness effectiveness = 22; + * + * + * @return The enum numeric value on the wire for effectiveness. + */ + @java.lang.Override + public int getEffectivenessValue() { + return effectiveness_; + } + /** + * + * + *
+     * The predicted effectiveness of applying the price suggestion, bucketed.
+     * 
+ * + * + * .google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness effectiveness = 22; + * + * + * @param value The enum numeric value on the wire for effectiveness to set. + * @return This builder for chaining. + */ + public Builder setEffectivenessValue(int value) { + effectiveness_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
+     * The predicted effectiveness of applying the price suggestion, bucketed.
+     * 
+ * + * + * .google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness effectiveness = 22; + * + * + * @return The effectiveness. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness + getEffectiveness() { + com.google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness result = + com.google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness + .forNumber(effectiveness_); + return result == null + ? com.google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The predicted effectiveness of applying the price suggestion, bucketed.
+     * 
+ * + * + * .google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness effectiveness = 22; + * + * + * @param value The effectiveness to set. + * @return This builder for chaining. + */ + public Builder setEffectiveness( + com.google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00080000; + effectiveness_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The predicted effectiveness of applying the price suggestion, bucketed.
+     * 
+ * + * + * .google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness effectiveness = 22; + * + * + * @return This builder for chaining. + */ + public Builder clearEffectiveness() { + bitField0_ = (bitField0_ & ~0x00080000); + effectiveness_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceInsightsProductViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceInsightsProductViewOrBuilder.java index ef7273dd3ed3..b0d87e00066b 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceInsightsProductViewOrBuilder.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/PriceInsightsProductViewOrBuilder.java @@ -740,4 +740,34 @@ public interface PriceInsightsProductViewOrBuilder * @return The predictedConversionsChangeFraction. */ double getPredictedConversionsChangeFraction(); + + /** + * + * + *
+   * The predicted effectiveness of applying the price suggestion, bucketed.
+   * 
+ * + * + * .google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness effectiveness = 22; + * + * + * @return The enum numeric value on the wire for effectiveness. + */ + int getEffectivenessValue(); + /** + * + * + *
+   * The predicted effectiveness of applying the price suggestion, bucketed.
+   * 
+ * + * + * .google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness effectiveness = 22; + * + * + * @return The effectiveness. + */ + com.google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Effectiveness + getEffectiveness(); } diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductView.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductView.java index 79f2a81063a8..06a92b9c0472 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductView.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductView.java @@ -106,7 +106,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * Here's an example of how the aggregated status is computed: * - * Free listings | Shopping Ads | Status + * Free listings | Shopping ads | Status * --------------|--------------|------------------------------ * Approved | Approved | ELIGIBLE * Approved | Pending | ELIGIBLE @@ -7578,7 +7578,7 @@ public com.google.protobuf.ByteString getAvailabilityBytes() { *
    * Normalized [shipping
    * label](https://support.google.com/merchants/answer/6324504) specified in
-   * the feed.
+   * the data source.
    * 
* * optional string shipping_label = 20; @@ -7595,7 +7595,7 @@ public boolean hasShippingLabel() { *
    * Normalized [shipping
    * label](https://support.google.com/merchants/answer/6324504) specified in
-   * the feed.
+   * the data source.
    * 
* * optional string shipping_label = 20; @@ -7620,7 +7620,7 @@ public java.lang.String getShippingLabel() { *
    * Normalized [shipping
    * label](https://support.google.com/merchants/answer/6324504) specified in
-   * the feed.
+   * the data source.
    * 
* * optional string shipping_label = 20; @@ -12044,7 +12044,7 @@ public Builder setAvailabilityBytes(com.google.protobuf.ByteString value) { *
      * Normalized [shipping
      * label](https://support.google.com/merchants/answer/6324504) specified in
-     * the feed.
+     * the data source.
      * 
* * optional string shipping_label = 20; @@ -12060,7 +12060,7 @@ public boolean hasShippingLabel() { *
      * Normalized [shipping
      * label](https://support.google.com/merchants/answer/6324504) specified in
-     * the feed.
+     * the data source.
      * 
* * optional string shipping_label = 20; @@ -12084,7 +12084,7 @@ public java.lang.String getShippingLabel() { *
      * Normalized [shipping
      * label](https://support.google.com/merchants/answer/6324504) specified in
-     * the feed.
+     * the data source.
      * 
* * optional string shipping_label = 20; @@ -12108,7 +12108,7 @@ public com.google.protobuf.ByteString getShippingLabelBytes() { *
      * Normalized [shipping
      * label](https://support.google.com/merchants/answer/6324504) specified in
-     * the feed.
+     * the data source.
      * 
* * optional string shipping_label = 20; @@ -12131,7 +12131,7 @@ public Builder setShippingLabel(java.lang.String value) { *
      * Normalized [shipping
      * label](https://support.google.com/merchants/answer/6324504) specified in
-     * the feed.
+     * the data source.
      * 
* * optional string shipping_label = 20; @@ -12150,7 +12150,7 @@ public Builder clearShippingLabel() { *
      * Normalized [shipping
      * label](https://support.google.com/merchants/answer/6324504) specified in
-     * the feed.
+     * the data source.
      * 
* * optional string shipping_label = 20; diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductViewOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductViewOrBuilder.java index 6d79e693c470..aab679744c12 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductViewOrBuilder.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ProductViewOrBuilder.java @@ -819,7 +819,7 @@ public interface ProductViewOrBuilder *
    * Normalized [shipping
    * label](https://support.google.com/merchants/answer/6324504) specified in
-   * the feed.
+   * the data source.
    * 
* * optional string shipping_label = 20; @@ -833,7 +833,7 @@ public interface ProductViewOrBuilder *
    * Normalized [shipping
    * label](https://support.google.com/merchants/answer/6324504) specified in
-   * the feed.
+   * the data source.
    * 
* * optional string shipping_label = 20; @@ -847,7 +847,7 @@ public interface ProductViewOrBuilder *
    * Normalized [shipping
    * label](https://support.google.com/merchants/answer/6324504) specified in
-   * the feed.
+   * the data source.
    * 
* * optional string shipping_label = 20; diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportRow.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportRow.java index 689dff02a2c5..0fd25c58873a 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportRow.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportRow.java @@ -125,6 +125,65 @@ public boolean hasProductPerformanceView() { : productPerformanceView_; } + public static final int NON_PRODUCT_PERFORMANCE_VIEW_FIELD_NUMBER = 7; + private com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView + nonProductPerformanceView_; + /** + * + * + *
+   * Fields available for query in `non_product_performance_view` table.
+   * 
+ * + * + * .google.shopping.merchant.reports.v1beta.NonProductPerformanceView non_product_performance_view = 7; + * + * + * @return Whether the nonProductPerformanceView field is set. + */ + @java.lang.Override + public boolean hasNonProductPerformanceView() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Fields available for query in `non_product_performance_view` table.
+   * 
+ * + * + * .google.shopping.merchant.reports.v1beta.NonProductPerformanceView non_product_performance_view = 7; + * + * + * @return The nonProductPerformanceView. + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView + getNonProductPerformanceView() { + return nonProductPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.getDefaultInstance() + : nonProductPerformanceView_; + } + /** + * + * + *
+   * Fields available for query in `non_product_performance_view` table.
+   * 
+ * + * + * .google.shopping.merchant.reports.v1beta.NonProductPerformanceView non_product_performance_view = 7; + * + */ + @java.lang.Override + public com.google.shopping.merchant.reports.v1beta.NonProductPerformanceViewOrBuilder + getNonProductPerformanceViewOrBuilder() { + return nonProductPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.getDefaultInstance() + : nonProductPerformanceView_; + } + public static final int PRODUCT_VIEW_FIELD_NUMBER = 2; private com.google.shopping.merchant.reports.v1beta.ProductView productView_; /** @@ -140,7 +199,7 @@ public boolean hasProductPerformanceView() { */ @java.lang.Override public boolean hasProductView() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -194,7 +253,7 @@ public com.google.shopping.merchant.reports.v1beta.ProductView getProductView() */ @java.lang.Override public boolean hasPriceCompetitivenessProductView() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -255,7 +314,7 @@ public boolean hasPriceCompetitivenessProductView() { */ @java.lang.Override public boolean hasPriceInsightsProductView() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -314,7 +373,7 @@ public boolean hasPriceInsightsProductView() { */ @java.lang.Override public boolean hasBestSellersProductClusterView() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -374,7 +433,7 @@ public boolean hasBestSellersProductClusterView() { */ @java.lang.Override public boolean hasBestSellersBrandView() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -434,7 +493,7 @@ public boolean hasBestSellersBrandView() { */ @java.lang.Override public boolean hasCompetitiveVisibilityCompetitorView() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -498,7 +557,7 @@ public boolean hasCompetitiveVisibilityCompetitorView() { */ @java.lang.Override public boolean hasCompetitiveVisibilityTopMerchantView() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -562,7 +621,7 @@ public boolean hasCompetitiveVisibilityTopMerchantView() { */ @java.lang.Override public boolean hasCompetitiveVisibilityBenchmarkView() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -624,28 +683,31 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getProductPerformanceView()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(2, getProductView()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(3, getPriceCompetitivenessProductView()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(4, getPriceInsightsProductView()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(5, getBestSellersProductClusterView()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(6, getBestSellersBrandView()); } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(8, getCompetitiveVisibilityCompetitorView()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getNonProductPerformanceView()); } if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(9, getCompetitiveVisibilityTopMerchantView()); + output.writeMessage(8, getCompetitiveVisibilityCompetitorView()); } if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(9, getCompetitiveVisibilityTopMerchantView()); + } + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(10, getCompetitiveVisibilityBenchmarkView()); } getUnknownFields().writeTo(output); @@ -661,39 +723,44 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProductPerformanceView()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProductView()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 3, getPriceCompetitivenessProductView()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 4, getPriceInsightsProductView()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 5, getBestSellersProductClusterView()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBestSellersBrandView()); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getCompetitiveVisibilityCompetitorView()); + 7, getNonProductPerformanceView()); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, getCompetitiveVisibilityTopMerchantView()); + 8, getCompetitiveVisibilityCompetitorView()); } if (((bitField0_ & 0x00000100) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, getCompetitiveVisibilityTopMerchantView()); + } + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 10, getCompetitiveVisibilityBenchmarkView()); @@ -718,6 +785,11 @@ public boolean equals(final java.lang.Object obj) { if (hasProductPerformanceView()) { if (!getProductPerformanceView().equals(other.getProductPerformanceView())) return false; } + if (hasNonProductPerformanceView() != other.hasNonProductPerformanceView()) return false; + if (hasNonProductPerformanceView()) { + if (!getNonProductPerformanceView().equals(other.getNonProductPerformanceView())) + return false; + } if (hasProductView() != other.hasProductView()) return false; if (hasProductView()) { if (!getProductView().equals(other.getProductView())) return false; @@ -775,6 +847,10 @@ public int hashCode() { hash = (37 * hash) + PRODUCT_PERFORMANCE_VIEW_FIELD_NUMBER; hash = (53 * hash) + getProductPerformanceView().hashCode(); } + if (hasNonProductPerformanceView()) { + hash = (37 * hash) + NON_PRODUCT_PERFORMANCE_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getNonProductPerformanceView().hashCode(); + } if (hasProductView()) { hash = (37 * hash) + PRODUCT_VIEW_FIELD_NUMBER; hash = (53 * hash) + getProductView().hashCode(); @@ -953,6 +1029,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getProductPerformanceViewFieldBuilder(); + getNonProductPerformanceViewFieldBuilder(); getProductViewFieldBuilder(); getPriceCompetitivenessProductViewFieldBuilder(); getPriceInsightsProductViewFieldBuilder(); @@ -973,6 +1050,11 @@ public Builder clear() { productPerformanceViewBuilder_.dispose(); productPerformanceViewBuilder_ = null; } + nonProductPerformanceView_ = null; + if (nonProductPerformanceViewBuilder_ != null) { + nonProductPerformanceViewBuilder_.dispose(); + nonProductPerformanceViewBuilder_ = null; + } productView_ = null; if (productViewBuilder_ != null) { productViewBuilder_.dispose(); @@ -1058,58 +1140,65 @@ private void buildPartial0(com.google.shopping.merchant.reports.v1beta.ReportRow to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.productView_ = - productViewBuilder_ == null ? productView_ : productViewBuilder_.build(); + result.nonProductPerformanceView_ = + nonProductPerformanceViewBuilder_ == null + ? nonProductPerformanceView_ + : nonProductPerformanceViewBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.productView_ = + productViewBuilder_ == null ? productView_ : productViewBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.priceCompetitivenessProductView_ = priceCompetitivenessProductViewBuilder_ == null ? priceCompetitivenessProductView_ : priceCompetitivenessProductViewBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.priceInsightsProductView_ = priceInsightsProductViewBuilder_ == null ? priceInsightsProductView_ : priceInsightsProductViewBuilder_.build(); - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.bestSellersProductClusterView_ = bestSellersProductClusterViewBuilder_ == null ? bestSellersProductClusterView_ : bestSellersProductClusterViewBuilder_.build(); - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.bestSellersBrandView_ = bestSellersBrandViewBuilder_ == null ? bestSellersBrandView_ : bestSellersBrandViewBuilder_.build(); - to_bitField0_ |= 0x00000020; + to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.competitiveVisibilityCompetitorView_ = competitiveVisibilityCompetitorViewBuilder_ == null ? competitiveVisibilityCompetitorView_ : competitiveVisibilityCompetitorViewBuilder_.build(); - to_bitField0_ |= 0x00000040; + to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.competitiveVisibilityTopMerchantView_ = competitiveVisibilityTopMerchantViewBuilder_ == null ? competitiveVisibilityTopMerchantView_ : competitiveVisibilityTopMerchantViewBuilder_.build(); - to_bitField0_ |= 0x00000080; + to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.competitiveVisibilityBenchmarkView_ = competitiveVisibilityBenchmarkViewBuilder_ == null ? competitiveVisibilityBenchmarkView_ : competitiveVisibilityBenchmarkViewBuilder_.build(); - to_bitField0_ |= 0x00000100; + to_bitField0_ |= 0x00000200; } result.bitField0_ |= to_bitField0_; } @@ -1163,6 +1252,9 @@ public Builder mergeFrom(com.google.shopping.merchant.reports.v1beta.ReportRow o if (other.hasProductPerformanceView()) { mergeProductPerformanceView(other.getProductPerformanceView()); } + if (other.hasNonProductPerformanceView()) { + mergeNonProductPerformanceView(other.getNonProductPerformanceView()); + } if (other.hasProductView()) { mergeProductView(other.getProductView()); } @@ -1223,7 +1315,7 @@ public Builder mergeFrom( case 18: { input.readMessage(getProductViewFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 case 26: @@ -1231,36 +1323,43 @@ public Builder mergeFrom( input.readMessage( getPriceCompetitivenessProductViewFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage( getPriceInsightsProductViewFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 34 case 42: { input.readMessage( getBestSellersProductClusterViewFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 42 case 50: { input.readMessage( getBestSellersBrandViewFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 50 + case 58: + { + input.readMessage( + getNonProductPerformanceViewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 58 case 66: { input.readMessage( getCompetitiveVisibilityCompetitorViewFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 66 case 74: @@ -1268,7 +1367,7 @@ public Builder mergeFrom( input.readMessage( getCompetitiveVisibilityTopMerchantViewFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 74 case 82: @@ -1276,7 +1375,7 @@ public Builder mergeFrom( input.readMessage( getCompetitiveVisibilityBenchmarkViewFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 82 default: @@ -1513,6 +1612,221 @@ public Builder clearProductPerformanceView() { return productPerformanceViewBuilder_; } + private com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView + nonProductPerformanceView_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView, + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.Builder, + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceViewOrBuilder> + nonProductPerformanceViewBuilder_; + /** + * + * + *
+     * Fields available for query in `non_product_performance_view` table.
+     * 
+ * + * + * .google.shopping.merchant.reports.v1beta.NonProductPerformanceView non_product_performance_view = 7; + * + * + * @return Whether the nonProductPerformanceView field is set. + */ + public boolean hasNonProductPerformanceView() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Fields available for query in `non_product_performance_view` table.
+     * 
+ * + * + * .google.shopping.merchant.reports.v1beta.NonProductPerformanceView non_product_performance_view = 7; + * + * + * @return The nonProductPerformanceView. + */ + public com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView + getNonProductPerformanceView() { + if (nonProductPerformanceViewBuilder_ == null) { + return nonProductPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView + .getDefaultInstance() + : nonProductPerformanceView_; + } else { + return nonProductPerformanceViewBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Fields available for query in `non_product_performance_view` table.
+     * 
+ * + * + * .google.shopping.merchant.reports.v1beta.NonProductPerformanceView non_product_performance_view = 7; + * + */ + public Builder setNonProductPerformanceView( + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView value) { + if (nonProductPerformanceViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nonProductPerformanceView_ = value; + } else { + nonProductPerformanceViewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Fields available for query in `non_product_performance_view` table.
+     * 
+ * + * + * .google.shopping.merchant.reports.v1beta.NonProductPerformanceView non_product_performance_view = 7; + * + */ + public Builder setNonProductPerformanceView( + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.Builder + builderForValue) { + if (nonProductPerformanceViewBuilder_ == null) { + nonProductPerformanceView_ = builderForValue.build(); + } else { + nonProductPerformanceViewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Fields available for query in `non_product_performance_view` table.
+     * 
+ * + * + * .google.shopping.merchant.reports.v1beta.NonProductPerformanceView non_product_performance_view = 7; + * + */ + public Builder mergeNonProductPerformanceView( + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView value) { + if (nonProductPerformanceViewBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && nonProductPerformanceView_ != null + && nonProductPerformanceView_ + != com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView + .getDefaultInstance()) { + getNonProductPerformanceViewBuilder().mergeFrom(value); + } else { + nonProductPerformanceView_ = value; + } + } else { + nonProductPerformanceViewBuilder_.mergeFrom(value); + } + if (nonProductPerformanceView_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Fields available for query in `non_product_performance_view` table.
+     * 
+ * + * + * .google.shopping.merchant.reports.v1beta.NonProductPerformanceView non_product_performance_view = 7; + * + */ + public Builder clearNonProductPerformanceView() { + bitField0_ = (bitField0_ & ~0x00000002); + nonProductPerformanceView_ = null; + if (nonProductPerformanceViewBuilder_ != null) { + nonProductPerformanceViewBuilder_.dispose(); + nonProductPerformanceViewBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Fields available for query in `non_product_performance_view` table.
+     * 
+ * + * + * .google.shopping.merchant.reports.v1beta.NonProductPerformanceView non_product_performance_view = 7; + * + */ + public com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.Builder + getNonProductPerformanceViewBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getNonProductPerformanceViewFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Fields available for query in `non_product_performance_view` table.
+     * 
+ * + * + * .google.shopping.merchant.reports.v1beta.NonProductPerformanceView non_product_performance_view = 7; + * + */ + public com.google.shopping.merchant.reports.v1beta.NonProductPerformanceViewOrBuilder + getNonProductPerformanceViewOrBuilder() { + if (nonProductPerformanceViewBuilder_ != null) { + return nonProductPerformanceViewBuilder_.getMessageOrBuilder(); + } else { + return nonProductPerformanceView_ == null + ? com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView + .getDefaultInstance() + : nonProductPerformanceView_; + } + } + /** + * + * + *
+     * Fields available for query in `non_product_performance_view` table.
+     * 
+ * + * + * .google.shopping.merchant.reports.v1beta.NonProductPerformanceView non_product_performance_view = 7; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView, + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.Builder, + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceViewOrBuilder> + getNonProductPerformanceViewFieldBuilder() { + if (nonProductPerformanceViewBuilder_ == null) { + nonProductPerformanceViewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView, + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView.Builder, + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceViewOrBuilder>( + getNonProductPerformanceView(), getParentForChildren(), isClean()); + nonProductPerformanceView_ = null; + } + return nonProductPerformanceViewBuilder_; + } + private com.google.shopping.merchant.reports.v1beta.ProductView productView_; private com.google.protobuf.SingleFieldBuilderV3< com.google.shopping.merchant.reports.v1beta.ProductView, @@ -1531,7 +1845,7 @@ public Builder clearProductPerformanceView() { * @return Whether the productView field is set. */ public boolean hasProductView() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1571,7 +1885,7 @@ public Builder setProductView(com.google.shopping.merchant.reports.v1beta.Produc } else { productViewBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1591,7 +1905,7 @@ public Builder setProductView( } else { productViewBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1606,7 +1920,7 @@ public Builder setProductView( */ public Builder mergeProductView(com.google.shopping.merchant.reports.v1beta.ProductView value) { if (productViewBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) + if (((bitField0_ & 0x00000004) != 0) && productView_ != null && productView_ != com.google.shopping.merchant.reports.v1beta.ProductView.getDefaultInstance()) { @@ -1618,7 +1932,7 @@ public Builder mergeProductView(com.google.shopping.merchant.reports.v1beta.Prod productViewBuilder_.mergeFrom(value); } if (productView_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } return this; @@ -1633,7 +1947,7 @@ public Builder mergeProductView(com.google.shopping.merchant.reports.v1beta.Prod * .google.shopping.merchant.reports.v1beta.ProductView product_view = 2; */ public Builder clearProductView() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); productView_ = null; if (productViewBuilder_ != null) { productViewBuilder_.dispose(); @@ -1652,7 +1966,7 @@ public Builder clearProductView() { * .google.shopping.merchant.reports.v1beta.ProductView product_view = 2; */ public com.google.shopping.merchant.reports.v1beta.ProductView.Builder getProductViewBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return getProductViewFieldBuilder().getBuilder(); } @@ -1722,7 +2036,7 @@ public com.google.shopping.merchant.reports.v1beta.ProductView.Builder getProduc * @return Whether the priceCompetitivenessProductView field is set. */ public boolean hasPriceCompetitivenessProductView() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1769,7 +2083,7 @@ public Builder setPriceCompetitivenessProductView( } else { priceCompetitivenessProductViewBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1792,7 +2106,7 @@ public Builder setPriceCompetitivenessProductView( } else { priceCompetitivenessProductViewBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1810,7 +2124,7 @@ public Builder setPriceCompetitivenessProductView( public Builder mergePriceCompetitivenessProductView( com.google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView value) { if (priceCompetitivenessProductViewBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && priceCompetitivenessProductView_ != null && priceCompetitivenessProductView_ != com.google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView @@ -1823,7 +2137,7 @@ public Builder mergePriceCompetitivenessProductView( priceCompetitivenessProductViewBuilder_.mergeFrom(value); } if (priceCompetitivenessProductView_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -1840,7 +2154,7 @@ public Builder mergePriceCompetitivenessProductView( * */ public Builder clearPriceCompetitivenessProductView() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); priceCompetitivenessProductView_ = null; if (priceCompetitivenessProductViewBuilder_ != null) { priceCompetitivenessProductViewBuilder_.dispose(); @@ -1862,7 +2176,7 @@ public Builder clearPriceCompetitivenessProductView() { */ public com.google.shopping.merchant.reports.v1beta.PriceCompetitivenessProductView.Builder getPriceCompetitivenessProductViewBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return getPriceCompetitivenessProductViewFieldBuilder().getBuilder(); } @@ -1938,7 +2252,7 @@ public Builder clearPriceCompetitivenessProductView() { * @return Whether the priceInsightsProductView field is set. */ public boolean hasPriceInsightsProductView() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1985,7 +2299,7 @@ public Builder setPriceInsightsProductView( } else { priceInsightsProductViewBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2008,7 +2322,7 @@ public Builder setPriceInsightsProductView( } else { priceInsightsProductViewBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2026,7 +2340,7 @@ public Builder setPriceInsightsProductView( public Builder mergePriceInsightsProductView( com.google.shopping.merchant.reports.v1beta.PriceInsightsProductView value) { if (priceInsightsProductViewBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && priceInsightsProductView_ != null && priceInsightsProductView_ != com.google.shopping.merchant.reports.v1beta.PriceInsightsProductView @@ -2039,7 +2353,7 @@ public Builder mergePriceInsightsProductView( priceInsightsProductViewBuilder_.mergeFrom(value); } if (priceInsightsProductView_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -2056,7 +2370,7 @@ public Builder mergePriceInsightsProductView( *
*/ public Builder clearPriceInsightsProductView() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); priceInsightsProductView_ = null; if (priceInsightsProductViewBuilder_ != null) { priceInsightsProductViewBuilder_.dispose(); @@ -2078,7 +2392,7 @@ public Builder clearPriceInsightsProductView() { */ public com.google.shopping.merchant.reports.v1beta.PriceInsightsProductView.Builder getPriceInsightsProductViewBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return getPriceInsightsProductViewFieldBuilder().getBuilder(); } @@ -2153,7 +2467,7 @@ public Builder clearPriceInsightsProductView() { * @return Whether the bestSellersProductClusterView field is set. */ public boolean hasBestSellersProductClusterView() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2200,7 +2514,7 @@ public Builder setBestSellersProductClusterView( } else { bestSellersProductClusterViewBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2223,7 +2537,7 @@ public Builder setBestSellersProductClusterView( } else { bestSellersProductClusterViewBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2241,7 +2555,7 @@ public Builder setBestSellersProductClusterView( public Builder mergeBestSellersProductClusterView( com.google.shopping.merchant.reports.v1beta.BestSellersProductClusterView value) { if (bestSellersProductClusterViewBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && bestSellersProductClusterView_ != null && bestSellersProductClusterView_ != com.google.shopping.merchant.reports.v1beta.BestSellersProductClusterView @@ -2254,7 +2568,7 @@ public Builder mergeBestSellersProductClusterView( bestSellersProductClusterViewBuilder_.mergeFrom(value); } if (bestSellersProductClusterView_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -2271,7 +2585,7 @@ public Builder mergeBestSellersProductClusterView( * */ public Builder clearBestSellersProductClusterView() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); bestSellersProductClusterView_ = null; if (bestSellersProductClusterViewBuilder_ != null) { bestSellersProductClusterViewBuilder_.dispose(); @@ -2293,7 +2607,7 @@ public Builder clearBestSellersProductClusterView() { */ public com.google.shopping.merchant.reports.v1beta.BestSellersProductClusterView.Builder getBestSellersProductClusterViewBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return getBestSellersProductClusterViewFieldBuilder().getBuilder(); } @@ -2367,7 +2681,7 @@ public Builder clearBestSellersProductClusterView() { * @return Whether the bestSellersBrandView field is set. */ public boolean hasBestSellersBrandView() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2413,7 +2727,7 @@ public Builder setBestSellersBrandView( } else { bestSellersBrandViewBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2435,7 +2749,7 @@ public Builder setBestSellersBrandView( } else { bestSellersBrandViewBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2453,7 +2767,7 @@ public Builder setBestSellersBrandView( public Builder mergeBestSellersBrandView( com.google.shopping.merchant.reports.v1beta.BestSellersBrandView value) { if (bestSellersBrandViewBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && bestSellersBrandView_ != null && bestSellersBrandView_ != com.google.shopping.merchant.reports.v1beta.BestSellersBrandView @@ -2466,7 +2780,7 @@ public Builder mergeBestSellersBrandView( bestSellersBrandViewBuilder_.mergeFrom(value); } if (bestSellersBrandView_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2483,7 +2797,7 @@ public Builder mergeBestSellersBrandView( *
*/ public Builder clearBestSellersBrandView() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); bestSellersBrandView_ = null; if (bestSellersBrandViewBuilder_ != null) { bestSellersBrandViewBuilder_.dispose(); @@ -2505,7 +2819,7 @@ public Builder clearBestSellersBrandView() { */ public com.google.shopping.merchant.reports.v1beta.BestSellersBrandView.Builder getBestSellersBrandViewBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getBestSellersBrandViewFieldBuilder().getBuilder(); } @@ -2581,7 +2895,7 @@ public Builder clearBestSellersBrandView() { * @return Whether the competitiveVisibilityCompetitorView field is set. */ public boolean hasCompetitiveVisibilityCompetitorView() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2630,7 +2944,7 @@ public Builder setCompetitiveVisibilityCompetitorView( } else { competitiveVisibilityCompetitorViewBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2654,7 +2968,7 @@ public Builder setCompetitiveVisibilityCompetitorView( } else { competitiveVisibilityCompetitorViewBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2673,7 +2987,7 @@ public Builder setCompetitiveVisibilityCompetitorView( public Builder mergeCompetitiveVisibilityCompetitorView( com.google.shopping.merchant.reports.v1beta.CompetitiveVisibilityCompetitorView value) { if (competitiveVisibilityCompetitorViewBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && competitiveVisibilityCompetitorView_ != null && competitiveVisibilityCompetitorView_ != com.google.shopping.merchant.reports.v1beta.CompetitiveVisibilityCompetitorView @@ -2686,7 +3000,7 @@ public Builder mergeCompetitiveVisibilityCompetitorView( competitiveVisibilityCompetitorViewBuilder_.mergeFrom(value); } if (competitiveVisibilityCompetitorView_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -2704,7 +3018,7 @@ public Builder mergeCompetitiveVisibilityCompetitorView( * */ public Builder clearCompetitiveVisibilityCompetitorView() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); competitiveVisibilityCompetitorView_ = null; if (competitiveVisibilityCompetitorViewBuilder_ != null) { competitiveVisibilityCompetitorViewBuilder_.dispose(); @@ -2727,7 +3041,7 @@ public Builder clearCompetitiveVisibilityCompetitorView() { */ public com.google.shopping.merchant.reports.v1beta.CompetitiveVisibilityCompetitorView.Builder getCompetitiveVisibilityCompetitorViewBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return getCompetitiveVisibilityCompetitorViewFieldBuilder().getBuilder(); } @@ -2810,7 +3124,7 @@ public Builder clearCompetitiveVisibilityCompetitorView() { * @return Whether the competitiveVisibilityTopMerchantView field is set. */ public boolean hasCompetitiveVisibilityTopMerchantView() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -2859,7 +3173,7 @@ public Builder setCompetitiveVisibilityTopMerchantView( } else { competitiveVisibilityTopMerchantViewBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2883,7 +3197,7 @@ public Builder setCompetitiveVisibilityTopMerchantView( } else { competitiveVisibilityTopMerchantViewBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2902,7 +3216,7 @@ public Builder setCompetitiveVisibilityTopMerchantView( public Builder mergeCompetitiveVisibilityTopMerchantView( com.google.shopping.merchant.reports.v1beta.CompetitiveVisibilityTopMerchantView value) { if (competitiveVisibilityTopMerchantViewBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && competitiveVisibilityTopMerchantView_ != null && competitiveVisibilityTopMerchantView_ != com.google.shopping.merchant.reports.v1beta.CompetitiveVisibilityTopMerchantView @@ -2915,7 +3229,7 @@ public Builder mergeCompetitiveVisibilityTopMerchantView( competitiveVisibilityTopMerchantViewBuilder_.mergeFrom(value); } if (competitiveVisibilityTopMerchantView_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2933,7 +3247,7 @@ public Builder mergeCompetitiveVisibilityTopMerchantView( * */ public Builder clearCompetitiveVisibilityTopMerchantView() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); competitiveVisibilityTopMerchantView_ = null; if (competitiveVisibilityTopMerchantViewBuilder_ != null) { competitiveVisibilityTopMerchantViewBuilder_.dispose(); @@ -2956,7 +3270,7 @@ public Builder clearCompetitiveVisibilityTopMerchantView() { */ public com.google.shopping.merchant.reports.v1beta.CompetitiveVisibilityTopMerchantView.Builder getCompetitiveVisibilityTopMerchantViewBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return getCompetitiveVisibilityTopMerchantViewFieldBuilder().getBuilder(); } @@ -3038,7 +3352,7 @@ public Builder clearCompetitiveVisibilityTopMerchantView() { * @return Whether the competitiveVisibilityBenchmarkView field is set. */ public boolean hasCompetitiveVisibilityBenchmarkView() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -3087,7 +3401,7 @@ public Builder setCompetitiveVisibilityBenchmarkView( } else { competitiveVisibilityBenchmarkViewBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3111,7 +3425,7 @@ public Builder setCompetitiveVisibilityBenchmarkView( } else { competitiveVisibilityBenchmarkViewBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3130,7 +3444,7 @@ public Builder setCompetitiveVisibilityBenchmarkView( public Builder mergeCompetitiveVisibilityBenchmarkView( com.google.shopping.merchant.reports.v1beta.CompetitiveVisibilityBenchmarkView value) { if (competitiveVisibilityBenchmarkViewBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && competitiveVisibilityBenchmarkView_ != null && competitiveVisibilityBenchmarkView_ != com.google.shopping.merchant.reports.v1beta.CompetitiveVisibilityBenchmarkView @@ -3143,7 +3457,7 @@ public Builder mergeCompetitiveVisibilityBenchmarkView( competitiveVisibilityBenchmarkViewBuilder_.mergeFrom(value); } if (competitiveVisibilityBenchmarkView_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -3161,7 +3475,7 @@ public Builder mergeCompetitiveVisibilityBenchmarkView( * */ public Builder clearCompetitiveVisibilityBenchmarkView() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); competitiveVisibilityBenchmarkView_ = null; if (competitiveVisibilityBenchmarkViewBuilder_ != null) { competitiveVisibilityBenchmarkViewBuilder_.dispose(); @@ -3184,7 +3498,7 @@ public Builder clearCompetitiveVisibilityBenchmarkView() { */ public com.google.shopping.merchant.reports.v1beta.CompetitiveVisibilityBenchmarkView.Builder getCompetitiveVisibilityBenchmarkViewBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return getCompetitiveVisibilityBenchmarkViewFieldBuilder().getBuilder(); } diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportRowOrBuilder.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportRowOrBuilder.java index 65b8ea3ed50f..ff372d1a46b1 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportRowOrBuilder.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportRowOrBuilder.java @@ -66,6 +66,49 @@ public interface ReportRowOrBuilder com.google.shopping.merchant.reports.v1beta.ProductPerformanceViewOrBuilder getProductPerformanceViewOrBuilder(); + /** + * + * + *
+   * Fields available for query in `non_product_performance_view` table.
+   * 
+ * + * + * .google.shopping.merchant.reports.v1beta.NonProductPerformanceView non_product_performance_view = 7; + * + * + * @return Whether the nonProductPerformanceView field is set. + */ + boolean hasNonProductPerformanceView(); + /** + * + * + *
+   * Fields available for query in `non_product_performance_view` table.
+   * 
+ * + * + * .google.shopping.merchant.reports.v1beta.NonProductPerformanceView non_product_performance_view = 7; + * + * + * @return The nonProductPerformanceView. + */ + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceView + getNonProductPerformanceView(); + /** + * + * + *
+   * Fields available for query in `non_product_performance_view` table.
+   * 
+ * + * + * .google.shopping.merchant.reports.v1beta.NonProductPerformanceView non_product_performance_view = 7; + * + */ + com.google.shopping.merchant.reports.v1beta.NonProductPerformanceViewOrBuilder + getNonProductPerformanceViewOrBuilder(); + /** * * diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportsProto.java b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportsProto.java index e9a754cbcb98..132558999507 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportsProto.java +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportsProto.java @@ -80,6 +80,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_shopping_merchant_reports_v1beta_BestSellersBrandView_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_shopping_merchant_reports_v1beta_BestSellersBrandView_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_shopping_merchant_reports_v1beta_NonProductPerformanceView_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_shopping_merchant_reports_v1beta_NonProductPerformanceView_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_shopping_merchant_reports_v1beta_CompetitiveVisibilityCompetitorView_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -133,313 +137,325 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\npage_token\030\004 \001(\tB\003\340A\001\"n\n\016SearchResponse" + "\022C\n\007results\030\001 \003(\01322.google.shopping.merc" + "hant.reports.v1beta.ReportRow\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\"\346\007\n\tReportRow\022a\n\030product_" + + "ge_token\030\002 \001(\t\"\320\010\n\tReportRow\022a\n\030product_" + "performance_view\030\001 \001(\0132?.google.shopping" + ".merchant.reports.v1beta.ProductPerforma" - + "nceView\022J\n\014product_view\030\002 \001(\01324.google.s" - + "hopping.merchant.reports.v1beta.ProductV" - + "iew\022t\n\"price_competitiveness_product_vie" - + "w\030\003 \001(\0132H.google.shopping.merchant.repor" - + "ts.v1beta.PriceCompetitivenessProductVie" - + "w\022f\n\033price_insights_product_view\030\004 \001(\0132A" + + "nceView\022h\n\034non_product_performance_view\030" + + "\007 \001(\0132B.google.shopping.merchant.reports" + + ".v1beta.NonProductPerformanceView\022J\n\014pro" + + "duct_view\030\002 \001(\01324.google.shopping.mercha" + + "nt.reports.v1beta.ProductView\022t\n\"price_c" + + "ompetitiveness_product_view\030\003 \001(\0132H.goog" + + "le.shopping.merchant.reports.v1beta.Pric" + + "eCompetitivenessProductView\022f\n\033price_ins" + + "ights_product_view\030\004 \001(\0132A.google.shoppi" + + "ng.merchant.reports.v1beta.PriceInsights" + + "ProductView\022q\n!best_sellers_product_clus" + + "ter_view\030\005 \001(\0132F.google.shopping.merchan" + + "t.reports.v1beta.BestSellersProductClust" + + "erView\022^\n\027best_sellers_brand_view\030\006 \001(\0132" + + "=.google.shopping.merchant.reports.v1bet" + + "a.BestSellersBrandView\022|\n&competitive_vi" + + "sibility_competitor_view\030\010 \001(\0132L.google." + + "shopping.merchant.reports.v1beta.Competi" + + "tiveVisibilityCompetitorView\022\177\n(competit" + + "ive_visibility_top_merchant_view\030\t \001(\0132M" + ".google.shopping.merchant.reports.v1beta" - + ".PriceInsightsProductView\022q\n!best_seller" - + "s_product_cluster_view\030\005 \001(\0132F.google.sh" - + "opping.merchant.reports.v1beta.BestSelle" - + "rsProductClusterView\022^\n\027best_sellers_bra" - + "nd_view\030\006 \001(\0132=.google.shopping.merchant" - + ".reports.v1beta.BestSellersBrandView\022|\n&" - + "competitive_visibility_competitor_view\030\010" - + " \001(\0132L.google.shopping.merchant.reports." - + "v1beta.CompetitiveVisibilityCompetitorVi" - + "ew\022\177\n(competitive_visibility_top_merchan" - + "t_view\030\t \001(\0132M.google.shopping.merchant." - + "reports.v1beta.CompetitiveVisibilityTopM" - + "erchantView\022z\n%competitive_visibility_be" - + "nchmark_view\030\n \001(\0132K.google.shopping.mer" - + "chant.reports.v1beta.CompetitiveVisibili" - + "tyBenchmarkView\"\301\n\n\026ProductPerformanceVi" - + "ew\022k\n\020marketing_method\030\001 \001(\0162L.google.sh" - + "opping.merchant.reports.v1beta.Marketing" - + "Method.MarketingMethodEnumH\000\210\001\001\022\037\n\004date\030" - + "\002 \001(\0132\021.google.type.Date\022\037\n\004week\030\003 \001(\0132\021" - + ".google.type.Date\022\"\n\025customer_country_co" - + "de\030\004 \001(\tH\001\210\001\001\022\025\n\010offer_id\030\005 \001(\tH\002\210\001\001\022\022\n\005" - + "title\030\006 \001(\tH\003\210\001\001\022\022\n\005brand\030\007 \001(\tH\004\210\001\001\022\030\n\013" - + "category_l1\030\010 \001(\tH\005\210\001\001\022\030\n\013category_l2\030\t " - + "\001(\tH\006\210\001\001\022\030\n\013category_l3\030\n \001(\tH\007\210\001\001\022\030\n\013ca" - + "tegory_l4\030\013 \001(\tH\010\210\001\001\022\030\n\013category_l5\030\014 \001(" - + "\tH\t\210\001\001\022\034\n\017product_type_l1\030\r \001(\tH\n\210\001\001\022\034\n\017" - + "product_type_l2\030\016 \001(\tH\013\210\001\001\022\034\n\017product_ty" - + "pe_l3\030\017 \001(\tH\014\210\001\001\022\034\n\017product_type_l4\030\020 \001(" - + "\tH\r\210\001\001\022\034\n\017product_type_l5\030\021 \001(\tH\016\210\001\001\022\032\n\r" - + "custom_label0\030\022 \001(\tH\017\210\001\001\022\032\n\rcustom_label" - + "1\030\023 \001(\tH\020\210\001\001\022\032\n\rcustom_label2\030\024 \001(\tH\021\210\001\001" - + "\022\032\n\rcustom_label3\030\025 \001(\tH\022\210\001\001\022\032\n\rcustom_l" - + "abel4\030\026 \001(\tH\023\210\001\001\022\023\n\006clicks\030\027 \001(\003H\024\210\001\001\022\030\n" - + "\013impressions\030\030 \001(\003H\025\210\001\001\022\037\n\022click_through" - + "_rate\030\031 \001(\001H\026\210\001\001\022\030\n\013conversions\030\032 \001(\001H\027\210" - + "\001\001\0225\n\020conversion_value\030\033 \001(\0132\033.google.sh" - + "opping.type.Price\022\034\n\017conversion_rate\030\034 \001" - + "(\001H\030\210\001\001B\023\n\021_marketing_methodB\030\n\026_custome" - + "r_country_codeB\013\n\t_offer_idB\010\n\006_titleB\010\n" - + "\006_brandB\016\n\014_category_l1B\016\n\014_category_l2B" - + "\016\n\014_category_l3B\016\n\014_category_l4B\016\n\014_cate" - + "gory_l5B\022\n\020_product_type_l1B\022\n\020_product_" - + "type_l2B\022\n\020_product_type_l3B\022\n\020_product_" - + "type_l4B\022\n\020_product_type_l5B\020\n\016_custom_l" - + "abel0B\020\n\016_custom_label1B\020\n\016_custom_label" - + "2B\020\n\016_custom_label3B\020\n\016_custom_label4B\t\n" - + "\007_clicksB\016\n\014_impressionsB\025\n\023_click_throu" - + "gh_rateB\016\n\014_conversionsB\022\n\020_conversion_r" - + "ate\"\302\027\n\013ProductView\022\017\n\002id\030\001 \001(\tH\000\210\001\001\022?\n\007" - + "channel\030\034 \001(\0162).google.shopping.type.Cha" - + "nnel.ChannelEnumH\001\210\001\001\022\032\n\rlanguage_code\030\002" - + " \001(\tH\002\210\001\001\022\027\n\nfeed_label\030\003 \001(\tH\003\210\001\001\022\025\n\010of" - + "fer_id\030\004 \001(\tH\004\210\001\001\022\022\n\005title\030\005 \001(\tH\005\210\001\001\022\022\n" - + "\005brand\030\006 \001(\tH\006\210\001\001\022\030\n\013category_l1\030\007 \001(\tH\007" - + "\210\001\001\022\030\n\013category_l2\030\010 \001(\tH\010\210\001\001\022\030\n\013categor" - + "y_l3\030\t \001(\tH\t\210\001\001\022\030\n\013category_l4\030\n \001(\tH\n\210\001" - + "\001\022\030\n\013category_l5\030\013 \001(\tH\013\210\001\001\022\034\n\017product_t" - + "ype_l1\030\014 \001(\tH\014\210\001\001\022\034\n\017product_type_l2\030\r \001" - + "(\tH\r\210\001\001\022\034\n\017product_type_l3\030\016 \001(\tH\016\210\001\001\022\034\n" - + "\017product_type_l4\030\017 \001(\tH\017\210\001\001\022\034\n\017product_t" - + "ype_l5\030\020 \001(\tH\020\210\001\001\022*\n\005price\030\021 \001(\0132\033.googl" - + "e.shopping.type.Price\022\026\n\tcondition\030\022 \001(\t" - + "H\021\210\001\001\022\031\n\014availability\030\023 \001(\tH\022\210\001\001\022\033\n\016ship" - + "ping_label\030\024 \001(\tH\023\210\001\001\022\014\n\004gtin\030\025 \003(\t\022\032\n\ri" - + "tem_group_id\030\026 \001(\tH\024\210\001\001\022\033\n\016thumbnail_lin" - + "k\030\027 \001(\tH\025\210\001\001\0221\n\rcreation_time\030\030 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022*\n\017expiration_da" - + "te\030\031 \001(\0132\021.google.type.Date\022\207\001\n#aggregat" - + "ed_reporting_context_status\030\032 \001(\0162U.goog" + + ".CompetitiveVisibilityTopMerchantView\022z\n" + + "%competitive_visibility_benchmark_view\030\n" + + " \001(\0132K.google.shopping.merchant.reports." + + "v1beta.CompetitiveVisibilityBenchmarkVie" + + "w\"\301\n\n\026ProductPerformanceView\022k\n\020marketin" + + "g_method\030\001 \001(\0162L.google.shopping.merchan" + + "t.reports.v1beta.MarketingMethod.Marketi" + + "ngMethodEnumH\000\210\001\001\022\037\n\004date\030\002 \001(\0132\021.google" + + ".type.Date\022\037\n\004week\030\003 \001(\0132\021.google.type.D" + + "ate\022\"\n\025customer_country_code\030\004 \001(\tH\001\210\001\001\022" + + "\025\n\010offer_id\030\005 \001(\tH\002\210\001\001\022\022\n\005title\030\006 \001(\tH\003\210" + + "\001\001\022\022\n\005brand\030\007 \001(\tH\004\210\001\001\022\030\n\013category_l1\030\010 " + + "\001(\tH\005\210\001\001\022\030\n\013category_l2\030\t \001(\tH\006\210\001\001\022\030\n\013ca" + + "tegory_l3\030\n \001(\tH\007\210\001\001\022\030\n\013category_l4\030\013 \001(" + + "\tH\010\210\001\001\022\030\n\013category_l5\030\014 \001(\tH\t\210\001\001\022\034\n\017prod" + + "uct_type_l1\030\r \001(\tH\n\210\001\001\022\034\n\017product_type_l" + + "2\030\016 \001(\tH\013\210\001\001\022\034\n\017product_type_l3\030\017 \001(\tH\014\210" + + "\001\001\022\034\n\017product_type_l4\030\020 \001(\tH\r\210\001\001\022\034\n\017prod" + + "uct_type_l5\030\021 \001(\tH\016\210\001\001\022\032\n\rcustom_label0\030" + + "\022 \001(\tH\017\210\001\001\022\032\n\rcustom_label1\030\023 \001(\tH\020\210\001\001\022\032" + + "\n\rcustom_label2\030\024 \001(\tH\021\210\001\001\022\032\n\rcustom_lab" + + "el3\030\025 \001(\tH\022\210\001\001\022\032\n\rcustom_label4\030\026 \001(\tH\023\210" + + "\001\001\022\023\n\006clicks\030\027 \001(\003H\024\210\001\001\022\030\n\013impressions\030\030" + + " \001(\003H\025\210\001\001\022\037\n\022click_through_rate\030\031 \001(\001H\026\210" + + "\001\001\022\030\n\013conversions\030\032 \001(\001H\027\210\001\001\0225\n\020conversi" + + "on_value\030\033 \001(\0132\033.google.shopping.type.Pr" + + "ice\022\034\n\017conversion_rate\030\034 \001(\001H\030\210\001\001B\023\n\021_ma" + + "rketing_methodB\030\n\026_customer_country_code" + + "B\013\n\t_offer_idB\010\n\006_titleB\010\n\006_brandB\016\n\014_ca" + + "tegory_l1B\016\n\014_category_l2B\016\n\014_category_l" + + "3B\016\n\014_category_l4B\016\n\014_category_l5B\022\n\020_pr" + + "oduct_type_l1B\022\n\020_product_type_l2B\022\n\020_pr" + + "oduct_type_l3B\022\n\020_product_type_l4B\022\n\020_pr" + + "oduct_type_l5B\020\n\016_custom_label0B\020\n\016_cust" + + "om_label1B\020\n\016_custom_label2B\020\n\016_custom_l" + + "abel3B\020\n\016_custom_label4B\t\n\007_clicksB\016\n\014_i" + + "mpressionsB\025\n\023_click_through_rateB\016\n\014_co" + + "nversionsB\022\n\020_conversion_rate\"\302\027\n\013Produc" + + "tView\022\017\n\002id\030\001 \001(\tH\000\210\001\001\022?\n\007channel\030\034 \001(\0162" + + ").google.shopping.type.Channel.ChannelEn" + + "umH\001\210\001\001\022\032\n\rlanguage_code\030\002 \001(\tH\002\210\001\001\022\027\n\nf" + + "eed_label\030\003 \001(\tH\003\210\001\001\022\025\n\010offer_id\030\004 \001(\tH\004" + + "\210\001\001\022\022\n\005title\030\005 \001(\tH\005\210\001\001\022\022\n\005brand\030\006 \001(\tH\006" + + "\210\001\001\022\030\n\013category_l1\030\007 \001(\tH\007\210\001\001\022\030\n\013categor" + + "y_l2\030\010 \001(\tH\010\210\001\001\022\030\n\013category_l3\030\t \001(\tH\t\210\001" + + "\001\022\030\n\013category_l4\030\n \001(\tH\n\210\001\001\022\030\n\013category_" + + "l5\030\013 \001(\tH\013\210\001\001\022\034\n\017product_type_l1\030\014 \001(\tH\014" + + "\210\001\001\022\034\n\017product_type_l2\030\r \001(\tH\r\210\001\001\022\034\n\017pro" + + "duct_type_l3\030\016 \001(\tH\016\210\001\001\022\034\n\017product_type_" + + "l4\030\017 \001(\tH\017\210\001\001\022\034\n\017product_type_l5\030\020 \001(\tH\020" + + "\210\001\001\022*\n\005price\030\021 \001(\0132\033.google.shopping.typ" + + "e.Price\022\026\n\tcondition\030\022 \001(\tH\021\210\001\001\022\031\n\014avail" + + "ability\030\023 \001(\tH\022\210\001\001\022\033\n\016shipping_label\030\024 \001" + + "(\tH\023\210\001\001\022\014\n\004gtin\030\025 \003(\t\022\032\n\ritem_group_id\030\026" + + " \001(\tH\024\210\001\001\022\033\n\016thumbnail_link\030\027 \001(\tH\025\210\001\001\0221" + + "\n\rcreation_time\030\030 \001(\0132\032.google.protobuf." + + "Timestamp\022*\n\017expiration_date\030\031 \001(\0132\021.goo" + + "gle.type.Date\022\207\001\n#aggregated_reporting_c" + + "ontext_status\030\032 \001(\0162U.google.shopping.me" + + "rchant.reports.v1beta.ProductView.Aggreg" + + "atedReportingContextStatusH\026\210\001\001\022S\n\013item_" + + "issues\030\033 \003(\0132>.google.shopping.merchant." + + "reports.v1beta.ProductView.ItemIssue\022\\\n\017" + + "click_potential\030\035 \001(\0162C.google.shopping." + + "merchant.reports.v1beta.ProductView.Clic" + + "kPotential\022!\n\024click_potential_rank\030\036 \001(\003" + + "H\027\210\001\001\032\263\t\n\tItemIssue\022Z\n\004type\030\001 \001(\0132L.goog" + "le.shopping.merchant.reports.v1beta.Prod" - + "uctView.AggregatedReportingContextStatus" - + "H\026\210\001\001\022S\n\013item_issues\030\033 \003(\0132>.google.shop" - + "ping.merchant.reports.v1beta.ProductView" - + ".ItemIssue\022\\\n\017click_potential\030\035 \001(\0162C.go" + + "uctView.ItemIssue.ItemIssueType\022b\n\010sever" + + "ity\030\002 \001(\0132P.google.shopping.merchant.rep" + + "orts.v1beta.ProductView.ItemIssue.ItemIs" + + "sueSeverity\022k\n\nresolution\030\003 \001(\0162R.google" + + ".shopping.merchant.reports.v1beta.Produc" + + "tView.ItemIssue.ItemIssueResolutionH\000\210\001\001" + + "\032e\n\rItemIssueType\022\021\n\004code\030\001 \001(\tH\000\210\001\001\022 \n\023" + + "canonical_attribute\030\002 \001(\tH\001\210\001\001B\007\n\005_codeB" + + "\026\n\024_canonical_attribute\032\227\005\n\021ItemIssueSev" + + "erity\022\231\001\n\036severity_per_reporting_context" + + "\030\001 \003(\0132q.google.shopping.merchant.report" + + "s.v1beta.ProductView.ItemIssue.ItemIssue" + + "Severity.IssueSeverityPerReportingContex" + + "t\022\212\001\n\023aggregated_severity\030\002 \001(\0162h.google" + + ".shopping.merchant.reports.v1beta.Produc" + + "tView.ItemIssue.ItemIssueSeverity.Aggreg" + + "atedIssueSeverityH\000\210\001\001\032\317\001\n IssueSeverity" + + "PerReportingContext\022[\n\021reporting_context" + + "\030\001 \001(\0162;.google.shopping.type.ReportingC" + + "ontext.ReportingContextEnumH\000\210\001\001\022\035\n\025disa" + + "pproved_countries\030\002 \003(\t\022\031\n\021demoted_count" + + "ries\030\003 \003(\tB\024\n\022_reporting_context\"o\n\027Aggr" + + "egatedIssueSeverity\022)\n%AGGREGATED_ISSUE_" + + "SEVERITY_UNSPECIFIED\020\000\022\017\n\013DISAPPROVED\020\001\022" + + "\013\n\007DEMOTED\020\002\022\013\n\007PENDING\020\003B\026\n\024_aggregated" + + "_severity\"i\n\023ItemIssueResolution\022%\n!ITEM" + + "_ISSUE_RESOLUTION_UNSPECIFIED\020\000\022\023\n\017MERCH" + + "ANT_ACTION\020\001\022\026\n\022PENDING_PROCESSING\020\002B\r\n\013" + + "_resolution\"\251\001\n AggregatedReportingConte" + + "xtStatus\0223\n/AGGREGATED_REPORTING_CONTEXT" + + "_STATUS_UNSPECIFIED\020\000\022\037\n\033NOT_ELIGIBLE_OR" + + "_DISAPPROVED\020\001\022\013\n\007PENDING\020\002\022\024\n\020ELIGIBLE_" + + "LIMITED\020\003\022\014\n\010ELIGIBLE\020\004\"P\n\016ClickPotentia" + + "l\022\037\n\033CLICK_POTENTIAL_UNSPECIFIED\020\000\022\007\n\003LO" + + "W\020\001\022\n\n\006MEDIUM\020\002\022\010\n\004HIGH\020\003B\005\n\003_idB\n\n\010_cha" + + "nnelB\020\n\016_language_codeB\r\n\013_feed_labelB\013\n" + + "\t_offer_idB\010\n\006_titleB\010\n\006_brandB\016\n\014_categ" + + "ory_l1B\016\n\014_category_l2B\016\n\014_category_l3B\016" + + "\n\014_category_l4B\016\n\014_category_l5B\022\n\020_produ" + + "ct_type_l1B\022\n\020_product_type_l2B\022\n\020_produ" + + "ct_type_l3B\022\n\020_product_type_l4B\022\n\020_produ" + + "ct_type_l5B\014\n\n_conditionB\017\n\r_availabilit" + + "yB\021\n\017_shipping_labelB\020\n\016_item_group_idB\021" + + "\n\017_thumbnail_linkB&\n$_aggregated_reporti" + + "ng_context_statusB\027\n\025_click_potential_ra" + + "nk\"\201\006\n\037PriceCompetitivenessProductView\022 " + + "\n\023report_country_code\030\001 \001(\tH\000\210\001\001\022\017\n\002id\030\002" + + " \001(\tH\001\210\001\001\022\025\n\010offer_id\030\003 \001(\tH\002\210\001\001\022\022\n\005titl" + + "e\030\004 \001(\tH\003\210\001\001\022\022\n\005brand\030\005 \001(\tH\004\210\001\001\022\030\n\013cate" + + "gory_l1\030\006 \001(\tH\005\210\001\001\022\030\n\013category_l2\030\007 \001(\tH" + + "\006\210\001\001\022\030\n\013category_l3\030\010 \001(\tH\007\210\001\001\022\030\n\013catego" + + "ry_l4\030\t \001(\tH\010\210\001\001\022\030\n\013category_l5\030\n \001(\tH\t\210" + + "\001\001\022\034\n\017product_type_l1\030\013 \001(\tH\n\210\001\001\022\034\n\017prod" + + "uct_type_l2\030\014 \001(\tH\013\210\001\001\022\034\n\017product_type_l" + + "3\030\r \001(\tH\014\210\001\001\022\034\n\017product_type_l4\030\016 \001(\tH\r\210" + + "\001\001\022\034\n\017product_type_l5\030\017 \001(\tH\016\210\001\001\022*\n\005pric" + + "e\030\020 \001(\0132\033.google.shopping.type.Price\0224\n\017" + + "benchmark_price\030\021 \001(\0132\033.google.shopping." + + "type.PriceB\026\n\024_report_country_codeB\005\n\003_i" + + "dB\013\n\t_offer_idB\010\n\006_titleB\010\n\006_brandB\016\n\014_c" + + "ategory_l1B\016\n\014_category_l2B\016\n\014_category_" + + "l3B\016\n\014_category_l4B\016\n\014_category_l5B\022\n\020_p" + + "roduct_type_l1B\022\n\020_product_type_l2B\022\n\020_p" + + "roduct_type_l3B\022\n\020_product_type_l4B\022\n\020_p" + + "roduct_type_l5\"\207\t\n\030PriceInsightsProductV" + + "iew\022\017\n\002id\030\001 \001(\tH\000\210\001\001\022\025\n\010offer_id\030\002 \001(\tH\001" + + "\210\001\001\022\022\n\005title\030\003 \001(\tH\002\210\001\001\022\022\n\005brand\030\004 \001(\tH\003" + + "\210\001\001\022\030\n\013category_l1\030\005 \001(\tH\004\210\001\001\022\030\n\013categor" + + "y_l2\030\006 \001(\tH\005\210\001\001\022\030\n\013category_l3\030\007 \001(\tH\006\210\001" + + "\001\022\030\n\013category_l4\030\010 \001(\tH\007\210\001\001\022\030\n\013category_" + + "l5\030\t \001(\tH\010\210\001\001\022\034\n\017product_type_l1\030\n \001(\tH\t" + + "\210\001\001\022\034\n\017product_type_l2\030\013 \001(\tH\n\210\001\001\022\034\n\017pro" + + "duct_type_l3\030\014 \001(\tH\013\210\001\001\022\034\n\017product_type_" + + "l4\030\r \001(\tH\014\210\001\001\022\034\n\017product_type_l5\030\016 \001(\tH\r" + + "\210\001\001\022*\n\005price\030\017 \001(\0132\033.google.shopping.typ" + + "e.Price\0224\n\017suggested_price\030\020 \001(\0132\033.googl" + + "e.shopping.type.Price\0222\n%predicted_impre" + + "ssions_change_fraction\030\021 \001(\001H\016\210\001\001\022-\n pre" + + "dicted_clicks_change_fraction\030\022 \001(\001H\017\210\001\001" + + "\0222\n%predicted_conversions_change_fractio" + + "n\030\023 \001(\001H\020\210\001\001\022f\n\reffectiveness\030\026 \001(\0162O.go" + "ogle.shopping.merchant.reports.v1beta.Pr" - + "oductView.ClickPotential\022!\n\024click_potent" - + "ial_rank\030\036 \001(\003H\027\210\001\001\032\263\t\n\tItemIssue\022Z\n\004typ" - + "e\030\001 \001(\0132L.google.shopping.merchant.repor" - + "ts.v1beta.ProductView.ItemIssue.ItemIssu" - + "eType\022b\n\010severity\030\002 \001(\0132P.google.shoppin" - + "g.merchant.reports.v1beta.ProductView.It" - + "emIssue.ItemIssueSeverity\022k\n\nresolution\030" - + "\003 \001(\0162R.google.shopping.merchant.reports" - + ".v1beta.ProductView.ItemIssue.ItemIssueR" - + "esolutionH\000\210\001\001\032e\n\rItemIssueType\022\021\n\004code\030" - + "\001 \001(\tH\000\210\001\001\022 \n\023canonical_attribute\030\002 \001(\tH" - + "\001\210\001\001B\007\n\005_codeB\026\n\024_canonical_attribute\032\227\005" - + "\n\021ItemIssueSeverity\022\231\001\n\036severity_per_rep" - + "orting_context\030\001 \003(\0132q.google.shopping.m" - + "erchant.reports.v1beta.ProductView.ItemI" - + "ssue.ItemIssueSeverity.IssueSeverityPerR" - + "eportingContext\022\212\001\n\023aggregated_severity\030" - + "\002 \001(\0162h.google.shopping.merchant.reports" - + ".v1beta.ProductView.ItemIssue.ItemIssueS" - + "everity.AggregatedIssueSeverityH\000\210\001\001\032\317\001\n" - + " IssueSeverityPerReportingContext\022[\n\021rep" - + "orting_context\030\001 \001(\0162;.google.shopping.t" - + "ype.ReportingContext.ReportingContextEnu" - + "mH\000\210\001\001\022\035\n\025disapproved_countries\030\002 \003(\t\022\031\n" - + "\021demoted_countries\030\003 \003(\tB\024\n\022_reporting_c" - + "ontext\"o\n\027AggregatedIssueSeverity\022)\n%AGG" - + "REGATED_ISSUE_SEVERITY_UNSPECIFIED\020\000\022\017\n\013" - + "DISAPPROVED\020\001\022\013\n\007DEMOTED\020\002\022\013\n\007PENDING\020\003B" - + "\026\n\024_aggregated_severity\"i\n\023ItemIssueReso" - + "lution\022%\n!ITEM_ISSUE_RESOLUTION_UNSPECIF" - + "IED\020\000\022\023\n\017MERCHANT_ACTION\020\001\022\026\n\022PENDING_PR" - + "OCESSING\020\002B\r\n\013_resolution\"\251\001\n Aggregated" - + "ReportingContextStatus\0223\n/AGGREGATED_REP" - + "ORTING_CONTEXT_STATUS_UNSPECIFIED\020\000\022\037\n\033N" - + "OT_ELIGIBLE_OR_DISAPPROVED\020\001\022\013\n\007PENDING\020" - + "\002\022\024\n\020ELIGIBLE_LIMITED\020\003\022\014\n\010ELIGIBLE\020\004\"P\n" - + "\016ClickPotential\022\037\n\033CLICK_POTENTIAL_UNSPE" - + "CIFIED\020\000\022\007\n\003LOW\020\001\022\n\n\006MEDIUM\020\002\022\010\n\004HIGH\020\003B" - + "\005\n\003_idB\n\n\010_channelB\020\n\016_language_codeB\r\n\013" - + "_feed_labelB\013\n\t_offer_idB\010\n\006_titleB\010\n\006_b" - + "randB\016\n\014_category_l1B\016\n\014_category_l2B\016\n\014" - + "_category_l3B\016\n\014_category_l4B\016\n\014_categor" - + "y_l5B\022\n\020_product_type_l1B\022\n\020_product_typ" - + "e_l2B\022\n\020_product_type_l3B\022\n\020_product_typ" - + "e_l4B\022\n\020_product_type_l5B\014\n\n_conditionB\017" - + "\n\r_availabilityB\021\n\017_shipping_labelB\020\n\016_i" - + "tem_group_idB\021\n\017_thumbnail_linkB&\n$_aggr" - + "egated_reporting_context_statusB\027\n\025_clic" - + "k_potential_rank\"\201\006\n\037PriceCompetitivenes" - + "sProductView\022 \n\023report_country_code\030\001 \001(" - + "\tH\000\210\001\001\022\017\n\002id\030\002 \001(\tH\001\210\001\001\022\025\n\010offer_id\030\003 \001(" - + "\tH\002\210\001\001\022\022\n\005title\030\004 \001(\tH\003\210\001\001\022\022\n\005brand\030\005 \001(" - + "\tH\004\210\001\001\022\030\n\013category_l1\030\006 \001(\tH\005\210\001\001\022\030\n\013cate" - + "gory_l2\030\007 \001(\tH\006\210\001\001\022\030\n\013category_l3\030\010 \001(\tH" - + "\007\210\001\001\022\030\n\013category_l4\030\t \001(\tH\010\210\001\001\022\030\n\013catego" - + "ry_l5\030\n \001(\tH\t\210\001\001\022\034\n\017product_type_l1\030\013 \001(" - + "\tH\n\210\001\001\022\034\n\017product_type_l2\030\014 \001(\tH\013\210\001\001\022\034\n\017" - + "product_type_l3\030\r \001(\tH\014\210\001\001\022\034\n\017product_ty" - + "pe_l4\030\016 \001(\tH\r\210\001\001\022\034\n\017product_type_l5\030\017 \001(" - + "\tH\016\210\001\001\022*\n\005price\030\020 \001(\0132\033.google.shopping." - + "type.Price\0224\n\017benchmark_price\030\021 \001(\0132\033.go" - + "ogle.shopping.type.PriceB\026\n\024_report_coun" - + "try_codeB\005\n\003_idB\013\n\t_offer_idB\010\n\006_titleB\010" - + "\n\006_brandB\016\n\014_category_l1B\016\n\014_category_l2" - + "B\016\n\014_category_l3B\016\n\014_category_l4B\016\n\014_cat" - + "egory_l5B\022\n\020_product_type_l1B\022\n\020_product" - + "_type_l2B\022\n\020_product_type_l3B\022\n\020_product" - + "_type_l4B\022\n\020_product_type_l5\"\320\007\n\030PriceIn" - + "sightsProductView\022\017\n\002id\030\001 \001(\tH\000\210\001\001\022\025\n\010of" - + "fer_id\030\002 \001(\tH\001\210\001\001\022\022\n\005title\030\003 \001(\tH\002\210\001\001\022\022\n" - + "\005brand\030\004 \001(\tH\003\210\001\001\022\030\n\013category_l1\030\005 \001(\tH\004" - + "\210\001\001\022\030\n\013category_l2\030\006 \001(\tH\005\210\001\001\022\030\n\013categor" - + "y_l3\030\007 \001(\tH\006\210\001\001\022\030\n\013category_l4\030\010 \001(\tH\007\210\001" - + "\001\022\030\n\013category_l5\030\t \001(\tH\010\210\001\001\022\034\n\017product_t" - + "ype_l1\030\n \001(\tH\t\210\001\001\022\034\n\017product_type_l2\030\013 \001" - + "(\tH\n\210\001\001\022\034\n\017product_type_l3\030\014 \001(\tH\013\210\001\001\022\034\n" - + "\017product_type_l4\030\r \001(\tH\014\210\001\001\022\034\n\017product_t" - + "ype_l5\030\016 \001(\tH\r\210\001\001\022*\n\005price\030\017 \001(\0132\033.googl" - + "e.shopping.type.Price\0224\n\017suggested_price" - + "\030\020 \001(\0132\033.google.shopping.type.Price\0222\n%p" - + "redicted_impressions_change_fraction\030\021 \001" - + "(\001H\016\210\001\001\022-\n predicted_clicks_change_fract" - + "ion\030\022 \001(\001H\017\210\001\001\0222\n%predicted_conversions_" - + "change_fraction\030\023 \001(\001H\020\210\001\001B\005\n\003_idB\013\n\t_of" - + "fer_idB\010\n\006_titleB\010\n\006_brandB\016\n\014_category_" - + "l1B\016\n\014_category_l2B\016\n\014_category_l3B\016\n\014_c" - + "ategory_l4B\016\n\014_category_l5B\022\n\020_product_t" - + "ype_l1B\022\n\020_product_type_l2B\022\n\020_product_t" - + "ype_l3B\022\n\020_product_type_l4B\022\n\020_product_t" - + "ype_l5B(\n&_predicted_impressions_change_" - + "fractionB#\n!_predicted_clicks_change_fra" - + "ctionB(\n&_predicted_conversions_change_f" - + "raction\"\360\013\n\035BestSellersProductClusterVie" - + "w\022&\n\013report_date\030\001 \001(\0132\021.google.type.Dat" - + "e\022q\n\022report_granularity\030\002 \001(\0162P.google.s" - + "hopping.merchant.reports.v1beta.ReportGr" - + "anularity.ReportGranularityEnumH\000\210\001\001\022 \n\023" - + "report_country_code\030\003 \001(\tH\001\210\001\001\022\037\n\022report" - + "_category_id\030\004 \001(\003H\002\210\001\001\022\022\n\005title\030\006 \001(\tH\003" - + "\210\001\001\022\022\n\005brand\030\007 \001(\tH\004\210\001\001\022\030\n\013category_l1\030\010" - + " \001(\tH\005\210\001\001\022\030\n\013category_l2\030\t \001(\tH\006\210\001\001\022\030\n\013c" - + "ategory_l3\030\n \001(\tH\007\210\001\001\022\030\n\013category_l4\030\013 \001" - + "(\tH\010\210\001\001\022\030\n\013category_l5\030\014 \001(\tH\t\210\001\001\022\025\n\rvar" - + "iant_gtins\030\r \003(\t\022u\n\020inventory_status\030\016 \001" - + "(\0162V.google.shopping.merchant.reports.v1" - + "beta.BestSellersProductClusterView.Inven" - + "toryStatusH\n\210\001\001\022{\n\026brand_inventory_statu" - + "s\030\017 \001(\0162V.google.shopping.merchant.repor" - + "ts.v1beta.BestSellersProductClusterView." - + "InventoryStatusH\013\210\001\001\022\021\n\004rank\030\020 \001(\003H\014\210\001\001\022" - + "\032\n\rprevious_rank\030\021 \001(\003H\r\210\001\001\022h\n\017relative_" - + "demand\030\022 \001(\0162J.google.shopping.merchant." - + "reports.v1beta.RelativeDemand.RelativeDe" - + "mandEnumH\016\210\001\001\022q\n\030previous_relative_deman" - + "d\030\023 \001(\0162J.google.shopping.merchant.repor" - + "ts.v1beta.RelativeDemand.RelativeDemandE" - + "numH\017\210\001\001\022\203\001\n\026relative_demand_change\030\024 \001(" - + "\0162^.google.shopping.merchant.reports.v1b" - + "eta.RelativeDemandChangeType.RelativeDem" - + "andChangeTypeEnumH\020\210\001\001\"i\n\017InventoryStatu" - + "s\022 \n\034INVENTORY_STATUS_UNSPECIFIED\020\000\022\014\n\010I" - + "N_STOCK\020\001\022\020\n\014OUT_OF_STOCK\020\002\022\024\n\020NOT_IN_IN" - + "VENTORY\020\003B\025\n\023_report_granularityB\026\n\024_rep" - + "ort_country_codeB\025\n\023_report_category_idB" - + "\010\n\006_titleB\010\n\006_brandB\016\n\014_category_l1B\016\n\014_" - + "category_l2B\016\n\014_category_l3B\016\n\014_category" - + "_l4B\016\n\014_category_l5B\023\n\021_inventory_status" - + "B\031\n\027_brand_inventory_statusB\007\n\005_rankB\020\n\016" - + "_previous_rankB\022\n\020_relative_demandB\033\n\031_p" - + "revious_relative_demandB\031\n\027_relative_dem" - + "and_change\"\321\006\n\024BestSellersBrandView\022&\n\013r" - + "eport_date\030\001 \001(\0132\021.google.type.Date\022q\n\022r" - + "eport_granularity\030\002 \001(\0162P.google.shoppin" - + "g.merchant.reports.v1beta.ReportGranular" - + "ity.ReportGranularityEnumH\000\210\001\001\022 \n\023report" - + "_country_code\030\003 \001(\tH\001\210\001\001\022\037\n\022report_categ" - + "ory_id\030\004 \001(\003H\002\210\001\001\022\022\n\005brand\030\006 \001(\tH\003\210\001\001\022\021\n" - + "\004rank\030\007 \001(\003H\004\210\001\001\022\032\n\rprevious_rank\030\010 \001(\003H" - + "\005\210\001\001\022h\n\017relative_demand\030\t \001(\0162J.google.s" - + "hopping.merchant.reports.v1beta.Relative" - + "Demand.RelativeDemandEnumH\006\210\001\001\022q\n\030previo" - + "us_relative_demand\030\n \001(\0162J.google.shoppi" - + "ng.merchant.reports.v1beta.RelativeDeman" - + "d.RelativeDemandEnumH\007\210\001\001\022\203\001\n\026relative_d" - + "emand_change\030\013 \001(\0162^.google.shopping.mer" - + "chant.reports.v1beta.RelativeDemandChang" - + "eType.RelativeDemandChangeTypeEnumH\010\210\001\001B" - + "\025\n\023_report_granularityB\026\n\024_report_countr" - + "y_codeB\025\n\023_report_category_idB\010\n\006_brandB" - + "\007\n\005_rankB\020\n\016_previous_rankB\022\n\020_relative_" - + "demandB\033\n\031_previous_relative_demandB\031\n\027_" - + "relative_demand_change\"\200\005\n#CompetitiveVi" - + "sibilityCompetitorView\022\037\n\004date\030\001 \001(\0132\021.g" - + "oogle.type.Date\022\023\n\006domain\030\002 \001(\tH\000\210\001\001\022\033\n\016" - + "is_your_domain\030\003 \001(\010H\001\210\001\001\022 \n\023report_coun" - + "try_code\030\004 \001(\tH\002\210\001\001\022\037\n\022report_category_i" - + "d\030\005 \001(\003H\003\210\001\001\022e\n\016traffic_source\030\006 \001(\0162H.g" - + "oogle.shopping.merchant.reports.v1beta.T" - + "rafficSource.TrafficSourceEnumH\004\210\001\001\022\021\n\004r" - + "ank\030\007 \001(\003H\005\210\001\001\022\036\n\021ads_organic_ratio\030\010 \001(" - + "\001H\006\210\001\001\022\036\n\021page_overlap_rate\030\t \001(\001H\007\210\001\001\022!" - + "\n\024higher_position_rate\030\n \001(\001H\010\210\001\001\022 \n\023rel" - + "ative_visibility\030\013 \001(\001H\t\210\001\001B\t\n\007_domainB\021" - + "\n\017_is_your_domainB\026\n\024_report_country_cod" - + "eB\025\n\023_report_category_idB\021\n\017_traffic_sou" - + "rceB\007\n\005_rankB\024\n\022_ads_organic_ratioB\024\n\022_p" - + "age_overlap_rateB\027\n\025_higher_position_rat" - + "eB\026\n\024_relative_visibility\"\307\004\n$Competitiv" - + "eVisibilityTopMerchantView\022\037\n\004date\030\001 \001(\013" - + "2\021.google.type.Date\022\023\n\006domain\030\002 \001(\tH\000\210\001\001" - + "\022\033\n\016is_your_domain\030\003 \001(\010H\001\210\001\001\022 \n\023report_" - + "country_code\030\004 \001(\tH\002\210\001\001\022\037\n\022report_catego" - + "ry_id\030\005 \001(\003H\003\210\001\001\022e\n\016traffic_source\030\006 \001(\016" - + "2H.google.shopping.merchant.reports.v1be" - + "ta.TrafficSource.TrafficSourceEnumH\004\210\001\001\022" - + "\021\n\004rank\030\007 \001(\003H\005\210\001\001\022\036\n\021ads_organic_ratio\030" - + "\010 \001(\001H\006\210\001\001\022\036\n\021page_overlap_rate\030\t \001(\001H\007\210" - + "\001\001\022!\n\024higher_position_rate\030\n \001(\001H\010\210\001\001B\t\n" - + "\007_domainB\021\n\017_is_your_domainB\026\n\024_report_c" - + "ountry_codeB\025\n\023_report_category_idB\021\n\017_t" - + "raffic_sourceB\007\n\005_rankB\024\n\022_ads_organic_r" - + "atioB\024\n\022_page_overlap_rateB\027\n\025_higher_po" - + "sition_rate\"\327\003\n\"CompetitiveVisibilityBen" - + "chmarkView\022\037\n\004date\030\001 \001(\0132\021.google.type.D" - + "ate\022 \n\023report_country_code\030\002 \001(\tH\000\210\001\001\022\037\n" - + "\022report_category_id\030\003 \001(\003H\001\210\001\001\022e\n\016traffi" - + "c_source\030\004 \001(\0162H.google.shopping.merchan" - + "t.reports.v1beta.TrafficSource.TrafficSo" - + "urceEnumH\002\210\001\001\022)\n\034your_domain_visibility_" - + "trend\030\005 \001(\001H\003\210\001\001\0220\n#category_benchmark_v" - + "isibility_trend\030\006 \001(\001H\004\210\001\001B\026\n\024_report_co" - + "untry_codeB\025\n\023_report_category_idB\021\n\017_tr" - + "affic_sourceB\037\n\035_your_domain_visibility_" - + "trendB&\n$_category_benchmark_visibility_" - + "trend\"e\n\017MarketingMethod\"R\n\023MarketingMet" - + "hodEnum\022%\n!MARKETING_METHOD_ENUM_UNSPECI" - + "FIED\020\000\022\013\n\007ORGANIC\020\001\022\007\n\003ADS\020\002\"n\n\021ReportGr" - + "anularity\"Y\n\025ReportGranularityEnum\022\'\n#RE" - + "PORT_GRANULARITY_ENUM_UNSPECIFIED\020\000\022\n\n\006W" - + "EEKLY\020\001\022\013\n\007MONTHLY\020\002\"\210\001\n\016RelativeDemand\"" - + "v\n\022RelativeDemandEnum\022$\n RELATIVE_DEMAND" - + "_ENUM_UNSPECIFIED\020\000\022\014\n\010VERY_LOW\020\n\022\007\n\003LOW" - + "\020\024\022\n\n\006MEDIUM\020\036\022\010\n\004HIGH\020(\022\r\n\tVERY_HIGH\0202\"" - + "\215\001\n\030RelativeDemandChangeType\"q\n\034Relative" - + "DemandChangeTypeEnum\0220\n,RELATIVE_DEMAND_" - + "CHANGE_TYPE_ENUM_UNSPECIFIED\020\000\022\n\n\006SINKER" - + "\020\001\022\010\n\004FLAT\020\002\022\t\n\005RISER\020\003\"h\n\rTrafficSource" - + "\"W\n\021TrafficSourceEnum\022#\n\037TRAFFIC_SOURCE_" - + "ENUM_UNSPECIFIED\020\000\022\013\n\007ORGANIC\020\001\022\007\n\003ADS\020\002" - + "\022\007\n\003ALL\020\0032\234\002\n\rReportService\022\301\001\n\006Search\0226" + + "iceInsightsProductView.Effectiveness\"M\n\r" + + "Effectiveness\022\035\n\031EFFECTIVENESS_UNSPECIFI" + + "ED\020\000\022\007\n\003LOW\020\001\022\n\n\006MEDIUM\020\002\022\010\n\004HIGH\020\003B\005\n\003_" + + "idB\013\n\t_offer_idB\010\n\006_titleB\010\n\006_brandB\016\n\014_" + + "category_l1B\016\n\014_category_l2B\016\n\014_category" + + "_l3B\016\n\014_category_l4B\016\n\014_category_l5B\022\n\020_" + + "product_type_l1B\022\n\020_product_type_l2B\022\n\020_" + + "product_type_l3B\022\n\020_product_type_l4B\022\n\020_" + + "product_type_l5B(\n&_predicted_impression" + + "s_change_fractionB#\n!_predicted_clicks_c" + + "hange_fractionB(\n&_predicted_conversions" + + "_change_fraction\"\360\013\n\035BestSellersProductC" + + "lusterView\022&\n\013report_date\030\001 \001(\0132\021.google" + + ".type.Date\022q\n\022report_granularity\030\002 \001(\0162P" + + ".google.shopping.merchant.reports.v1beta" + + ".ReportGranularity.ReportGranularityEnum" + + "H\000\210\001\001\022 \n\023report_country_code\030\003 \001(\tH\001\210\001\001\022" + + "\037\n\022report_category_id\030\004 \001(\003H\002\210\001\001\022\022\n\005titl" + + "e\030\006 \001(\tH\003\210\001\001\022\022\n\005brand\030\007 \001(\tH\004\210\001\001\022\030\n\013cate" + + "gory_l1\030\010 \001(\tH\005\210\001\001\022\030\n\013category_l2\030\t \001(\tH" + + "\006\210\001\001\022\030\n\013category_l3\030\n \001(\tH\007\210\001\001\022\030\n\013catego" + + "ry_l4\030\013 \001(\tH\010\210\001\001\022\030\n\013category_l5\030\014 \001(\tH\t\210" + + "\001\001\022\025\n\rvariant_gtins\030\r \003(\t\022u\n\020inventory_s" + + "tatus\030\016 \001(\0162V.google.shopping.merchant.r" + + "eports.v1beta.BestSellersProductClusterV" + + "iew.InventoryStatusH\n\210\001\001\022{\n\026brand_invent" + + "ory_status\030\017 \001(\0162V.google.shopping.merch" + + "ant.reports.v1beta.BestSellersProductClu" + + "sterView.InventoryStatusH\013\210\001\001\022\021\n\004rank\030\020 " + + "\001(\003H\014\210\001\001\022\032\n\rprevious_rank\030\021 \001(\003H\r\210\001\001\022h\n\017" + + "relative_demand\030\022 \001(\0162J.google.shopping." + + "merchant.reports.v1beta.RelativeDemand.R" + + "elativeDemandEnumH\016\210\001\001\022q\n\030previous_relat" + + "ive_demand\030\023 \001(\0162J.google.shopping.merch" + + "ant.reports.v1beta.RelativeDemand.Relati" + + "veDemandEnumH\017\210\001\001\022\203\001\n\026relative_demand_ch" + + "ange\030\024 \001(\0162^.google.shopping.merchant.re" + + "ports.v1beta.RelativeDemandChangeType.Re" + + "lativeDemandChangeTypeEnumH\020\210\001\001\"i\n\017Inven" + + "toryStatus\022 \n\034INVENTORY_STATUS_UNSPECIFI" + + "ED\020\000\022\014\n\010IN_STOCK\020\001\022\020\n\014OUT_OF_STOCK\020\002\022\024\n\020" + + "NOT_IN_INVENTORY\020\003B\025\n\023_report_granularit" + + "yB\026\n\024_report_country_codeB\025\n\023_report_cat" + + "egory_idB\010\n\006_titleB\010\n\006_brandB\016\n\014_categor" + + "y_l1B\016\n\014_category_l2B\016\n\014_category_l3B\016\n\014" + + "_category_l4B\016\n\014_category_l5B\023\n\021_invento" + + "ry_statusB\031\n\027_brand_inventory_statusB\007\n\005" + + "_rankB\020\n\016_previous_rankB\022\n\020_relative_dem" + + "andB\033\n\031_previous_relative_demandB\031\n\027_rel" + + "ative_demand_change\"\321\006\n\024BestSellersBrand" + + "View\022&\n\013report_date\030\001 \001(\0132\021.google.type." + + "Date\022q\n\022report_granularity\030\002 \001(\0162P.googl" + + "e.shopping.merchant.reports.v1beta.Repor" + + "tGranularity.ReportGranularityEnumH\000\210\001\001\022" + + " \n\023report_country_code\030\003 \001(\tH\001\210\001\001\022\037\n\022rep" + + "ort_category_id\030\004 \001(\003H\002\210\001\001\022\022\n\005brand\030\006 \001(" + + "\tH\003\210\001\001\022\021\n\004rank\030\007 \001(\003H\004\210\001\001\022\032\n\rprevious_ra" + + "nk\030\010 \001(\003H\005\210\001\001\022h\n\017relative_demand\030\t \001(\0162J" + ".google.shopping.merchant.reports.v1beta" - + ".SearchRequest\0327.google.shopping.merchan" - + "t.reports.v1beta.SearchResponse\"F\332A\006pare" - + "nt\202\323\344\223\0027\"2/reports/v1beta/{parent=accoun" - + "ts/*}/reports:search:\001*\032G\312A\032merchantapi." - + "googleapis.com\322A\'https://www.googleapis." - + "com/auth/contentB\212\001\n+com.google.shopping" - + ".merchant.reports.v1betaB\014ReportsProtoP\001" - + "ZKcloud.google.com/go/shopping/merchant/" - + "reports/apiv1beta/reportspb;reportspbb\006p" - + "roto3" + + ".RelativeDemand.RelativeDemandEnumH\006\210\001\001\022" + + "q\n\030previous_relative_demand\030\n \001(\0162J.goog" + + "le.shopping.merchant.reports.v1beta.Rela" + + "tiveDemand.RelativeDemandEnumH\007\210\001\001\022\203\001\n\026r" + + "elative_demand_change\030\013 \001(\0162^.google.sho" + + "pping.merchant.reports.v1beta.RelativeDe" + + "mandChangeType.RelativeDemandChangeTypeE" + + "numH\010\210\001\001B\025\n\023_report_granularityB\026\n\024_repo" + + "rt_country_codeB\025\n\023_report_category_idB\010" + + "\n\006_brandB\007\n\005_rankB\020\n\016_previous_rankB\022\n\020_" + + "relative_demandB\033\n\031_previous_relative_de" + + "mandB\031\n\027_relative_demand_change\"\337\001\n\031NonP" + + "roductPerformanceView\022\037\n\004date\030\001 \001(\0132\021.go" + + "ogle.type.Date\022\037\n\004week\030\002 \001(\0132\021.google.ty" + + "pe.Date\022\023\n\006clicks\030\003 \001(\003H\000\210\001\001\022\030\n\013impressi" + + "ons\030\004 \001(\003H\001\210\001\001\022\037\n\022click_through_rate\030\005 \001" + + "(\001H\002\210\001\001B\t\n\007_clicksB\016\n\014_impressionsB\025\n\023_c" + + "lick_through_rate\"\200\005\n#CompetitiveVisibil" + + "ityCompetitorView\022\037\n\004date\030\001 \001(\0132\021.google" + + ".type.Date\022\023\n\006domain\030\002 \001(\tH\000\210\001\001\022\033\n\016is_yo" + + "ur_domain\030\003 \001(\010H\001\210\001\001\022 \n\023report_country_c" + + "ode\030\004 \001(\tH\002\210\001\001\022\037\n\022report_category_id\030\005 \001" + + "(\003H\003\210\001\001\022e\n\016traffic_source\030\006 \001(\0162H.google" + + ".shopping.merchant.reports.v1beta.Traffi" + + "cSource.TrafficSourceEnumH\004\210\001\001\022\021\n\004rank\030\007" + + " \001(\003H\005\210\001\001\022\036\n\021ads_organic_ratio\030\010 \001(\001H\006\210\001" + + "\001\022\036\n\021page_overlap_rate\030\t \001(\001H\007\210\001\001\022!\n\024hig" + + "her_position_rate\030\n \001(\001H\010\210\001\001\022 \n\023relative" + + "_visibility\030\013 \001(\001H\t\210\001\001B\t\n\007_domainB\021\n\017_is" + + "_your_domainB\026\n\024_report_country_codeB\025\n\023" + + "_report_category_idB\021\n\017_traffic_sourceB\007" + + "\n\005_rankB\024\n\022_ads_organic_ratioB\024\n\022_page_o" + + "verlap_rateB\027\n\025_higher_position_rateB\026\n\024" + + "_relative_visibility\"\307\004\n$CompetitiveVisi" + + "bilityTopMerchantView\022\037\n\004date\030\001 \001(\0132\021.go" + + "ogle.type.Date\022\023\n\006domain\030\002 \001(\tH\000\210\001\001\022\033\n\016i" + + "s_your_domain\030\003 \001(\010H\001\210\001\001\022 \n\023report_count" + + "ry_code\030\004 \001(\tH\002\210\001\001\022\037\n\022report_category_id" + + "\030\005 \001(\003H\003\210\001\001\022e\n\016traffic_source\030\006 \001(\0162H.go" + + "ogle.shopping.merchant.reports.v1beta.Tr" + + "afficSource.TrafficSourceEnumH\004\210\001\001\022\021\n\004ra" + + "nk\030\007 \001(\003H\005\210\001\001\022\036\n\021ads_organic_ratio\030\010 \001(\001" + + "H\006\210\001\001\022\036\n\021page_overlap_rate\030\t \001(\001H\007\210\001\001\022!\n" + + "\024higher_position_rate\030\n \001(\001H\010\210\001\001B\t\n\007_dom" + + "ainB\021\n\017_is_your_domainB\026\n\024_report_countr" + + "y_codeB\025\n\023_report_category_idB\021\n\017_traffi" + + "c_sourceB\007\n\005_rankB\024\n\022_ads_organic_ratioB" + + "\024\n\022_page_overlap_rateB\027\n\025_higher_positio" + + "n_rate\"\327\003\n\"CompetitiveVisibilityBenchmar" + + "kView\022\037\n\004date\030\001 \001(\0132\021.google.type.Date\022 " + + "\n\023report_country_code\030\002 \001(\tH\000\210\001\001\022\037\n\022repo" + + "rt_category_id\030\003 \001(\003H\001\210\001\001\022e\n\016traffic_sou" + + "rce\030\004 \001(\0162H.google.shopping.merchant.rep" + + "orts.v1beta.TrafficSource.TrafficSourceE" + + "numH\002\210\001\001\022)\n\034your_domain_visibility_trend" + + "\030\005 \001(\001H\003\210\001\001\0220\n#category_benchmark_visibi" + + "lity_trend\030\006 \001(\001H\004\210\001\001B\026\n\024_report_country" + + "_codeB\025\n\023_report_category_idB\021\n\017_traffic" + + "_sourceB\037\n\035_your_domain_visibility_trend" + + "B&\n$_category_benchmark_visibility_trend" + + "\"e\n\017MarketingMethod\"R\n\023MarketingMethodEn" + + "um\022%\n!MARKETING_METHOD_ENUM_UNSPECIFIED\020" + + "\000\022\013\n\007ORGANIC\020\001\022\007\n\003ADS\020\002\"n\n\021ReportGranula" + + "rity\"Y\n\025ReportGranularityEnum\022\'\n#REPORT_" + + "GRANULARITY_ENUM_UNSPECIFIED\020\000\022\n\n\006WEEKLY" + + "\020\001\022\013\n\007MONTHLY\020\002\"\210\001\n\016RelativeDemand\"v\n\022Re" + + "lativeDemandEnum\022$\n RELATIVE_DEMAND_ENUM" + + "_UNSPECIFIED\020\000\022\014\n\010VERY_LOW\020\n\022\007\n\003LOW\020\024\022\n\n" + + "\006MEDIUM\020\036\022\010\n\004HIGH\020(\022\r\n\tVERY_HIGH\0202\"\215\001\n\030R" + + "elativeDemandChangeType\"q\n\034RelativeDeman" + + "dChangeTypeEnum\0220\n,RELATIVE_DEMAND_CHANG" + + "E_TYPE_ENUM_UNSPECIFIED\020\000\022\n\n\006SINKER\020\001\022\010\n" + + "\004FLAT\020\002\022\t\n\005RISER\020\003\"h\n\rTrafficSource\"W\n\021T" + + "rafficSourceEnum\022#\n\037TRAFFIC_SOURCE_ENUM_" + + "UNSPECIFIED\020\000\022\013\n\007ORGANIC\020\001\022\007\n\003ADS\020\002\022\007\n\003A" + + "LL\020\0032\234\002\n\rReportService\022\301\001\n\006Search\0226.goog" + + "le.shopping.merchant.reports.v1beta.Sear" + + "chRequest\0327.google.shopping.merchant.rep" + + "orts.v1beta.SearchResponse\"F\332A\006parent\202\323\344" + + "\223\0027\"2/reports/v1beta/{parent=accounts/*}" + + "/reports:search:\001*\032G\312A\032merchantapi.googl" + + "eapis.com\322A\'https://www.googleapis.com/a" + + "uth/contentB\212\001\n+com.google.shopping.merc" + + "hant.reports.v1betaB\014ReportsProtoP\001ZKclo" + + "ud.google.com/go/shopping/merchant/repor" + + "ts/apiv1beta/reportspb;reportspbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -475,6 +491,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_shopping_merchant_reports_v1beta_ReportRow_descriptor, new java.lang.String[] { "ProductPerformanceView", + "NonProductPerformanceView", "ProductView", "PriceCompetitivenessProductView", "PriceInsightsProductView", @@ -645,6 +662,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PredictedImpressionsChangeFraction", "PredictedClicksChangeFraction", "PredictedConversionsChangeFraction", + "Effectiveness", }); internal_static_google_shopping_merchant_reports_v1beta_BestSellersProductClusterView_descriptor = getDescriptor().getMessageTypes().get(7); @@ -689,8 +707,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PreviousRelativeDemand", "RelativeDemandChange", }); - internal_static_google_shopping_merchant_reports_v1beta_CompetitiveVisibilityCompetitorView_descriptor = + internal_static_google_shopping_merchant_reports_v1beta_NonProductPerformanceView_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_google_shopping_merchant_reports_v1beta_NonProductPerformanceView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_shopping_merchant_reports_v1beta_NonProductPerformanceView_descriptor, + new java.lang.String[] { + "Date", "Week", "Clicks", "Impressions", "ClickThroughRate", + }); + internal_static_google_shopping_merchant_reports_v1beta_CompetitiveVisibilityCompetitorView_descriptor = + getDescriptor().getMessageTypes().get(10); internal_static_google_shopping_merchant_reports_v1beta_CompetitiveVisibilityCompetitorView_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_shopping_merchant_reports_v1beta_CompetitiveVisibilityCompetitorView_descriptor, @@ -708,7 +734,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RelativeVisibility", }); internal_static_google_shopping_merchant_reports_v1beta_CompetitiveVisibilityTopMerchantView_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_shopping_merchant_reports_v1beta_CompetitiveVisibilityTopMerchantView_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_shopping_merchant_reports_v1beta_CompetitiveVisibilityTopMerchantView_descriptor, @@ -725,7 +751,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HigherPositionRate", }); internal_static_google_shopping_merchant_reports_v1beta_CompetitiveVisibilityBenchmarkView_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_shopping_merchant_reports_v1beta_CompetitiveVisibilityBenchmarkView_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_shopping_merchant_reports_v1beta_CompetitiveVisibilityBenchmarkView_descriptor, @@ -738,31 +764,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CategoryBenchmarkVisibilityTrend", }); internal_static_google_shopping_merchant_reports_v1beta_MarketingMethod_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_shopping_merchant_reports_v1beta_MarketingMethod_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_shopping_merchant_reports_v1beta_MarketingMethod_descriptor, new java.lang.String[] {}); internal_static_google_shopping_merchant_reports_v1beta_ReportGranularity_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_shopping_merchant_reports_v1beta_ReportGranularity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_shopping_merchant_reports_v1beta_ReportGranularity_descriptor, new java.lang.String[] {}); internal_static_google_shopping_merchant_reports_v1beta_RelativeDemand_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_shopping_merchant_reports_v1beta_RelativeDemand_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_shopping_merchant_reports_v1beta_RelativeDemand_descriptor, new java.lang.String[] {}); internal_static_google_shopping_merchant_reports_v1beta_RelativeDemandChangeType_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_shopping_merchant_reports_v1beta_RelativeDemandChangeType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_shopping_merchant_reports_v1beta_RelativeDemandChangeType_descriptor, new java.lang.String[] {}); internal_static_google_shopping_merchant_reports_v1beta_TrafficSource_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_shopping_merchant_reports_v1beta_TrafficSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_shopping_merchant_reports_v1beta_TrafficSource_descriptor, diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/proto/google/shopping/merchant/reports/v1beta/reports.proto b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/proto/google/shopping/merchant/reports/v1beta/reports.proto index 7c156166b7c7..efd5afb13a4d 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/proto/google/shopping/merchant/reports/v1beta/reports.proto +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/src/main/proto/google/shopping/merchant/reports/v1beta/reports.proto @@ -89,6 +89,9 @@ message ReportRow { // Fields available for query in `product_performance_view` table. ProductPerformanceView product_performance_view = 1; + // Fields available for query in `non_product_performance_view` table. + NonProductPerformanceView non_product_performance_view = 7; + // Fields available for query in `product_view` table. ProductView product_view = 2; @@ -352,7 +355,7 @@ message ProductView { // // Here's an example of how the aggregated status is computed: // - // Free listings | Shopping Ads | Status + // Free listings | Shopping ads | Status // --------------|--------------|------------------------------ // Approved | Approved | ELIGIBLE // Approved | Pending | ELIGIBLE @@ -480,7 +483,7 @@ message ProductView { // Normalized [shipping // label](https://support.google.com/merchants/answer/6324504) specified in - // the feed. + // the data source. optional string shipping_label = 20; // List of Global Trade Item Numbers (GTINs) of the product. @@ -607,6 +610,27 @@ message PriceCompetitivenessProductView { // Values are only set for fields requested explicitly in the request's search // query. message PriceInsightsProductView { + // Predicted effectiveness bucket. + // + // Effectiveness indicates which products would benefit most from price + // changes. This rating takes into consideration the performance boost + // predicted by adjusting the sale price and the difference between your + // current price and the suggested price. Price suggestions with `HIGH` + // effectiveness are predicted to drive the largest increase in performance. + enum Effectiveness { + // Effectiveness is unknown. + EFFECTIVENESS_UNSPECIFIED = 0; + + // Effectiveness is low. + LOW = 1; + + // Effectiveness is medium. + MEDIUM = 2; + + // Effectiveness is high. + HIGH = 3; + } + // REST ID of the product, in the form of // `channel~languageCode~feedLabel~offerId`. Can be used to join data with the // `product_view` table. @@ -683,6 +707,9 @@ message PriceInsightsProductView { // suggested price compared to current active price. For example, 0.05 is a 5% // predicted increase in conversions). optional double predicted_conversions_change_fraction = 19; + + // The predicted effectiveness of applying the price suggestion, bucketed. + Effectiveness effectiveness = 22; } // Fields available for query in `best_sellers_product_cluster_view` table. @@ -778,16 +805,16 @@ message BestSellersProductClusterView { // GTINs of example variants of the product cluster. repeated string variant_gtins = 13; - // Whether the product cluster is `IN_STOCK` in your product feed in at least - // one of the countries, `OUT_OF_STOCK` in your product feed in all countries, - // or `NOT_IN_INVENTORY` at all. + // Whether the product cluster is `IN_STOCK` in your product data source in at + // least one of the countries, `OUT_OF_STOCK` in your product data source in + // all countries, or `NOT_IN_INVENTORY` at all. // // The field doesn't take the Best sellers report country filter into account. optional InventoryStatus inventory_status = 14; // Whether there is at least one product of the brand currently `IN_STOCK` in - // your product feed in at least one of the countries, all products are - // `OUT_OF_STOCK` in your product feed in all countries, or + // your product data source in at least one of the countries, all products are + // `OUT_OF_STOCK` in your product data source in all countries, or // `NOT_IN_INVENTORY`. // // The field doesn't take the Best sellers report country filter into account. @@ -878,6 +905,42 @@ message BestSellersBrandView { relative_demand_change = 11; } +// Fields available for query in `non_product_performance_view` table. +// +// Performance data on images and online store links leading to your non-product +// pages. This includes performance metrics (for example, `clicks`) +// and dimensions according to which performance metrics are segmented (for +// example, `date`). +// +// Segment fields cannot be selected in queries without also selecting at least +// one metric field. +// +// Values are only set for fields requested explicitly in the request's search +// query. +message NonProductPerformanceView { + // Date in the merchant timezone to which metrics apply. Segment. + // + // Condition on `date` is required in the `WHERE` clause. + google.type.Date date = 1; + + // First day of the week (Monday) of the metrics date in the merchant + // timezone. Segment. + google.type.Date week = 2; + + // Number of clicks on images and online store links leading to your + // non-product pages. Metric. + optional int64 clicks = 3; + + // Number of times images and online store links leading to your non-product + // pages were shown. Metric. + optional int64 impressions = 4; + + // Click-through rate - the number of clicks (`clicks`) divided by the number + // of impressions (`impressions`) of images and online store links leading to + // your non-product pages. Metric. + optional double click_through_rate = 5; +} + // Fields available for query in `competitive_visibility_competitor_view` table. // // [Competitive diff --git a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceClient.java b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceClient.java index cf81a7fa55d5..4e95f384d49d 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceClient.java +++ b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceClient.java @@ -540,6 +540,123 @@ * * * + * + *

UpdateLiveConfig + *

Updates the specified LiveConfig. Only update fields specified in the call method body. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateLiveConfigAsync(UpdateLiveConfigRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • updateLiveConfigAsync(LiveConfig liveConfig, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateLiveConfigOperationCallable() + *

  • updateLiveConfigCallable() + *

+ * + * + * + *

CreateVodConfig + *

Registers the VOD config with the provided unique ID in the specified region. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createVodConfigAsync(CreateVodConfigRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createVodConfigAsync(LocationName parent, VodConfig vodConfig, String vodConfigId) + *

  • createVodConfigAsync(String parent, VodConfig vodConfig, String vodConfigId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createVodConfigOperationCallable() + *

  • createVodConfigCallable() + *

+ * + * + * + *

ListVodConfigs + *

Lists all VOD configs managed by the Video Stitcher API that belong to the specified project and region. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listVodConfigs(ListVodConfigsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listVodConfigs(LocationName parent) + *

  • listVodConfigs(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listVodConfigsPagedCallable() + *

  • listVodConfigsCallable() + *

+ * + * + * + *

GetVodConfig + *

Returns the specified VOD config managed by the Video Stitcher API service. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getVodConfig(GetVodConfigRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getVodConfig(VodConfigName name) + *

  • getVodConfig(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getVodConfigCallable() + *

+ * + * + * + *

DeleteVodConfig + *

Deletes the specified VOD config. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteVodConfigAsync(DeleteVodConfigRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteVodConfigAsync(VodConfigName name) + *

  • deleteVodConfigAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteVodConfigOperationCallable() + *

  • deleteVodConfigCallable() + *

+ * + * + * + *

UpdateVodConfig + *

Updates the specified VOD config. Only update fields specified in the call method body. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateVodConfigAsync(UpdateVodConfigRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • updateVodConfigAsync(VodConfig vodConfig, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateVodConfigOperationCallable() + *

  • updateVodConfigCallable() + *

+ * + * * * *

See the individual methods for example code. @@ -4143,60 +4260,937 @@ public final UnaryCallable deleteLiveConfigC return stub.deleteLiveConfigCallable(); } - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified LiveConfig. Only update fields specified in the call method body. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   LiveConfig liveConfig = LiveConfig.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   LiveConfig response =
+   *       videoStitcherServiceClient.updateLiveConfigAsync(liveConfig, updateMask).get();
+   * }
+   * }
+ * + * @param liveConfig Required. The LiveConfig resource which replaces the resource on the server. + * @param updateMask Required. The update mask applies to the resource. For the `FieldMask` + * definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateLiveConfigAsync( + LiveConfig liveConfig, FieldMask updateMask) { + UpdateLiveConfigRequest request = + UpdateLiveConfigRequest.newBuilder() + .setLiveConfig(liveConfig) + .setUpdateMask(updateMask) + .build(); + return updateLiveConfigAsync(request); } - @Override - public boolean isShutdown() { - return stub.isShutdown(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified LiveConfig. Only update fields specified in the call method body. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   UpdateLiveConfigRequest request =
+   *       UpdateLiveConfigRequest.newBuilder()
+   *           .setLiveConfig(LiveConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   LiveConfig response = videoStitcherServiceClient.updateLiveConfigAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateLiveConfigAsync( + UpdateLiveConfigRequest request) { + return updateLiveConfigOperationCallable().futureCall(request); } - @Override - public boolean isTerminated() { - return stub.isTerminated(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified LiveConfig. Only update fields specified in the call method body. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   UpdateLiveConfigRequest request =
+   *       UpdateLiveConfigRequest.newBuilder()
+   *           .setLiveConfig(LiveConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       videoStitcherServiceClient.updateLiveConfigOperationCallable().futureCall(request);
+   *   // Do something.
+   *   LiveConfig response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateLiveConfigOperationCallable() { + return stub.updateLiveConfigOperationCallable(); } - @Override - public void shutdownNow() { - stub.shutdownNow(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified LiveConfig. Only update fields specified in the call method body. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   UpdateLiveConfigRequest request =
+   *       UpdateLiveConfigRequest.newBuilder()
+   *           .setLiveConfig(LiveConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       videoStitcherServiceClient.updateLiveConfigCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateLiveConfigCallable() { + return stub.updateLiveConfigCallable(); } - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Registers the VOD config with the provided unique ID in the specified region. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   VodConfig vodConfig = VodConfig.newBuilder().build();
+   *   String vodConfigId = "vodConfigId1497626088";
+   *   VodConfig response =
+   *       videoStitcherServiceClient.createVodConfigAsync(parent, vodConfig, vodConfigId).get();
+   * }
+   * }
+ * + * @param parent Required. The project in which the VOD config should be created, in the form of + * `projects/{project_number}/locations/{location}`. + * @param vodConfig Required. The VOD config resource to create. + * @param vodConfigId Required. The unique identifier ID to use for the VOD config. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVodConfigAsync( + LocationName parent, VodConfig vodConfig, String vodConfigId) { + CreateVodConfigRequest request = + CreateVodConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setVodConfig(vodConfig) + .setVodConfigId(vodConfigId) + .build(); + return createVodConfigAsync(request); } - public static class ListCdnKeysPagedResponse - extends AbstractPagedListResponse< - ListCdnKeysRequest, - ListCdnKeysResponse, - CdnKey, - ListCdnKeysPage, - ListCdnKeysFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListCdnKeysPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListCdnKeysPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListCdnKeysPagedResponse(ListCdnKeysPage page) { - super(page, ListCdnKeysFixedSizeCollection.createEmptyCollection()); - } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Registers the VOD config with the provided unique ID in the specified region. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   VodConfig vodConfig = VodConfig.newBuilder().build();
+   *   String vodConfigId = "vodConfigId1497626088";
+   *   VodConfig response =
+   *       videoStitcherServiceClient.createVodConfigAsync(parent, vodConfig, vodConfigId).get();
+   * }
+   * }
+ * + * @param parent Required. The project in which the VOD config should be created, in the form of + * `projects/{project_number}/locations/{location}`. + * @param vodConfig Required. The VOD config resource to create. + * @param vodConfigId Required. The unique identifier ID to use for the VOD config. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVodConfigAsync( + String parent, VodConfig vodConfig, String vodConfigId) { + CreateVodConfigRequest request = + CreateVodConfigRequest.newBuilder() + .setParent(parent) + .setVodConfig(vodConfig) + .setVodConfigId(vodConfigId) + .build(); + return createVodConfigAsync(request); } - public static class ListCdnKeysPage - extends AbstractPage { + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Registers the VOD config with the provided unique ID in the specified region. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   CreateVodConfigRequest request =
+   *       CreateVodConfigRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setVodConfigId("vodConfigId1497626088")
+   *           .setVodConfig(VodConfig.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   VodConfig response = videoStitcherServiceClient.createVodConfigAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVodConfigAsync( + CreateVodConfigRequest request) { + return createVodConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Registers the VOD config with the provided unique ID in the specified region. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   CreateVodConfigRequest request =
+   *       CreateVodConfigRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setVodConfigId("vodConfigId1497626088")
+   *           .setVodConfig(VodConfig.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       videoStitcherServiceClient.createVodConfigOperationCallable().futureCall(request);
+   *   // Do something.
+   *   VodConfig response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createVodConfigOperationCallable() { + return stub.createVodConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Registers the VOD config with the provided unique ID in the specified region. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   CreateVodConfigRequest request =
+   *       CreateVodConfigRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setVodConfigId("vodConfigId1497626088")
+   *           .setVodConfig(VodConfig.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       videoStitcherServiceClient.createVodConfigCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createVodConfigCallable() { + return stub.createVodConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all VOD configs managed by the Video Stitcher API that belong to the specified project + * and region. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (VodConfig element : videoStitcherServiceClient.listVodConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project that contains the list of VOD configs, in the form of + * `projects/{project_number}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListVodConfigsPagedResponse listVodConfigs(LocationName parent) { + ListVodConfigsRequest request = + ListVodConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listVodConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all VOD configs managed by the Video Stitcher API that belong to the specified project + * and region. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (VodConfig element : videoStitcherServiceClient.listVodConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project that contains the list of VOD configs, in the form of + * `projects/{project_number}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListVodConfigsPagedResponse listVodConfigs(String parent) { + ListVodConfigsRequest request = ListVodConfigsRequest.newBuilder().setParent(parent).build(); + return listVodConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all VOD configs managed by the Video Stitcher API that belong to the specified project + * and region. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   ListVodConfigsRequest request =
+   *       ListVodConfigsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (VodConfig element : videoStitcherServiceClient.listVodConfigs(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListVodConfigsPagedResponse listVodConfigs(ListVodConfigsRequest request) { + return listVodConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all VOD configs managed by the Video Stitcher API that belong to the specified project + * and region. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   ListVodConfigsRequest request =
+   *       ListVodConfigsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       videoStitcherServiceClient.listVodConfigsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (VodConfig element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listVodConfigsPagedCallable() { + return stub.listVodConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all VOD configs managed by the Video Stitcher API that belong to the specified project + * and region. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   ListVodConfigsRequest request =
+   *       ListVodConfigsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListVodConfigsResponse response =
+   *         videoStitcherServiceClient.listVodConfigsCallable().call(request);
+   *     for (VodConfig element : response.getVodConfigsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listVodConfigsCallable() { + return stub.listVodConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the specified VOD config managed by the Video Stitcher API service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   VodConfigName name = VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]");
+   *   VodConfig response = videoStitcherServiceClient.getVodConfig(name);
+   * }
+   * }
+ * + * @param name Required. The name of the VOD config to be retrieved, in the form of + * `projects/{project_number}/locations/{location}/vodConfigs/{id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final VodConfig getVodConfig(VodConfigName name) { + GetVodConfigRequest request = + GetVodConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getVodConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the specified VOD config managed by the Video Stitcher API service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   String name = VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString();
+   *   VodConfig response = videoStitcherServiceClient.getVodConfig(name);
+   * }
+   * }
+ * + * @param name Required. The name of the VOD config to be retrieved, in the form of + * `projects/{project_number}/locations/{location}/vodConfigs/{id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final VodConfig getVodConfig(String name) { + GetVodConfigRequest request = GetVodConfigRequest.newBuilder().setName(name).build(); + return getVodConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the specified VOD config managed by the Video Stitcher API service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   GetVodConfigRequest request =
+   *       GetVodConfigRequest.newBuilder()
+   *           .setName(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString())
+   *           .build();
+   *   VodConfig response = videoStitcherServiceClient.getVodConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final VodConfig getVodConfig(GetVodConfigRequest request) { + return getVodConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the specified VOD config managed by the Video Stitcher API service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   GetVodConfigRequest request =
+   *       GetVodConfigRequest.newBuilder()
+   *           .setName(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       videoStitcherServiceClient.getVodConfigCallable().futureCall(request);
+   *   // Do something.
+   *   VodConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getVodConfigCallable() { + return stub.getVodConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified VOD config. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   VodConfigName name = VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]");
+   *   videoStitcherServiceClient.deleteVodConfigAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the VOD config to be deleted, in the form of + * `projects/{project_number}/locations/{location}/vodConfigs/{id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteVodConfigAsync(VodConfigName name) { + DeleteVodConfigRequest request = + DeleteVodConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteVodConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified VOD config. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   String name = VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString();
+   *   videoStitcherServiceClient.deleteVodConfigAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the VOD config to be deleted, in the form of + * `projects/{project_number}/locations/{location}/vodConfigs/{id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteVodConfigAsync(String name) { + DeleteVodConfigRequest request = DeleteVodConfigRequest.newBuilder().setName(name).build(); + return deleteVodConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified VOD config. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   DeleteVodConfigRequest request =
+   *       DeleteVodConfigRequest.newBuilder()
+   *           .setName(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString())
+   *           .build();
+   *   videoStitcherServiceClient.deleteVodConfigAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteVodConfigAsync( + DeleteVodConfigRequest request) { + return deleteVodConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified VOD config. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   DeleteVodConfigRequest request =
+   *       DeleteVodConfigRequest.newBuilder()
+   *           .setName(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString())
+   *           .build();
+   *   OperationFuture future =
+   *       videoStitcherServiceClient.deleteVodConfigOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteVodConfigOperationCallable() { + return stub.deleteVodConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified VOD config. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   DeleteVodConfigRequest request =
+   *       DeleteVodConfigRequest.newBuilder()
+   *           .setName(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       videoStitcherServiceClient.deleteVodConfigCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteVodConfigCallable() { + return stub.deleteVodConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified VOD config. Only update fields specified in the call method body. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   VodConfig vodConfig = VodConfig.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   VodConfig response =
+   *       videoStitcherServiceClient.updateVodConfigAsync(vodConfig, updateMask).get();
+   * }
+   * }
+ * + * @param vodConfig Required. The VOD config resource which replaces the resource on the server. + * @param updateMask Required. The update mask applies to the resource. For the `FieldMask` + * definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateVodConfigAsync( + VodConfig vodConfig, FieldMask updateMask) { + UpdateVodConfigRequest request = + UpdateVodConfigRequest.newBuilder() + .setVodConfig(vodConfig) + .setUpdateMask(updateMask) + .build(); + return updateVodConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified VOD config. Only update fields specified in the call method body. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   UpdateVodConfigRequest request =
+   *       UpdateVodConfigRequest.newBuilder()
+   *           .setVodConfig(VodConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   VodConfig response = videoStitcherServiceClient.updateVodConfigAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateVodConfigAsync( + UpdateVodConfigRequest request) { + return updateVodConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified VOD config. Only update fields specified in the call method body. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   UpdateVodConfigRequest request =
+   *       UpdateVodConfigRequest.newBuilder()
+   *           .setVodConfig(VodConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       videoStitcherServiceClient.updateVodConfigOperationCallable().futureCall(request);
+   *   // Do something.
+   *   VodConfig response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateVodConfigOperationCallable() { + return stub.updateVodConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified VOD config. Only update fields specified in the call method body. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VideoStitcherServiceClient videoStitcherServiceClient =
+   *     VideoStitcherServiceClient.create()) {
+   *   UpdateVodConfigRequest request =
+   *       UpdateVodConfigRequest.newBuilder()
+   *           .setVodConfig(VodConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       videoStitcherServiceClient.updateVodConfigCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateVodConfigCallable() { + return stub.updateVodConfigCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListCdnKeysPagedResponse + extends AbstractPagedListResponse< + ListCdnKeysRequest, + ListCdnKeysResponse, + CdnKey, + ListCdnKeysPage, + ListCdnKeysFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCdnKeysPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListCdnKeysPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListCdnKeysPagedResponse(ListCdnKeysPage page) { + super(page, ListCdnKeysFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCdnKeysPage + extends AbstractPage { private ListCdnKeysPage( PageContext context, @@ -4647,4 +5641,80 @@ protected ListLiveConfigsFixedSizeCollection createCollection( return new ListLiveConfigsFixedSizeCollection(pages, collectionSize); } } + + public static class ListVodConfigsPagedResponse + extends AbstractPagedListResponse< + ListVodConfigsRequest, + ListVodConfigsResponse, + VodConfig, + ListVodConfigsPage, + ListVodConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListVodConfigsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListVodConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListVodConfigsPagedResponse(ListVodConfigsPage page) { + super(page, ListVodConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListVodConfigsPage + extends AbstractPage< + ListVodConfigsRequest, ListVodConfigsResponse, VodConfig, ListVodConfigsPage> { + + private ListVodConfigsPage( + PageContext context, + ListVodConfigsResponse response) { + super(context, response); + } + + private static ListVodConfigsPage createEmptyPage() { + return new ListVodConfigsPage(null, null); + } + + @Override + protected ListVodConfigsPage createPage( + PageContext context, + ListVodConfigsResponse response) { + return new ListVodConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListVodConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListVodConfigsRequest, + ListVodConfigsResponse, + VodConfig, + ListVodConfigsPage, + ListVodConfigsFixedSizeCollection> { + + private ListVodConfigsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListVodConfigsFixedSizeCollection createEmptyCollection() { + return new ListVodConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ListVodConfigsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListVodConfigsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceSettings.java b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceSettings.java index 6cd818867da0..11f8e283f1d4 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceSettings.java +++ b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceSettings.java @@ -21,6 +21,7 @@ import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListLiveConfigsPagedResponse; import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListSlatesPagedResponse; import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListVodAdTagDetailsPagedResponse; +import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListVodConfigsPagedResponse; import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListVodStitchDetailsPagedResponse; import com.google.api.core.ApiFunction; @@ -268,6 +269,66 @@ public UnaryCallSettings deleteLiveConfigSet .deleteLiveConfigOperationSettings(); } + /** Returns the object with the settings used for calls to updateLiveConfig. */ + public UnaryCallSettings updateLiveConfigSettings() { + return ((VideoStitcherServiceStubSettings) getStubSettings()).updateLiveConfigSettings(); + } + + /** Returns the object with the settings used for calls to updateLiveConfig. */ + public OperationCallSettings + updateLiveConfigOperationSettings() { + return ((VideoStitcherServiceStubSettings) getStubSettings()) + .updateLiveConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to createVodConfig. */ + public UnaryCallSettings createVodConfigSettings() { + return ((VideoStitcherServiceStubSettings) getStubSettings()).createVodConfigSettings(); + } + + /** Returns the object with the settings used for calls to createVodConfig. */ + public OperationCallSettings + createVodConfigOperationSettings() { + return ((VideoStitcherServiceStubSettings) getStubSettings()) + .createVodConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to listVodConfigs. */ + public PagedCallSettings< + ListVodConfigsRequest, ListVodConfigsResponse, ListVodConfigsPagedResponse> + listVodConfigsSettings() { + return ((VideoStitcherServiceStubSettings) getStubSettings()).listVodConfigsSettings(); + } + + /** Returns the object with the settings used for calls to getVodConfig. */ + public UnaryCallSettings getVodConfigSettings() { + return ((VideoStitcherServiceStubSettings) getStubSettings()).getVodConfigSettings(); + } + + /** Returns the object with the settings used for calls to deleteVodConfig. */ + public UnaryCallSettings deleteVodConfigSettings() { + return ((VideoStitcherServiceStubSettings) getStubSettings()).deleteVodConfigSettings(); + } + + /** Returns the object with the settings used for calls to deleteVodConfig. */ + public OperationCallSettings + deleteVodConfigOperationSettings() { + return ((VideoStitcherServiceStubSettings) getStubSettings()) + .deleteVodConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateVodConfig. */ + public UnaryCallSettings updateVodConfigSettings() { + return ((VideoStitcherServiceStubSettings) getStubSettings()).updateVodConfigSettings(); + } + + /** Returns the object with the settings used for calls to updateVodConfig. */ + public OperationCallSettings + updateVodConfigOperationSettings() { + return ((VideoStitcherServiceStubSettings) getStubSettings()) + .updateVodConfigOperationSettings(); + } + public static final VideoStitcherServiceSettings create(VideoStitcherServiceStubSettings stub) throws IOException { return new VideoStitcherServiceSettings.Builder(stub.toBuilder()).build(); @@ -557,6 +618,63 @@ public UnaryCallSettings.Builder getLiveConfig return getStubSettingsBuilder().deleteLiveConfigOperationSettings(); } + /** Returns the builder for the settings used for calls to updateLiveConfig. */ + public UnaryCallSettings.Builder + updateLiveConfigSettings() { + return getStubSettingsBuilder().updateLiveConfigSettings(); + } + + /** Returns the builder for the settings used for calls to updateLiveConfig. */ + public OperationCallSettings.Builder + updateLiveConfigOperationSettings() { + return getStubSettingsBuilder().updateLiveConfigOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createVodConfig. */ + public UnaryCallSettings.Builder createVodConfigSettings() { + return getStubSettingsBuilder().createVodConfigSettings(); + } + + /** Returns the builder for the settings used for calls to createVodConfig. */ + public OperationCallSettings.Builder + createVodConfigOperationSettings() { + return getStubSettingsBuilder().createVodConfigOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listVodConfigs. */ + public PagedCallSettings.Builder< + ListVodConfigsRequest, ListVodConfigsResponse, ListVodConfigsPagedResponse> + listVodConfigsSettings() { + return getStubSettingsBuilder().listVodConfigsSettings(); + } + + /** Returns the builder for the settings used for calls to getVodConfig. */ + public UnaryCallSettings.Builder getVodConfigSettings() { + return getStubSettingsBuilder().getVodConfigSettings(); + } + + /** Returns the builder for the settings used for calls to deleteVodConfig. */ + public UnaryCallSettings.Builder deleteVodConfigSettings() { + return getStubSettingsBuilder().deleteVodConfigSettings(); + } + + /** Returns the builder for the settings used for calls to deleteVodConfig. */ + public OperationCallSettings.Builder + deleteVodConfigOperationSettings() { + return getStubSettingsBuilder().deleteVodConfigOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateVodConfig. */ + public UnaryCallSettings.Builder updateVodConfigSettings() { + return getStubSettingsBuilder().updateVodConfigSettings(); + } + + /** Returns the builder for the settings used for calls to updateVodConfig. */ + public OperationCallSettings.Builder + updateVodConfigOperationSettings() { + return getStubSettingsBuilder().updateVodConfigOperationSettings(); + } + @Override public VideoStitcherServiceSettings build() throws IOException { return new VideoStitcherServiceSettings(this); diff --git a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/gapic_metadata.json b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/gapic_metadata.json index bcffc0f8b69e..46ff35a3f4b3 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/gapic_metadata.json +++ b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/gapic_metadata.json @@ -22,6 +22,9 @@ "CreateSlate": { "methods": ["createSlateAsync", "createSlateAsync", "createSlateAsync", "createSlateOperationCallable", "createSlateCallable"] }, + "CreateVodConfig": { + "methods": ["createVodConfigAsync", "createVodConfigAsync", "createVodConfigAsync", "createVodConfigOperationCallable", "createVodConfigCallable"] + }, "CreateVodSession": { "methods": ["createVodSession", "createVodSession", "createVodSession", "createVodSessionCallable"] }, @@ -34,6 +37,9 @@ "DeleteSlate": { "methods": ["deleteSlateAsync", "deleteSlateAsync", "deleteSlateAsync", "deleteSlateOperationCallable", "deleteSlateCallable"] }, + "DeleteVodConfig": { + "methods": ["deleteVodConfigAsync", "deleteVodConfigAsync", "deleteVodConfigAsync", "deleteVodConfigOperationCallable", "deleteVodConfigCallable"] + }, "GetCdnKey": { "methods": ["getCdnKey", "getCdnKey", "getCdnKey", "getCdnKeyCallable"] }, @@ -52,6 +58,9 @@ "GetVodAdTagDetail": { "methods": ["getVodAdTagDetail", "getVodAdTagDetail", "getVodAdTagDetail", "getVodAdTagDetailCallable"] }, + "GetVodConfig": { + "methods": ["getVodConfig", "getVodConfig", "getVodConfig", "getVodConfigCallable"] + }, "GetVodSession": { "methods": ["getVodSession", "getVodSession", "getVodSession", "getVodSessionCallable"] }, @@ -73,14 +82,23 @@ "ListVodAdTagDetails": { "methods": ["listVodAdTagDetails", "listVodAdTagDetails", "listVodAdTagDetails", "listVodAdTagDetailsPagedCallable", "listVodAdTagDetailsCallable"] }, + "ListVodConfigs": { + "methods": ["listVodConfigs", "listVodConfigs", "listVodConfigs", "listVodConfigsPagedCallable", "listVodConfigsCallable"] + }, "ListVodStitchDetails": { "methods": ["listVodStitchDetails", "listVodStitchDetails", "listVodStitchDetails", "listVodStitchDetailsPagedCallable", "listVodStitchDetailsCallable"] }, "UpdateCdnKey": { "methods": ["updateCdnKeyAsync", "updateCdnKeyAsync", "updateCdnKeyOperationCallable", "updateCdnKeyCallable"] }, + "UpdateLiveConfig": { + "methods": ["updateLiveConfigAsync", "updateLiveConfigAsync", "updateLiveConfigOperationCallable", "updateLiveConfigCallable"] + }, "UpdateSlate": { "methods": ["updateSlateAsync", "updateSlateAsync", "updateSlateOperationCallable", "updateSlateCallable"] + }, + "UpdateVodConfig": { + "methods": ["updateVodConfigAsync", "updateVodConfigAsync", "updateVodConfigOperationCallable", "updateVodConfigCallable"] } } } diff --git a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/GrpcVideoStitcherServiceStub.java b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/GrpcVideoStitcherServiceStub.java index f6c6bbce8eda..acdbebfcdbf2 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/GrpcVideoStitcherServiceStub.java +++ b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/GrpcVideoStitcherServiceStub.java @@ -21,6 +21,7 @@ import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListLiveConfigsPagedResponse; import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListSlatesPagedResponse; import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListVodAdTagDetailsPagedResponse; +import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListVodConfigsPagedResponse; import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListVodStitchDetailsPagedResponse; import com.google.api.gax.core.BackgroundResource; @@ -36,16 +37,19 @@ import com.google.cloud.video.stitcher.v1.CreateLiveConfigRequest; import com.google.cloud.video.stitcher.v1.CreateLiveSessionRequest; import com.google.cloud.video.stitcher.v1.CreateSlateRequest; +import com.google.cloud.video.stitcher.v1.CreateVodConfigRequest; import com.google.cloud.video.stitcher.v1.CreateVodSessionRequest; import com.google.cloud.video.stitcher.v1.DeleteCdnKeyRequest; import com.google.cloud.video.stitcher.v1.DeleteLiveConfigRequest; import com.google.cloud.video.stitcher.v1.DeleteSlateRequest; +import com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest; import com.google.cloud.video.stitcher.v1.GetCdnKeyRequest; import com.google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest; import com.google.cloud.video.stitcher.v1.GetLiveConfigRequest; import com.google.cloud.video.stitcher.v1.GetLiveSessionRequest; import com.google.cloud.video.stitcher.v1.GetSlateRequest; import com.google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest; +import com.google.cloud.video.stitcher.v1.GetVodConfigRequest; import com.google.cloud.video.stitcher.v1.GetVodSessionRequest; import com.google.cloud.video.stitcher.v1.GetVodStitchDetailRequest; import com.google.cloud.video.stitcher.v1.ListCdnKeysRequest; @@ -58,6 +62,8 @@ import com.google.cloud.video.stitcher.v1.ListSlatesResponse; import com.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest; import com.google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse; +import com.google.cloud.video.stitcher.v1.ListVodConfigsRequest; +import com.google.cloud.video.stitcher.v1.ListVodConfigsResponse; import com.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest; import com.google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse; import com.google.cloud.video.stitcher.v1.LiveAdTagDetail; @@ -66,8 +72,11 @@ import com.google.cloud.video.stitcher.v1.OperationMetadata; import com.google.cloud.video.stitcher.v1.Slate; import com.google.cloud.video.stitcher.v1.UpdateCdnKeyRequest; +import com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest; import com.google.cloud.video.stitcher.v1.UpdateSlateRequest; +import com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest; import com.google.cloud.video.stitcher.v1.VodAdTagDetail; +import com.google.cloud.video.stitcher.v1.VodConfig; import com.google.cloud.video.stitcher.v1.VodSession; import com.google.cloud.video.stitcher.v1.VodStitchDetail; import com.google.longrunning.Operation; @@ -331,6 +340,71 @@ public class GrpcVideoStitcherServiceStub extends VideoStitcherServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + updateLiveConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.video.stitcher.v1.VideoStitcherService/UpdateLiveConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateLiveConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createVodConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.video.stitcher.v1.VideoStitcherService/CreateVodConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateVodConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listVodConfigsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.video.stitcher.v1.VideoStitcherService/ListVodConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListVodConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListVodConfigsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getVodConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.video.stitcher.v1.VideoStitcherService/GetVodConfig") + .setRequestMarshaller(ProtoUtils.marshaller(GetVodConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(VodConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteVodConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.video.stitcher.v1.VideoStitcherService/DeleteVodConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteVodConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateVodConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.video.stitcher.v1.VideoStitcherService/UpdateVodConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateVodConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private final UnaryCallable createCdnKeyCallable; private final OperationCallable createCdnKeyOperationCallable; @@ -388,6 +462,22 @@ public class GrpcVideoStitcherServiceStub extends VideoStitcherServiceStub { private final UnaryCallable deleteLiveConfigCallable; private final OperationCallable deleteLiveConfigOperationCallable; + private final UnaryCallable updateLiveConfigCallable; + private final OperationCallable + updateLiveConfigOperationCallable; + private final UnaryCallable createVodConfigCallable; + private final OperationCallable + createVodConfigOperationCallable; + private final UnaryCallable listVodConfigsCallable; + private final UnaryCallable + listVodConfigsPagedCallable; + private final UnaryCallable getVodConfigCallable; + private final UnaryCallable deleteVodConfigCallable; + private final OperationCallable + deleteVodConfigOperationCallable; + private final UnaryCallable updateVodConfigCallable; + private final OperationCallable + updateVodConfigOperationCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -679,6 +769,68 @@ protected GrpcVideoStitcherServiceStub( return builder.build(); }) .build(); + GrpcCallSettings updateLiveConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateLiveConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "live_config.name", String.valueOf(request.getLiveConfig().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createVodConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createVodConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listVodConfigsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listVodConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getVodConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getVodConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteVodConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteVodConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateVodConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateVodConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("vod_config.name", String.valueOf(request.getVodConfig().getName())); + return builder.build(); + }) + .build(); this.createCdnKeyCallable = callableFactory.createUnaryCallable( @@ -838,6 +990,51 @@ protected GrpcVideoStitcherServiceStub( settings.deleteLiveConfigOperationSettings(), clientContext, operationsStub); + this.updateLiveConfigCallable = + callableFactory.createUnaryCallable( + updateLiveConfigTransportSettings, settings.updateLiveConfigSettings(), clientContext); + this.updateLiveConfigOperationCallable = + callableFactory.createOperationCallable( + updateLiveConfigTransportSettings, + settings.updateLiveConfigOperationSettings(), + clientContext, + operationsStub); + this.createVodConfigCallable = + callableFactory.createUnaryCallable( + createVodConfigTransportSettings, settings.createVodConfigSettings(), clientContext); + this.createVodConfigOperationCallable = + callableFactory.createOperationCallable( + createVodConfigTransportSettings, + settings.createVodConfigOperationSettings(), + clientContext, + operationsStub); + this.listVodConfigsCallable = + callableFactory.createUnaryCallable( + listVodConfigsTransportSettings, settings.listVodConfigsSettings(), clientContext); + this.listVodConfigsPagedCallable = + callableFactory.createPagedCallable( + listVodConfigsTransportSettings, settings.listVodConfigsSettings(), clientContext); + this.getVodConfigCallable = + callableFactory.createUnaryCallable( + getVodConfigTransportSettings, settings.getVodConfigSettings(), clientContext); + this.deleteVodConfigCallable = + callableFactory.createUnaryCallable( + deleteVodConfigTransportSettings, settings.deleteVodConfigSettings(), clientContext); + this.deleteVodConfigOperationCallable = + callableFactory.createOperationCallable( + deleteVodConfigTransportSettings, + settings.deleteVodConfigOperationSettings(), + clientContext, + operationsStub); + this.updateVodConfigCallable = + callableFactory.createUnaryCallable( + updateVodConfigTransportSettings, settings.updateVodConfigSettings(), clientContext); + this.updateVodConfigOperationCallable = + callableFactory.createOperationCallable( + updateVodConfigTransportSettings, + settings.updateVodConfigOperationSettings(), + clientContext, + operationsStub); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -1052,6 +1249,66 @@ public UnaryCallable deleteLiveConfigCallabl return deleteLiveConfigOperationCallable; } + @Override + public UnaryCallable updateLiveConfigCallable() { + return updateLiveConfigCallable; + } + + @Override + public OperationCallable + updateLiveConfigOperationCallable() { + return updateLiveConfigOperationCallable; + } + + @Override + public UnaryCallable createVodConfigCallable() { + return createVodConfigCallable; + } + + @Override + public OperationCallable + createVodConfigOperationCallable() { + return createVodConfigOperationCallable; + } + + @Override + public UnaryCallable listVodConfigsCallable() { + return listVodConfigsCallable; + } + + @Override + public UnaryCallable + listVodConfigsPagedCallable() { + return listVodConfigsPagedCallable; + } + + @Override + public UnaryCallable getVodConfigCallable() { + return getVodConfigCallable; + } + + @Override + public UnaryCallable deleteVodConfigCallable() { + return deleteVodConfigCallable; + } + + @Override + public OperationCallable + deleteVodConfigOperationCallable() { + return deleteVodConfigOperationCallable; + } + + @Override + public UnaryCallable updateVodConfigCallable() { + return updateVodConfigCallable; + } + + @Override + public OperationCallable + updateVodConfigOperationCallable() { + return updateVodConfigOperationCallable; + } + @Override public final void close() { try { diff --git a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStub.java b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStub.java index 3aec5a14ff2d..b69d783ba6de 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStub.java +++ b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStub.java @@ -21,6 +21,7 @@ import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListLiveConfigsPagedResponse; import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListSlatesPagedResponse; import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListVodAdTagDetailsPagedResponse; +import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListVodConfigsPagedResponse; import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListVodStitchDetailsPagedResponse; import com.google.api.gax.core.BackgroundResource; @@ -31,16 +32,19 @@ import com.google.cloud.video.stitcher.v1.CreateLiveConfigRequest; import com.google.cloud.video.stitcher.v1.CreateLiveSessionRequest; import com.google.cloud.video.stitcher.v1.CreateSlateRequest; +import com.google.cloud.video.stitcher.v1.CreateVodConfigRequest; import com.google.cloud.video.stitcher.v1.CreateVodSessionRequest; import com.google.cloud.video.stitcher.v1.DeleteCdnKeyRequest; import com.google.cloud.video.stitcher.v1.DeleteLiveConfigRequest; import com.google.cloud.video.stitcher.v1.DeleteSlateRequest; +import com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest; import com.google.cloud.video.stitcher.v1.GetCdnKeyRequest; import com.google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest; import com.google.cloud.video.stitcher.v1.GetLiveConfigRequest; import com.google.cloud.video.stitcher.v1.GetLiveSessionRequest; import com.google.cloud.video.stitcher.v1.GetSlateRequest; import com.google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest; +import com.google.cloud.video.stitcher.v1.GetVodConfigRequest; import com.google.cloud.video.stitcher.v1.GetVodSessionRequest; import com.google.cloud.video.stitcher.v1.GetVodStitchDetailRequest; import com.google.cloud.video.stitcher.v1.ListCdnKeysRequest; @@ -53,6 +57,8 @@ import com.google.cloud.video.stitcher.v1.ListSlatesResponse; import com.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest; import com.google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse; +import com.google.cloud.video.stitcher.v1.ListVodConfigsRequest; +import com.google.cloud.video.stitcher.v1.ListVodConfigsResponse; import com.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest; import com.google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse; import com.google.cloud.video.stitcher.v1.LiveAdTagDetail; @@ -61,8 +67,11 @@ import com.google.cloud.video.stitcher.v1.OperationMetadata; import com.google.cloud.video.stitcher.v1.Slate; import com.google.cloud.video.stitcher.v1.UpdateCdnKeyRequest; +import com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest; import com.google.cloud.video.stitcher.v1.UpdateSlateRequest; +import com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest; import com.google.cloud.video.stitcher.v1.VodAdTagDetail; +import com.google.cloud.video.stitcher.v1.VodConfig; import com.google.cloud.video.stitcher.v1.VodSession; import com.google.cloud.video.stitcher.v1.VodStitchDetail; import com.google.longrunning.Operation; @@ -250,6 +259,55 @@ public UnaryCallable deleteLiveConfigCallabl throw new UnsupportedOperationException("Not implemented: deleteLiveConfigCallable()"); } + public OperationCallable + updateLiveConfigOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateLiveConfigOperationCallable()"); + } + + public UnaryCallable updateLiveConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateLiveConfigCallable()"); + } + + public OperationCallable + createVodConfigOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createVodConfigOperationCallable()"); + } + + public UnaryCallable createVodConfigCallable() { + throw new UnsupportedOperationException("Not implemented: createVodConfigCallable()"); + } + + public UnaryCallable + listVodConfigsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listVodConfigsPagedCallable()"); + } + + public UnaryCallable listVodConfigsCallable() { + throw new UnsupportedOperationException("Not implemented: listVodConfigsCallable()"); + } + + public UnaryCallable getVodConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getVodConfigCallable()"); + } + + public OperationCallable + deleteVodConfigOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteVodConfigOperationCallable()"); + } + + public UnaryCallable deleteVodConfigCallable() { + throw new UnsupportedOperationException("Not implemented: deleteVodConfigCallable()"); + } + + public OperationCallable + updateVodConfigOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateVodConfigOperationCallable()"); + } + + public UnaryCallable updateVodConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateVodConfigCallable()"); + } + @Override public abstract void close(); } diff --git a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStubSettings.java b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStubSettings.java index f108fe65bccf..e7e194d964c1 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStubSettings.java +++ b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/VideoStitcherServiceStubSettings.java @@ -21,6 +21,7 @@ import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListLiveConfigsPagedResponse; import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListSlatesPagedResponse; import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListVodAdTagDetailsPagedResponse; +import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListVodConfigsPagedResponse; import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListVodStitchDetailsPagedResponse; import com.google.api.core.ApiFunction; @@ -53,16 +54,19 @@ import com.google.cloud.video.stitcher.v1.CreateLiveConfigRequest; import com.google.cloud.video.stitcher.v1.CreateLiveSessionRequest; import com.google.cloud.video.stitcher.v1.CreateSlateRequest; +import com.google.cloud.video.stitcher.v1.CreateVodConfigRequest; import com.google.cloud.video.stitcher.v1.CreateVodSessionRequest; import com.google.cloud.video.stitcher.v1.DeleteCdnKeyRequest; import com.google.cloud.video.stitcher.v1.DeleteLiveConfigRequest; import com.google.cloud.video.stitcher.v1.DeleteSlateRequest; +import com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest; import com.google.cloud.video.stitcher.v1.GetCdnKeyRequest; import com.google.cloud.video.stitcher.v1.GetLiveAdTagDetailRequest; import com.google.cloud.video.stitcher.v1.GetLiveConfigRequest; import com.google.cloud.video.stitcher.v1.GetLiveSessionRequest; import com.google.cloud.video.stitcher.v1.GetSlateRequest; import com.google.cloud.video.stitcher.v1.GetVodAdTagDetailRequest; +import com.google.cloud.video.stitcher.v1.GetVodConfigRequest; import com.google.cloud.video.stitcher.v1.GetVodSessionRequest; import com.google.cloud.video.stitcher.v1.GetVodStitchDetailRequest; import com.google.cloud.video.stitcher.v1.ListCdnKeysRequest; @@ -75,6 +79,8 @@ import com.google.cloud.video.stitcher.v1.ListSlatesResponse; import com.google.cloud.video.stitcher.v1.ListVodAdTagDetailsRequest; import com.google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse; +import com.google.cloud.video.stitcher.v1.ListVodConfigsRequest; +import com.google.cloud.video.stitcher.v1.ListVodConfigsResponse; import com.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest; import com.google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse; import com.google.cloud.video.stitcher.v1.LiveAdTagDetail; @@ -83,8 +89,11 @@ import com.google.cloud.video.stitcher.v1.OperationMetadata; import com.google.cloud.video.stitcher.v1.Slate; import com.google.cloud.video.stitcher.v1.UpdateCdnKeyRequest; +import com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest; import com.google.cloud.video.stitcher.v1.UpdateSlateRequest; +import com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest; import com.google.cloud.video.stitcher.v1.VodAdTagDetail; +import com.google.cloud.video.stitcher.v1.VodConfig; import com.google.cloud.video.stitcher.v1.VodSession; import com.google.cloud.video.stitcher.v1.VodStitchDetail; import com.google.common.collect.ImmutableList; @@ -200,6 +209,22 @@ public class VideoStitcherServiceStubSettings private final UnaryCallSettings deleteLiveConfigSettings; private final OperationCallSettings deleteLiveConfigOperationSettings; + private final UnaryCallSettings updateLiveConfigSettings; + private final OperationCallSettings + updateLiveConfigOperationSettings; + private final UnaryCallSettings createVodConfigSettings; + private final OperationCallSettings + createVodConfigOperationSettings; + private final PagedCallSettings< + ListVodConfigsRequest, ListVodConfigsResponse, ListVodConfigsPagedResponse> + listVodConfigsSettings; + private final UnaryCallSettings getVodConfigSettings; + private final UnaryCallSettings deleteVodConfigSettings; + private final OperationCallSettings + deleteVodConfigOperationSettings; + private final UnaryCallSettings updateVodConfigSettings; + private final OperationCallSettings + updateVodConfigOperationSettings; private static final PagedListDescriptor LIST_CDN_KEYS_PAGE_STR_DESC = @@ -434,6 +459,43 @@ public Iterable extractResources(ListLiveConfigsResponse payload) { } }; + private static final PagedListDescriptor + LIST_VOD_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListVodConfigsRequest injectToken(ListVodConfigsRequest payload, String token) { + return ListVodConfigsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListVodConfigsRequest injectPageSize( + ListVodConfigsRequest payload, int pageSize) { + return ListVodConfigsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListVodConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListVodConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListVodConfigsResponse payload) { + return payload.getVodConfigsList() == null + ? ImmutableList.of() + : payload.getVodConfigsList(); + } + }; + private static final PagedListResponseFactory< ListCdnKeysRequest, ListCdnKeysResponse, ListCdnKeysPagedResponse> LIST_CDN_KEYS_PAGE_STR_FACT = @@ -554,6 +616,23 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListVodConfigsRequest, ListVodConfigsResponse, ListVodConfigsPagedResponse> + LIST_VOD_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListVodConfigsRequest, ListVodConfigsResponse, ListVodConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListVodConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_VOD_CONFIGS_PAGE_STR_DESC, request, context); + return ListVodConfigsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to createCdnKey. */ public UnaryCallSettings createCdnKeySettings() { return createCdnKeySettings; @@ -738,6 +817,62 @@ public UnaryCallSettings deleteLiveConfigSet return deleteLiveConfigOperationSettings; } + /** Returns the object with the settings used for calls to updateLiveConfig. */ + public UnaryCallSettings updateLiveConfigSettings() { + return updateLiveConfigSettings; + } + + /** Returns the object with the settings used for calls to updateLiveConfig. */ + public OperationCallSettings + updateLiveConfigOperationSettings() { + return updateLiveConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to createVodConfig. */ + public UnaryCallSettings createVodConfigSettings() { + return createVodConfigSettings; + } + + /** Returns the object with the settings used for calls to createVodConfig. */ + public OperationCallSettings + createVodConfigOperationSettings() { + return createVodConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to listVodConfigs. */ + public PagedCallSettings< + ListVodConfigsRequest, ListVodConfigsResponse, ListVodConfigsPagedResponse> + listVodConfigsSettings() { + return listVodConfigsSettings; + } + + /** Returns the object with the settings used for calls to getVodConfig. */ + public UnaryCallSettings getVodConfigSettings() { + return getVodConfigSettings; + } + + /** Returns the object with the settings used for calls to deleteVodConfig. */ + public UnaryCallSettings deleteVodConfigSettings() { + return deleteVodConfigSettings; + } + + /** Returns the object with the settings used for calls to deleteVodConfig. */ + public OperationCallSettings + deleteVodConfigOperationSettings() { + return deleteVodConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to updateVodConfig. */ + public UnaryCallSettings updateVodConfigSettings() { + return updateVodConfigSettings; + } + + /** Returns the object with the settings used for calls to updateVodConfig. */ + public OperationCallSettings + updateVodConfigOperationSettings() { + return updateVodConfigOperationSettings; + } + public VideoStitcherServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -850,6 +985,16 @@ protected VideoStitcherServiceStubSettings(Builder settingsBuilder) throws IOExc getLiveConfigSettings = settingsBuilder.getLiveConfigSettings().build(); deleteLiveConfigSettings = settingsBuilder.deleteLiveConfigSettings().build(); deleteLiveConfigOperationSettings = settingsBuilder.deleteLiveConfigOperationSettings().build(); + updateLiveConfigSettings = settingsBuilder.updateLiveConfigSettings().build(); + updateLiveConfigOperationSettings = settingsBuilder.updateLiveConfigOperationSettings().build(); + createVodConfigSettings = settingsBuilder.createVodConfigSettings().build(); + createVodConfigOperationSettings = settingsBuilder.createVodConfigOperationSettings().build(); + listVodConfigsSettings = settingsBuilder.listVodConfigsSettings().build(); + getVodConfigSettings = settingsBuilder.getVodConfigSettings().build(); + deleteVodConfigSettings = settingsBuilder.deleteVodConfigSettings().build(); + deleteVodConfigOperationSettings = settingsBuilder.deleteVodConfigOperationSettings().build(); + updateVodConfigSettings = settingsBuilder.updateVodConfigSettings().build(); + updateVodConfigOperationSettings = settingsBuilder.updateVodConfigOperationSettings().build(); } /** Builder for VideoStitcherServiceStubSettings. */ @@ -923,6 +1068,29 @@ public static class Builder deleteLiveConfigSettings; private final OperationCallSettings.Builder deleteLiveConfigOperationSettings; + private final UnaryCallSettings.Builder + updateLiveConfigSettings; + private final OperationCallSettings.Builder< + UpdateLiveConfigRequest, LiveConfig, OperationMetadata> + updateLiveConfigOperationSettings; + private final UnaryCallSettings.Builder + createVodConfigSettings; + private final OperationCallSettings.Builder< + CreateVodConfigRequest, VodConfig, OperationMetadata> + createVodConfigOperationSettings; + private final PagedCallSettings.Builder< + ListVodConfigsRequest, ListVodConfigsResponse, ListVodConfigsPagedResponse> + listVodConfigsSettings; + private final UnaryCallSettings.Builder getVodConfigSettings; + private final UnaryCallSettings.Builder + deleteVodConfigSettings; + private final OperationCallSettings.Builder + deleteVodConfigOperationSettings; + private final UnaryCallSettings.Builder + updateVodConfigSettings; + private final OperationCallSettings.Builder< + UpdateVodConfigRequest, VodConfig, OperationMetadata> + updateVodConfigOperationSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -931,6 +1099,9 @@ public static class Builder ImmutableMap.builder(); definitions.put( "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -947,6 +1118,17 @@ public static class Builder .setTotalTimeout(Duration.ofMillis(60000L)) .build(); definitions.put("no_retry_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(10000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } @@ -992,6 +1174,16 @@ protected Builder(ClientContext clientContext) { getLiveConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteLiveConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteLiveConfigOperationSettings = OperationCallSettings.newBuilder(); + updateLiveConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateLiveConfigOperationSettings = OperationCallSettings.newBuilder(); + createVodConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createVodConfigOperationSettings = OperationCallSettings.newBuilder(); + listVodConfigsSettings = PagedCallSettings.newBuilder(LIST_VOD_CONFIGS_PAGE_STR_FACT); + getVodConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteVodConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteVodConfigOperationSettings = OperationCallSettings.newBuilder(); + updateVodConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateVodConfigOperationSettings = OperationCallSettings.newBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -1018,7 +1210,13 @@ protected Builder(ClientContext clientContext) { createLiveConfigSettings, listLiveConfigsSettings, getLiveConfigSettings, - deleteLiveConfigSettings); + deleteLiveConfigSettings, + updateLiveConfigSettings, + createVodConfigSettings, + listVodConfigsSettings, + getVodConfigSettings, + deleteVodConfigSettings, + updateVodConfigSettings); initDefaults(this); } @@ -1057,6 +1255,16 @@ protected Builder(VideoStitcherServiceStubSettings settings) { getLiveConfigSettings = settings.getLiveConfigSettings.toBuilder(); deleteLiveConfigSettings = settings.deleteLiveConfigSettings.toBuilder(); deleteLiveConfigOperationSettings = settings.deleteLiveConfigOperationSettings.toBuilder(); + updateLiveConfigSettings = settings.updateLiveConfigSettings.toBuilder(); + updateLiveConfigOperationSettings = settings.updateLiveConfigOperationSettings.toBuilder(); + createVodConfigSettings = settings.createVodConfigSettings.toBuilder(); + createVodConfigOperationSettings = settings.createVodConfigOperationSettings.toBuilder(); + listVodConfigsSettings = settings.listVodConfigsSettings.toBuilder(); + getVodConfigSettings = settings.getVodConfigSettings.toBuilder(); + deleteVodConfigSettings = settings.deleteVodConfigSettings.toBuilder(); + deleteVodConfigOperationSettings = settings.deleteVodConfigOperationSettings.toBuilder(); + updateVodConfigSettings = settings.updateVodConfigSettings.toBuilder(); + updateVodConfigOperationSettings = settings.updateVodConfigOperationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -1083,7 +1291,13 @@ protected Builder(VideoStitcherServiceStubSettings settings) { createLiveConfigSettings, listLiveConfigsSettings, getLiveConfigSettings, - deleteLiveConfigSettings); + deleteLiveConfigSettings, + updateLiveConfigSettings, + createVodConfigSettings, + listVodConfigsSettings, + getVodConfigSettings, + deleteVodConfigSettings, + updateVodConfigSettings); } private static Builder createDefault() { @@ -1219,6 +1433,36 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .updateLiveConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createVodConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listVodConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getVodConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteVodConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateVodConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .createCdnKeyOperationSettings() .setInitialCallSettings( @@ -1408,6 +1652,102 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .updateLiveConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(LiveConfig.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createVodConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(VodConfig.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteVodConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateVodConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(VodConfig.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -1618,6 +1958,63 @@ public UnaryCallSettings.Builder getLiveConfig return deleteLiveConfigOperationSettings; } + /** Returns the builder for the settings used for calls to updateLiveConfig. */ + public UnaryCallSettings.Builder + updateLiveConfigSettings() { + return updateLiveConfigSettings; + } + + /** Returns the builder for the settings used for calls to updateLiveConfig. */ + public OperationCallSettings.Builder + updateLiveConfigOperationSettings() { + return updateLiveConfigOperationSettings; + } + + /** Returns the builder for the settings used for calls to createVodConfig. */ + public UnaryCallSettings.Builder createVodConfigSettings() { + return createVodConfigSettings; + } + + /** Returns the builder for the settings used for calls to createVodConfig. */ + public OperationCallSettings.Builder + createVodConfigOperationSettings() { + return createVodConfigOperationSettings; + } + + /** Returns the builder for the settings used for calls to listVodConfigs. */ + public PagedCallSettings.Builder< + ListVodConfigsRequest, ListVodConfigsResponse, ListVodConfigsPagedResponse> + listVodConfigsSettings() { + return listVodConfigsSettings; + } + + /** Returns the builder for the settings used for calls to getVodConfig. */ + public UnaryCallSettings.Builder getVodConfigSettings() { + return getVodConfigSettings; + } + + /** Returns the builder for the settings used for calls to deleteVodConfig. */ + public UnaryCallSettings.Builder deleteVodConfigSettings() { + return deleteVodConfigSettings; + } + + /** Returns the builder for the settings used for calls to deleteVodConfig. */ + public OperationCallSettings.Builder + deleteVodConfigOperationSettings() { + return deleteVodConfigOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateVodConfig. */ + public UnaryCallSettings.Builder updateVodConfigSettings() { + return updateVodConfigSettings; + } + + /** Returns the builder for the settings used for calls to updateVodConfig. */ + public OperationCallSettings.Builder + updateVodConfigOperationSettings() { + return updateVodConfigOperationSettings; + } + @Override public VideoStitcherServiceStubSettings build() throws IOException { return new VideoStitcherServiceStubSettings(this); diff --git a/java-video-stitcher/google-cloud-video-stitcher/src/main/resources/META-INF/native-image/com.google.cloud.video.stitcher.v1/reflect-config.json b/java-video-stitcher/google-cloud-video-stitcher/src/main/resources/META-INF/native-image/com.google.cloud.video.stitcher.v1/reflect-config.json index 98d782d0d3fc..df30d9b233a4 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/src/main/resources/META-INF/native-image/com.google.cloud.video.stitcher.v1/reflect-config.json +++ b/java-video-stitcher/google-cloud-video-stitcher/src/main/resources/META-INF/native-image/com.google.cloud.video.stitcher.v1/reflect-config.json @@ -575,6 +575,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.video.stitcher.v1.CreateVodConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.stitcher.v1.CreateVodConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.video.stitcher.v1.CreateVodSessionRequest", "queryAllDeclaredConstructors": true, @@ -647,6 +665,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.video.stitcher.v1.Event", "queryAllDeclaredConstructors": true, @@ -674,6 +710,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.video.stitcher.v1.FetchOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.stitcher.v1.FetchOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.video.stitcher.v1.GamLiveConfig", "queryAllDeclaredConstructors": true, @@ -692,6 +746,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.video.stitcher.v1.GamVodConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.stitcher.v1.GamVodConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.video.stitcher.v1.GetCdnKeyRequest", "queryAllDeclaredConstructors": true, @@ -800,6 +872,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.video.stitcher.v1.GetVodConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.stitcher.v1.GetVodConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.video.stitcher.v1.GetVodSessionRequest", "queryAllDeclaredConstructors": true, @@ -1088,6 +1178,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.video.stitcher.v1.ListVodConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.stitcher.v1.ListVodConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.stitcher.v1.ListVodConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.stitcher.v1.ListVodConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.video.stitcher.v1.ListVodStitchDetailsRequest", "queryAllDeclaredConstructors": true, @@ -1259,6 +1385,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.video.stitcher.v1.MediaCdnKey$TokenConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.stitcher.v1.MediaCdnKey$TokenConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.video.stitcher.v1.OperationMetadata", "queryAllDeclaredConstructors": true, @@ -1439,6 +1583,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.video.stitcher.v1.UpdateSlateRequest", "queryAllDeclaredConstructors": true, @@ -1457,6 +1619,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.video.stitcher.v1.VodAdTagDetail", "queryAllDeclaredConstructors": true, @@ -1475,6 +1655,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.video.stitcher.v1.VodConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.stitcher.v1.VodConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.video.stitcher.v1.VodConfig$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.video.stitcher.v1.VodSession", "queryAllDeclaredConstructors": true, diff --git a/java-video-stitcher/google-cloud-video-stitcher/src/test/java/com/google/cloud/video/stitcher/v1/MockVideoStitcherServiceImpl.java b/java-video-stitcher/google-cloud-video-stitcher/src/test/java/com/google/cloud/video/stitcher/v1/MockVideoStitcherServiceImpl.java index 84e29975417c..3dced3ed2b98 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/src/test/java/com/google/cloud/video/stitcher/v1/MockVideoStitcherServiceImpl.java +++ b/java-video-stitcher/google-cloud-video-stitcher/src/test/java/com/google/cloud/video/stitcher/v1/MockVideoStitcherServiceImpl.java @@ -560,4 +560,130 @@ public void deleteLiveConfig( Exception.class.getName()))); } } + + @Override + public void updateLiveConfig( + UpdateLiveConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateLiveConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createVodConfig( + CreateVodConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateVodConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listVodConfigs( + ListVodConfigsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListVodConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListVodConfigsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListVodConfigs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListVodConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getVodConfig( + GetVodConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof VodConfig) { + requests.add(request); + responseObserver.onNext(((VodConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetVodConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + VodConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteVodConfig( + DeleteVodConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteVodConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateVodConfig( + UpdateVodConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateVodConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-video-stitcher/google-cloud-video-stitcher/src/test/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceClientTest.java b/java-video-stitcher/google-cloud-video-stitcher/src/test/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceClientTest.java index 8c5836355bc2..25e2243029b7 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/src/test/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceClientTest.java +++ b/java-video-stitcher/google-cloud-video-stitcher/src/test/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceClientTest.java @@ -21,6 +21,7 @@ import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListLiveConfigsPagedResponse; import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListSlatesPagedResponse; import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListVodAdTagDetailsPagedResponse; +import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListVodConfigsPagedResponse; import static com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient.ListVodStitchDetailsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -511,6 +512,7 @@ public void createVodSessionTest() throws Exception { .setAssetId("assetId-704776149") .setAdTracking(AdTracking.forNumber(0)) .setGamSettings(VodSession.GamSettings.newBuilder().build()) + .setVodConfig(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString()) .build(); mockVideoStitcherService.addResponse(expectedResponse); @@ -561,6 +563,7 @@ public void createVodSessionTest2() throws Exception { .setAssetId("assetId-704776149") .setAdTracking(AdTracking.forNumber(0)) .setGamSettings(VodSession.GamSettings.newBuilder().build()) + .setVodConfig(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString()) .build(); mockVideoStitcherService.addResponse(expectedResponse); @@ -611,6 +614,7 @@ public void getVodSessionTest() throws Exception { .setAssetId("assetId-704776149") .setAdTracking(AdTracking.forNumber(0)) .setGamSettings(VodSession.GamSettings.newBuilder().build()) + .setVodConfig(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString()) .build(); mockVideoStitcherService.addResponse(expectedResponse); @@ -658,6 +662,7 @@ public void getVodSessionTest2() throws Exception { .setAssetId("assetId-704776149") .setAdTracking(AdTracking.forNumber(0)) .setGamSettings(VodSession.GamSettings.newBuilder().build()) + .setVodConfig(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString()) .build(); mockVideoStitcherService.addResponse(expectedResponse); @@ -1639,6 +1644,7 @@ public void createLiveSessionTest() throws Exception { .setManifestOptions(ManifestOptions.newBuilder().build()) .setGamSettings(LiveSession.GamSettings.newBuilder().build()) .setLiveConfig(LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]").toString()) + .setAdTracking(AdTracking.forNumber(0)) .build(); mockVideoStitcherService.addResponse(expectedResponse); @@ -1685,6 +1691,7 @@ public void createLiveSessionTest2() throws Exception { .setManifestOptions(ManifestOptions.newBuilder().build()) .setGamSettings(LiveSession.GamSettings.newBuilder().build()) .setLiveConfig(LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]").toString()) + .setAdTracking(AdTracking.forNumber(0)) .build(); mockVideoStitcherService.addResponse(expectedResponse); @@ -1731,6 +1738,7 @@ public void getLiveSessionTest() throws Exception { .setManifestOptions(ManifestOptions.newBuilder().build()) .setGamSettings(LiveSession.GamSettings.newBuilder().build()) .setLiveConfig(LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]").toString()) + .setAdTracking(AdTracking.forNumber(0)) .build(); mockVideoStitcherService.addResponse(expectedResponse); @@ -1774,6 +1782,7 @@ public void getLiveSessionTest2() throws Exception { .setManifestOptions(ManifestOptions.newBuilder().build()) .setGamSettings(LiveSession.GamSettings.newBuilder().build()) .setLiveConfig(LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]").toString()) + .setAdTracking(AdTracking.forNumber(0)) .build(); mockVideoStitcherService.addResponse(expectedResponse); @@ -1818,6 +1827,7 @@ public void createLiveConfigTest() throws Exception { .setAdTracking(AdTracking.forNumber(0)) .setDefaultSlate(SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]").toString()) .setPrefetchConfig(PrefetchConfig.newBuilder().build()) + .setSourceFetchOptions(FetchOptions.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1877,6 +1887,7 @@ public void createLiveConfigTest2() throws Exception { .setAdTracking(AdTracking.forNumber(0)) .setDefaultSlate(SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]").toString()) .setPrefetchConfig(PrefetchConfig.newBuilder().build()) + .setSourceFetchOptions(FetchOptions.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2024,6 +2035,7 @@ public void getLiveConfigTest() throws Exception { .setAdTracking(AdTracking.forNumber(0)) .setDefaultSlate(SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]").toString()) .setPrefetchConfig(PrefetchConfig.newBuilder().build()) + .setSourceFetchOptions(FetchOptions.newBuilder().build()) .build(); mockVideoStitcherService.addResponse(expectedResponse); @@ -2068,6 +2080,7 @@ public void getLiveConfigTest2() throws Exception { .setAdTracking(AdTracking.forNumber(0)) .setDefaultSlate(SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]").toString()) .setPrefetchConfig(PrefetchConfig.newBuilder().build()) + .setSourceFetchOptions(FetchOptions.newBuilder().build()) .build(); mockVideoStitcherService.addResponse(expectedResponse); @@ -2184,4 +2197,481 @@ public void deleteLiveConfigExceptionTest2() throws Exception { Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } + + @Test + public void updateLiveConfigTest() throws Exception { + LiveConfig expectedResponse = + LiveConfig.newBuilder() + .setName(LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]").toString()) + .setSourceUri("sourceUri-1698419887") + .setAdTagUri("adTagUri-1692450443") + .setGamLiveConfig(GamLiveConfig.newBuilder().build()) + .setAdTracking(AdTracking.forNumber(0)) + .setDefaultSlate(SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]").toString()) + .setPrefetchConfig(PrefetchConfig.newBuilder().build()) + .setSourceFetchOptions(FetchOptions.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateLiveConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVideoStitcherService.addResponse(resultOperation); + + LiveConfig liveConfig = LiveConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + LiveConfig actualResponse = client.updateLiveConfigAsync(liveConfig, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVideoStitcherService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateLiveConfigRequest actualRequest = ((UpdateLiveConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(liveConfig, actualRequest.getLiveConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateLiveConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVideoStitcherService.addException(exception); + + try { + LiveConfig liveConfig = LiveConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateLiveConfigAsync(liveConfig, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createVodConfigTest() throws Exception { + VodConfig expectedResponse = + VodConfig.newBuilder() + .setName(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString()) + .setSourceUri("sourceUri-1698419887") + .setAdTagUri("adTagUri-1692450443") + .setGamVodConfig(GamVodConfig.newBuilder().build()) + .setSourceFetchOptions(FetchOptions.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVodConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVideoStitcherService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VodConfig vodConfig = VodConfig.newBuilder().build(); + String vodConfigId = "vodConfigId1497626088"; + + VodConfig actualResponse = client.createVodConfigAsync(parent, vodConfig, vodConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVideoStitcherService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVodConfigRequest actualRequest = ((CreateVodConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(vodConfig, actualRequest.getVodConfig()); + Assert.assertEquals(vodConfigId, actualRequest.getVodConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVodConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVideoStitcherService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VodConfig vodConfig = VodConfig.newBuilder().build(); + String vodConfigId = "vodConfigId1497626088"; + client.createVodConfigAsync(parent, vodConfig, vodConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createVodConfigTest2() throws Exception { + VodConfig expectedResponse = + VodConfig.newBuilder() + .setName(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString()) + .setSourceUri("sourceUri-1698419887") + .setAdTagUri("adTagUri-1692450443") + .setGamVodConfig(GamVodConfig.newBuilder().build()) + .setSourceFetchOptions(FetchOptions.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVodConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVideoStitcherService.addResponse(resultOperation); + + String parent = "parent-995424086"; + VodConfig vodConfig = VodConfig.newBuilder().build(); + String vodConfigId = "vodConfigId1497626088"; + + VodConfig actualResponse = client.createVodConfigAsync(parent, vodConfig, vodConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVideoStitcherService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVodConfigRequest actualRequest = ((CreateVodConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(vodConfig, actualRequest.getVodConfig()); + Assert.assertEquals(vodConfigId, actualRequest.getVodConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVodConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVideoStitcherService.addException(exception); + + try { + String parent = "parent-995424086"; + VodConfig vodConfig = VodConfig.newBuilder().build(); + String vodConfigId = "vodConfigId1497626088"; + client.createVodConfigAsync(parent, vodConfig, vodConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listVodConfigsTest() throws Exception { + VodConfig responsesElement = VodConfig.newBuilder().build(); + ListVodConfigsResponse expectedResponse = + ListVodConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVodConfigs(Arrays.asList(responsesElement)) + .build(); + mockVideoStitcherService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListVodConfigsPagedResponse pagedListResponse = client.listVodConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVodConfigsList().get(0), resources.get(0)); + + List actualRequests = mockVideoStitcherService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListVodConfigsRequest actualRequest = ((ListVodConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listVodConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVideoStitcherService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listVodConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listVodConfigsTest2() throws Exception { + VodConfig responsesElement = VodConfig.newBuilder().build(); + ListVodConfigsResponse expectedResponse = + ListVodConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVodConfigs(Arrays.asList(responsesElement)) + .build(); + mockVideoStitcherService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListVodConfigsPagedResponse pagedListResponse = client.listVodConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVodConfigsList().get(0), resources.get(0)); + + List actualRequests = mockVideoStitcherService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListVodConfigsRequest actualRequest = ((ListVodConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listVodConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVideoStitcherService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listVodConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVodConfigTest() throws Exception { + VodConfig expectedResponse = + VodConfig.newBuilder() + .setName(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString()) + .setSourceUri("sourceUri-1698419887") + .setAdTagUri("adTagUri-1692450443") + .setGamVodConfig(GamVodConfig.newBuilder().build()) + .setSourceFetchOptions(FetchOptions.newBuilder().build()) + .build(); + mockVideoStitcherService.addResponse(expectedResponse); + + VodConfigName name = VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]"); + + VodConfig actualResponse = client.getVodConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVideoStitcherService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetVodConfigRequest actualRequest = ((GetVodConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getVodConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVideoStitcherService.addException(exception); + + try { + VodConfigName name = VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]"); + client.getVodConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVodConfigTest2() throws Exception { + VodConfig expectedResponse = + VodConfig.newBuilder() + .setName(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString()) + .setSourceUri("sourceUri-1698419887") + .setAdTagUri("adTagUri-1692450443") + .setGamVodConfig(GamVodConfig.newBuilder().build()) + .setSourceFetchOptions(FetchOptions.newBuilder().build()) + .build(); + mockVideoStitcherService.addResponse(expectedResponse); + + String name = "name3373707"; + + VodConfig actualResponse = client.getVodConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVideoStitcherService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetVodConfigRequest actualRequest = ((GetVodConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getVodConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVideoStitcherService.addException(exception); + + try { + String name = "name3373707"; + client.getVodConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteVodConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteVodConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVideoStitcherService.addResponse(resultOperation); + + VodConfigName name = VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]"); + + client.deleteVodConfigAsync(name).get(); + + List actualRequests = mockVideoStitcherService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteVodConfigRequest actualRequest = ((DeleteVodConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteVodConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVideoStitcherService.addException(exception); + + try { + VodConfigName name = VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]"); + client.deleteVodConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteVodConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteVodConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVideoStitcherService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteVodConfigAsync(name).get(); + + List actualRequests = mockVideoStitcherService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteVodConfigRequest actualRequest = ((DeleteVodConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteVodConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVideoStitcherService.addException(exception); + + try { + String name = "name3373707"; + client.deleteVodConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateVodConfigTest() throws Exception { + VodConfig expectedResponse = + VodConfig.newBuilder() + .setName(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString()) + .setSourceUri("sourceUri-1698419887") + .setAdTagUri("adTagUri-1692450443") + .setGamVodConfig(GamVodConfig.newBuilder().build()) + .setSourceFetchOptions(FetchOptions.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateVodConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVideoStitcherService.addResponse(resultOperation); + + VodConfig vodConfig = VodConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + VodConfig actualResponse = client.updateVodConfigAsync(vodConfig, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVideoStitcherService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateVodConfigRequest actualRequest = ((UpdateVodConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(vodConfig, actualRequest.getVodConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateVodConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVideoStitcherService.addException(exception); + + try { + VodConfig vodConfig = VodConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateVodConfigAsync(vodConfig, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } } diff --git a/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceGrpc.java b/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceGrpc.java index a34f8473ad00..730b1dac6706 100644 --- a/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceGrpc.java +++ b/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceGrpc.java @@ -1159,6 +1159,287 @@ private VideoStitcherServiceGrpc() {} return getDeleteLiveConfigMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest, + com.google.longrunning.Operation> + getUpdateLiveConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateLiveConfig", + requestType = com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest, + com.google.longrunning.Operation> + getUpdateLiveConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest, + com.google.longrunning.Operation> + getUpdateLiveConfigMethod; + if ((getUpdateLiveConfigMethod = VideoStitcherServiceGrpc.getUpdateLiveConfigMethod) == null) { + synchronized (VideoStitcherServiceGrpc.class) { + if ((getUpdateLiveConfigMethod = VideoStitcherServiceGrpc.getUpdateLiveConfigMethod) + == null) { + VideoStitcherServiceGrpc.getUpdateLiveConfigMethod = + getUpdateLiveConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateLiveConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VideoStitcherServiceMethodDescriptorSupplier("UpdateLiveConfig")) + .build(); + } + } + } + return getUpdateLiveConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.video.stitcher.v1.CreateVodConfigRequest, + com.google.longrunning.Operation> + getCreateVodConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateVodConfig", + requestType = com.google.cloud.video.stitcher.v1.CreateVodConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.video.stitcher.v1.CreateVodConfigRequest, + com.google.longrunning.Operation> + getCreateVodConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.video.stitcher.v1.CreateVodConfigRequest, + com.google.longrunning.Operation> + getCreateVodConfigMethod; + if ((getCreateVodConfigMethod = VideoStitcherServiceGrpc.getCreateVodConfigMethod) == null) { + synchronized (VideoStitcherServiceGrpc.class) { + if ((getCreateVodConfigMethod = VideoStitcherServiceGrpc.getCreateVodConfigMethod) + == null) { + VideoStitcherServiceGrpc.getCreateVodConfigMethod = + getCreateVodConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateVodConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.video.stitcher.v1.CreateVodConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VideoStitcherServiceMethodDescriptorSupplier("CreateVodConfig")) + .build(); + } + } + } + return getCreateVodConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.video.stitcher.v1.ListVodConfigsRequest, + com.google.cloud.video.stitcher.v1.ListVodConfigsResponse> + getListVodConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVodConfigs", + requestType = com.google.cloud.video.stitcher.v1.ListVodConfigsRequest.class, + responseType = com.google.cloud.video.stitcher.v1.ListVodConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.video.stitcher.v1.ListVodConfigsRequest, + com.google.cloud.video.stitcher.v1.ListVodConfigsResponse> + getListVodConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.video.stitcher.v1.ListVodConfigsRequest, + com.google.cloud.video.stitcher.v1.ListVodConfigsResponse> + getListVodConfigsMethod; + if ((getListVodConfigsMethod = VideoStitcherServiceGrpc.getListVodConfigsMethod) == null) { + synchronized (VideoStitcherServiceGrpc.class) { + if ((getListVodConfigsMethod = VideoStitcherServiceGrpc.getListVodConfigsMethod) == null) { + VideoStitcherServiceGrpc.getListVodConfigsMethod = + getListVodConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVodConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.video.stitcher.v1.ListVodConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.video.stitcher.v1.ListVodConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VideoStitcherServiceMethodDescriptorSupplier("ListVodConfigs")) + .build(); + } + } + } + return getListVodConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.video.stitcher.v1.GetVodConfigRequest, + com.google.cloud.video.stitcher.v1.VodConfig> + getGetVodConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetVodConfig", + requestType = com.google.cloud.video.stitcher.v1.GetVodConfigRequest.class, + responseType = com.google.cloud.video.stitcher.v1.VodConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.video.stitcher.v1.GetVodConfigRequest, + com.google.cloud.video.stitcher.v1.VodConfig> + getGetVodConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.video.stitcher.v1.GetVodConfigRequest, + com.google.cloud.video.stitcher.v1.VodConfig> + getGetVodConfigMethod; + if ((getGetVodConfigMethod = VideoStitcherServiceGrpc.getGetVodConfigMethod) == null) { + synchronized (VideoStitcherServiceGrpc.class) { + if ((getGetVodConfigMethod = VideoStitcherServiceGrpc.getGetVodConfigMethod) == null) { + VideoStitcherServiceGrpc.getGetVodConfigMethod = + getGetVodConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVodConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.video.stitcher.v1.GetVodConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.video.stitcher.v1.VodConfig.getDefaultInstance())) + .setSchemaDescriptor( + new VideoStitcherServiceMethodDescriptorSupplier("GetVodConfig")) + .build(); + } + } + } + return getGetVodConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest, + com.google.longrunning.Operation> + getDeleteVodConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteVodConfig", + requestType = com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest, + com.google.longrunning.Operation> + getDeleteVodConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest, + com.google.longrunning.Operation> + getDeleteVodConfigMethod; + if ((getDeleteVodConfigMethod = VideoStitcherServiceGrpc.getDeleteVodConfigMethod) == null) { + synchronized (VideoStitcherServiceGrpc.class) { + if ((getDeleteVodConfigMethod = VideoStitcherServiceGrpc.getDeleteVodConfigMethod) + == null) { + VideoStitcherServiceGrpc.getDeleteVodConfigMethod = + getDeleteVodConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteVodConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VideoStitcherServiceMethodDescriptorSupplier("DeleteVodConfig")) + .build(); + } + } + } + return getDeleteVodConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest, + com.google.longrunning.Operation> + getUpdateVodConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateVodConfig", + requestType = com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest, + com.google.longrunning.Operation> + getUpdateVodConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest, + com.google.longrunning.Operation> + getUpdateVodConfigMethod; + if ((getUpdateVodConfigMethod = VideoStitcherServiceGrpc.getUpdateVodConfigMethod) == null) { + synchronized (VideoStitcherServiceGrpc.class) { + if ((getUpdateVodConfigMethod = VideoStitcherServiceGrpc.getUpdateVodConfigMethod) + == null) { + VideoStitcherServiceGrpc.getUpdateVodConfigMethod = + getUpdateVodConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateVodConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VideoStitcherServiceMethodDescriptorSupplier("UpdateVodConfig")) + .build(); + } + } + } + return getUpdateVodConfigMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static VideoStitcherServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -1566,6 +1847,97 @@ default void deleteLiveConfig( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteLiveConfigMethod(), responseObserver); } + + /** + * + * + *
+     * Updates the specified LiveConfig. Only update fields specified
+     * in the call method body.
+     * 
+ */ + default void updateLiveConfig( + com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateLiveConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Registers the VOD config with the provided unique ID in
+     * the specified region.
+     * 
+ */ + default void createVodConfig( + com.google.cloud.video.stitcher.v1.CreateVodConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateVodConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all VOD configs managed by the Video Stitcher API that
+     * belong to the specified project and region.
+     * 
+ */ + default void listVodConfigs( + com.google.cloud.video.stitcher.v1.ListVodConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListVodConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the specified VOD config managed by the Video
+     * Stitcher API service.
+     * 
+ */ + default void getVodConfig( + com.google.cloud.video.stitcher.v1.GetVodConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetVodConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified VOD config.
+     * 
+ */ + default void deleteVodConfig( + com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteVodConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the specified VOD config. Only update fields specified
+     * in the call method body.
+     * 
+ */ + default void updateVodConfig( + com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateVodConfigMethod(), responseObserver); + } } /** @@ -2009,6 +2381,109 @@ public void deleteLiveConfig( request, responseObserver); } + + /** + * + * + *
+     * Updates the specified LiveConfig. Only update fields specified
+     * in the call method body.
+     * 
+ */ + public void updateLiveConfig( + com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateLiveConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Registers the VOD config with the provided unique ID in
+     * the specified region.
+     * 
+ */ + public void createVodConfig( + com.google.cloud.video.stitcher.v1.CreateVodConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateVodConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all VOD configs managed by the Video Stitcher API that
+     * belong to the specified project and region.
+     * 
+ */ + public void listVodConfigs( + com.google.cloud.video.stitcher.v1.ListVodConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVodConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the specified VOD config managed by the Video
+     * Stitcher API service.
+     * 
+ */ + public void getVodConfig( + com.google.cloud.video.stitcher.v1.GetVodConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetVodConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified VOD config.
+     * 
+ */ + public void deleteVodConfig( + com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteVodConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the specified VOD config. Only update fields specified
+     * in the call method body.
+     * 
+ */ + public void updateVodConfig( + com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateVodConfigMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -2353,6 +2828,89 @@ public com.google.longrunning.Operation deleteLiveConfig( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteLiveConfigMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Updates the specified LiveConfig. Only update fields specified
+     * in the call method body.
+     * 
+ */ + public com.google.longrunning.Operation updateLiveConfig( + com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateLiveConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Registers the VOD config with the provided unique ID in
+     * the specified region.
+     * 
+ */ + public com.google.longrunning.Operation createVodConfig( + com.google.cloud.video.stitcher.v1.CreateVodConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateVodConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all VOD configs managed by the Video Stitcher API that
+     * belong to the specified project and region.
+     * 
+ */ + public com.google.cloud.video.stitcher.v1.ListVodConfigsResponse listVodConfigs( + com.google.cloud.video.stitcher.v1.ListVodConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVodConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the specified VOD config managed by the Video
+     * Stitcher API service.
+     * 
+ */ + public com.google.cloud.video.stitcher.v1.VodConfig getVodConfig( + com.google.cloud.video.stitcher.v1.GetVodConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetVodConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified VOD config.
+     * 
+ */ + public com.google.longrunning.Operation deleteVodConfig( + com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteVodConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the specified VOD config. Only update fields specified
+     * in the call method body.
+     * 
+ */ + public com.google.longrunning.Operation updateVodConfig( + com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateVodConfigMethod(), getCallOptions(), request); + } } /** @@ -2715,6 +3273,91 @@ protected VideoStitcherServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteLiveConfigMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Updates the specified LiveConfig. Only update fields specified
+     * in the call method body.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateLiveConfig(com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateLiveConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Registers the VOD config with the provided unique ID in
+     * the specified region.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createVodConfig(com.google.cloud.video.stitcher.v1.CreateVodConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateVodConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all VOD configs managed by the Video Stitcher API that
+     * belong to the specified project and region.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.video.stitcher.v1.ListVodConfigsResponse> + listVodConfigs(com.google.cloud.video.stitcher.v1.ListVodConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVodConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the specified VOD config managed by the Video
+     * Stitcher API service.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.video.stitcher.v1.VodConfig> + getVodConfig(com.google.cloud.video.stitcher.v1.GetVodConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetVodConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified VOD config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteVodConfig(com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteVodConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the specified VOD config. Only update fields specified
+     * in the call method body.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateVodConfig(com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateVodConfigMethod(), getCallOptions()), request); + } } private static final int METHODID_CREATE_CDN_KEY = 0; @@ -2741,6 +3384,12 @@ protected VideoStitcherServiceFutureStub build( private static final int METHODID_LIST_LIVE_CONFIGS = 21; private static final int METHODID_GET_LIVE_CONFIG = 22; private static final int METHODID_DELETE_LIVE_CONFIG = 23; + private static final int METHODID_UPDATE_LIVE_CONFIG = 24; + private static final int METHODID_CREATE_VOD_CONFIG = 25; + private static final int METHODID_LIST_VOD_CONFIGS = 26; + private static final int METHODID_GET_VOD_CONFIG = 27; + private static final int METHODID_DELETE_VOD_CONFIG = 28; + private static final int METHODID_UPDATE_VOD_CONFIG = 29; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2899,6 +3548,39 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.video.stitcher.v1.DeleteLiveConfigRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_LIVE_CONFIG: + serviceImpl.updateLiveConfig( + (com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_VOD_CONFIG: + serviceImpl.createVodConfig( + (com.google.cloud.video.stitcher.v1.CreateVodConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_VOD_CONFIGS: + serviceImpl.listVodConfigs( + (com.google.cloud.video.stitcher.v1.ListVodConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.video.stitcher.v1.ListVodConfigsResponse>) + responseObserver); + break; + case METHODID_GET_VOD_CONFIG: + serviceImpl.getVodConfig( + (com.google.cloud.video.stitcher.v1.GetVodConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_VOD_CONFIG: + serviceImpl.deleteVodConfig( + (com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_VOD_CONFIG: + serviceImpl.updateVodConfig( + (com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -3075,6 +3757,44 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.video.stitcher.v1.DeleteLiveConfigRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_LIVE_CONFIG))) + .addMethod( + getUpdateLiveConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_LIVE_CONFIG))) + .addMethod( + getCreateVodConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.video.stitcher.v1.CreateVodConfigRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_VOD_CONFIG))) + .addMethod( + getListVodConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.video.stitcher.v1.ListVodConfigsRequest, + com.google.cloud.video.stitcher.v1.ListVodConfigsResponse>( + service, METHODID_LIST_VOD_CONFIGS))) + .addMethod( + getGetVodConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.video.stitcher.v1.GetVodConfigRequest, + com.google.cloud.video.stitcher.v1.VodConfig>( + service, METHODID_GET_VOD_CONFIG))) + .addMethod( + getDeleteVodConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_VOD_CONFIG))) + .addMethod( + getUpdateVodConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_VOD_CONFIG))) .build(); } @@ -3150,6 +3870,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListLiveConfigsMethod()) .addMethod(getGetLiveConfigMethod()) .addMethod(getDeleteLiveConfigMethod()) + .addMethod(getUpdateLiveConfigMethod()) + .addMethod(getCreateVodConfigMethod()) + .addMethod(getListVodConfigsMethod()) + .addMethod(getGetVodConfigMethod()) + .addMethod(getDeleteVodConfigMethod()) + .addMethod(getUpdateVodConfigMethod()) .build(); } } diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKeysProto.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKeysProto.java index a4c3ccc2ec6b..0b4b5a81f80d 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKeysProto.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CdnKeysProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_TokenConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_TokenConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -68,11 +72,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cdnKeys/{cdn_key}B\020\n\016cdn_key_config\":\n\014G" + "oogleCdnKey\022\030\n\013private_key\030\001 \001(\014B\003\340A\004\022\020\n" + "\010key_name\030\002 \001(\t\"&\n\014AkamaiCdnKey\022\026\n\ttoken" - + "_key\030\001 \001(\014B\003\340A\004\"9\n\013MediaCdnKey\022\030\n\013privat" - + "e_key\030\001 \001(\014B\003\340A\004\022\020\n\010key_name\030\002 \001(\tBt\n\"co" - + "m.google.cloud.video.stitcher.v1B\014CdnKey" - + "sProtoP\001Z>cloud.google.com/go/video/stit" - + "cher/apiv1/stitcherpb;stitcherpbb\006proto3" + + "_key\030\001 \001(\014B\003\340A\004\"\272\001\n\013MediaCdnKey\022\030\n\013priva" + + "te_key\030\001 \001(\014B\003\340A\004\022\020\n\010key_name\030\002 \001(\t\022R\n\014t" + + "oken_config\030\003 \001(\01327.google.cloud.video.s" + + "titcher.v1.MediaCdnKey.TokenConfigB\003\340A\001\032" + + "+\n\013TokenConfig\022\034\n\017query_parameter\030\001 \001(\tB" + + "\003\340A\001Bt\n\"com.google.cloud.video.stitcher." + + "v1B\014CdnKeysProtoP\001Z>cloud.google.com/go/" + + "video/stitcher/apiv1/stitcherpb;stitcher" + + "pbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -111,7 +119,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_descriptor, new java.lang.String[] { - "PrivateKey", "KeyName", + "PrivateKey", "KeyName", "TokenConfig", + }); + internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_TokenConfig_descriptor = + internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_TokenConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_TokenConfig_descriptor, + new java.lang.String[] { + "QueryParameter", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CreateVodConfigRequest.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CreateVodConfigRequest.java new file mode 100644 index 000000000000..30a98223f768 --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CreateVodConfigRequest.java @@ -0,0 +1,1399 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/video_stitcher_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +/** + * + * + *
+ * Request message for VideoStitcherService.createVodConfig
+ * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.CreateVodConfigRequest} + */ +public final class CreateVodConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.stitcher.v1.CreateVodConfigRequest) + CreateVodConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateVodConfigRequest.newBuilder() to construct. + private CreateVodConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateVodConfigRequest() { + parent_ = ""; + vodConfigId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateVodConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_CreateVodConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_CreateVodConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.CreateVodConfigRequest.class, + com.google.cloud.video.stitcher.v1.CreateVodConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The project in which the VOD config should be created, in
+   * the form of `projects/{project_number}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The project in which the VOD config should be created, in
+   * the form of `projects/{project_number}/locations/{location}`.
+   * 
+ * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOD_CONFIG_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object vodConfigId_ = ""; + /** + * + * + *
+   * Required. The unique identifier ID to use for the VOD config.
+   * 
+ * + * string vod_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vodConfigId. + */ + @java.lang.Override + public java.lang.String getVodConfigId() { + java.lang.Object ref = vodConfigId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vodConfigId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The unique identifier ID to use for the VOD config.
+   * 
+ * + * string vod_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vodConfigId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVodConfigIdBytes() { + java.lang.Object ref = vodConfigId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vodConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOD_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.video.stitcher.v1.VodConfig vodConfig_; + /** + * + * + *
+   * Required. The VOD config resource to create.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vodConfig field is set. + */ + @java.lang.Override + public boolean hasVodConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The VOD config resource to create.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vodConfig. + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.VodConfig getVodConfig() { + return vodConfig_ == null + ? com.google.cloud.video.stitcher.v1.VodConfig.getDefaultInstance() + : vodConfig_; + } + /** + * + * + *
+   * Required. The VOD config resource to create.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.VodConfigOrBuilder getVodConfigOrBuilder() { + return vodConfig_ == null + ? com.google.cloud.video.stitcher.v1.VodConfig.getDefaultInstance() + : vodConfig_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported `(00000000-0000-0000-0000-000000000000)`.
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported `(00000000-0000-0000-0000-000000000000)`.
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vodConfigId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vodConfigId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getVodConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vodConfigId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vodConfigId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getVodConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.stitcher.v1.CreateVodConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.video.stitcher.v1.CreateVodConfigRequest other = + (com.google.cloud.video.stitcher.v1.CreateVodConfigRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getVodConfigId().equals(other.getVodConfigId())) return false; + if (hasVodConfig() != other.hasVodConfig()) return false; + if (hasVodConfig()) { + if (!getVodConfig().equals(other.getVodConfig())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + VOD_CONFIG_ID_FIELD_NUMBER; + hash = (53 * hash) + getVodConfigId().hashCode(); + if (hasVodConfig()) { + hash = (37 * hash) + VOD_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVodConfig().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.stitcher.v1.CreateVodConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.CreateVodConfigRequest 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.video.stitcher.v1.CreateVodConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.CreateVodConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.CreateVodConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.CreateVodConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.CreateVodConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.CreateVodConfigRequest 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.video.stitcher.v1.CreateVodConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.CreateVodConfigRequest 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.video.stitcher.v1.CreateVodConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.CreateVodConfigRequest 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.video.stitcher.v1.CreateVodConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for VideoStitcherService.createVodConfig
+   * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.CreateVodConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.stitcher.v1.CreateVodConfigRequest) + com.google.cloud.video.stitcher.v1.CreateVodConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_CreateVodConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_CreateVodConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.CreateVodConfigRequest.class, + com.google.cloud.video.stitcher.v1.CreateVodConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.video.stitcher.v1.CreateVodConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getVodConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + vodConfigId_ = ""; + vodConfig_ = null; + if (vodConfigBuilder_ != null) { + vodConfigBuilder_.dispose(); + vodConfigBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_CreateVodConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.CreateVodConfigRequest getDefaultInstanceForType() { + return com.google.cloud.video.stitcher.v1.CreateVodConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.CreateVodConfigRequest build() { + com.google.cloud.video.stitcher.v1.CreateVodConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.CreateVodConfigRequest buildPartial() { + com.google.cloud.video.stitcher.v1.CreateVodConfigRequest result = + new com.google.cloud.video.stitcher.v1.CreateVodConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.stitcher.v1.CreateVodConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.vodConfigId_ = vodConfigId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vodConfig_ = vodConfigBuilder_ == null ? vodConfig_ : vodConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.stitcher.v1.CreateVodConfigRequest) { + return mergeFrom((com.google.cloud.video.stitcher.v1.CreateVodConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.stitcher.v1.CreateVodConfigRequest other) { + if (other == com.google.cloud.video.stitcher.v1.CreateVodConfigRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVodConfigId().isEmpty()) { + vodConfigId_ = other.vodConfigId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasVodConfig()) { + mergeVodConfig(other.getVodConfig()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + vodConfigId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getVodConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The project in which the VOD config should be created, in
+     * the form of `projects/{project_number}/locations/{location}`.
+     * 
+ * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The project in which the VOD config should be created, in
+     * the form of `projects/{project_number}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The project in which the VOD config should be created, in
+     * the form of `projects/{project_number}/locations/{location}`.
+     * 
+ * + * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The project in which the VOD config should be created, in
+     * the form of `projects/{project_number}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The project in which the VOD config should be created, in
+     * the form of `projects/{project_number}/locations/{location}`.
+     * 
+ * + * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object vodConfigId_ = ""; + /** + * + * + *
+     * Required. The unique identifier ID to use for the VOD config.
+     * 
+ * + * string vod_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vodConfigId. + */ + public java.lang.String getVodConfigId() { + java.lang.Object ref = vodConfigId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vodConfigId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The unique identifier ID to use for the VOD config.
+     * 
+ * + * string vod_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vodConfigId. + */ + public com.google.protobuf.ByteString getVodConfigIdBytes() { + java.lang.Object ref = vodConfigId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vodConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The unique identifier ID to use for the VOD config.
+     * 
+ * + * string vod_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The vodConfigId to set. + * @return This builder for chaining. + */ + public Builder setVodConfigId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vodConfigId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The unique identifier ID to use for the VOD config.
+     * 
+ * + * string vod_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVodConfigId() { + vodConfigId_ = getDefaultInstance().getVodConfigId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The unique identifier ID to use for the VOD config.
+     * 
+ * + * string vod_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for vodConfigId to set. + * @return This builder for chaining. + */ + public Builder setVodConfigIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vodConfigId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.video.stitcher.v1.VodConfig vodConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.VodConfig, + com.google.cloud.video.stitcher.v1.VodConfig.Builder, + com.google.cloud.video.stitcher.v1.VodConfigOrBuilder> + vodConfigBuilder_; + /** + * + * + *
+     * Required. The VOD config resource to create.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vodConfig field is set. + */ + public boolean hasVodConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. The VOD config resource to create.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vodConfig. + */ + public com.google.cloud.video.stitcher.v1.VodConfig getVodConfig() { + if (vodConfigBuilder_ == null) { + return vodConfig_ == null + ? com.google.cloud.video.stitcher.v1.VodConfig.getDefaultInstance() + : vodConfig_; + } else { + return vodConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The VOD config resource to create.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVodConfig(com.google.cloud.video.stitcher.v1.VodConfig value) { + if (vodConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vodConfig_ = value; + } else { + vodConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The VOD config resource to create.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVodConfig( + com.google.cloud.video.stitcher.v1.VodConfig.Builder builderForValue) { + if (vodConfigBuilder_ == null) { + vodConfig_ = builderForValue.build(); + } else { + vodConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The VOD config resource to create.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeVodConfig(com.google.cloud.video.stitcher.v1.VodConfig value) { + if (vodConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && vodConfig_ != null + && vodConfig_ != com.google.cloud.video.stitcher.v1.VodConfig.getDefaultInstance()) { + getVodConfigBuilder().mergeFrom(value); + } else { + vodConfig_ = value; + } + } else { + vodConfigBuilder_.mergeFrom(value); + } + if (vodConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The VOD config resource to create.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearVodConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + vodConfig_ = null; + if (vodConfigBuilder_ != null) { + vodConfigBuilder_.dispose(); + vodConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The VOD config resource to create.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.video.stitcher.v1.VodConfig.Builder getVodConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getVodConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The VOD config resource to create.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.video.stitcher.v1.VodConfigOrBuilder getVodConfigOrBuilder() { + if (vodConfigBuilder_ != null) { + return vodConfigBuilder_.getMessageOrBuilder(); + } else { + return vodConfig_ == null + ? com.google.cloud.video.stitcher.v1.VodConfig.getDefaultInstance() + : vodConfig_; + } + } + /** + * + * + *
+     * Required. The VOD config resource to create.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.VodConfig, + com.google.cloud.video.stitcher.v1.VodConfig.Builder, + com.google.cloud.video.stitcher.v1.VodConfigOrBuilder> + getVodConfigFieldBuilder() { + if (vodConfigBuilder_ == null) { + vodConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.VodConfig, + com.google.cloud.video.stitcher.v1.VodConfig.Builder, + com.google.cloud.video.stitcher.v1.VodConfigOrBuilder>( + getVodConfig(), getParentForChildren(), isClean()); + vodConfig_ = null; + } + return vodConfigBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported `(00000000-0000-0000-0000-000000000000)`.
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported `(00000000-0000-0000-0000-000000000000)`.
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported `(00000000-0000-0000-0000-000000000000)`.
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported `(00000000-0000-0000-0000-000000000000)`.
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported `(00000000-0000-0000-0000-000000000000)`.
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.stitcher.v1.CreateVodConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.stitcher.v1.CreateVodConfigRequest) + private static final com.google.cloud.video.stitcher.v1.CreateVodConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.stitcher.v1.CreateVodConfigRequest(); + } + + public static com.google.cloud.video.stitcher.v1.CreateVodConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateVodConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.CreateVodConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CreateVodConfigRequestOrBuilder.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CreateVodConfigRequestOrBuilder.java new file mode 100644 index 000000000000..34207d867ba0 --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/CreateVodConfigRequestOrBuilder.java @@ -0,0 +1,172 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/video_stitcher_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +public interface CreateVodConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.stitcher.v1.CreateVodConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project in which the VOD config should be created, in
+   * the form of `projects/{project_number}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The project in which the VOD config should be created, in
+   * the form of `projects/{project_number}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The unique identifier ID to use for the VOD config.
+   * 
+ * + * string vod_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The vodConfigId. + */ + java.lang.String getVodConfigId(); + /** + * + * + *
+   * Required. The unique identifier ID to use for the VOD config.
+   * 
+ * + * string vod_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for vodConfigId. + */ + com.google.protobuf.ByteString getVodConfigIdBytes(); + + /** + * + * + *
+   * Required. The VOD config resource to create.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vodConfig field is set. + */ + boolean hasVodConfig(); + /** + * + * + *
+   * Required. The VOD config resource to create.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vodConfig. + */ + com.google.cloud.video.stitcher.v1.VodConfig getVodConfig(); + /** + * + * + *
+   * Required. The VOD config resource to create.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.video.stitcher.v1.VodConfigOrBuilder getVodConfigOrBuilder(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported `(00000000-0000-0000-0000-000000000000)`.
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported `(00000000-0000-0000-0000-000000000000)`.
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/DeleteVodConfigRequest.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/DeleteVodConfigRequest.java new file mode 100644 index 000000000000..7226696feeae --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/DeleteVodConfigRequest.java @@ -0,0 +1,647 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/video_stitcher_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +/** + * + * + *
+ * Request message for VideoStitcherService.deleteVodConfig.
+ * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.DeleteVodConfigRequest} + */ +public final class DeleteVodConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.stitcher.v1.DeleteVodConfigRequest) + DeleteVodConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteVodConfigRequest.newBuilder() to construct. + private DeleteVodConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteVodConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteVodConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_DeleteVodConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_DeleteVodConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest.class, + com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the VOD config to be deleted, in the form of
+   * `projects/{project_number}/locations/{location}/vodConfigs/{id}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the VOD config to be deleted, in the form of
+   * `projects/{project_number}/locations/{location}/vodConfigs/{id}`.
+   * 
+ * + * + * 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() { + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest other = + (com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest 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.video.stitcher.v1.DeleteVodConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest 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.video.stitcher.v1.DeleteVodConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest 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.video.stitcher.v1.DeleteVodConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for VideoStitcherService.deleteVodConfig.
+   * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.DeleteVodConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.stitcher.v1.DeleteVodConfigRequest) + com.google.cloud.video.stitcher.v1.DeleteVodConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_DeleteVodConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_DeleteVodConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest.class, + com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_DeleteVodConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest getDefaultInstanceForType() { + return com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest build() { + com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest buildPartial() { + com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest result = + new com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest) { + return mergeFrom((com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest other) { + if (other == com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the VOD config to be deleted, in the form of
+     * `projects/{project_number}/locations/{location}/vodConfigs/{id}`.
+     * 
+ * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the VOD config to be deleted, in the form of
+     * `projects/{project_number}/locations/{location}/vodConfigs/{id}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the VOD config to be deleted, in the form of
+     * `projects/{project_number}/locations/{location}/vodConfigs/{id}`.
+     * 
+ * + * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the VOD config to be deleted, in the form of
+     * `projects/{project_number}/locations/{location}/vodConfigs/{id}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the VOD config to be deleted, in the form of
+     * `projects/{project_number}/locations/{location}/vodConfigs/{id}`.
+     * 
+ * + * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.stitcher.v1.DeleteVodConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.stitcher.v1.DeleteVodConfigRequest) + private static final com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest(); + } + + public static com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteVodConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/DeleteVodConfigRequestOrBuilder.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/DeleteVodConfigRequestOrBuilder.java new file mode 100644 index 000000000000..bb0f1e768d96 --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/DeleteVodConfigRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/video_stitcher_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +public interface DeleteVodConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.stitcher.v1.DeleteVodConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the VOD config to be deleted, in the form of
+   * `projects/{project_number}/locations/{location}/vodConfigs/{id}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the VOD config to be deleted, in the form of
+   * `projects/{project_number}/locations/{location}/vodConfigs/{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/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/FetchOptions.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/FetchOptions.java new file mode 100644 index 000000000000..3aafa11aa143 --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/FetchOptions.java @@ -0,0 +1,810 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/fetch_options.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +/** + * + * + *
+ * Options on how fetches should be made.
+ * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.FetchOptions} + */ +public final class FetchOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.stitcher.v1.FetchOptions) + FetchOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use FetchOptions.newBuilder() to construct. + private FetchOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FetchOptions() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.FetchOptionsProto + .internal_static_google_cloud_video_stitcher_v1_FetchOptions_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.FetchOptionsProto + .internal_static_google_cloud_video_stitcher_v1_FetchOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.FetchOptions.class, + com.google.cloud.video.stitcher.v1.FetchOptions.Builder.class); + } + + public static final int HEADERS_FIELD_NUMBER = 1; + + private static final class HeadersDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.video.stitcher.v1.FetchOptionsProto + .internal_static_google_cloud_video_stitcher_v1_FetchOptions_HeadersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField headers_; + + private com.google.protobuf.MapField internalGetHeaders() { + if (headers_ == null) { + return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); + } + return headers_; + } + + public int getHeadersCount() { + return internalGetHeaders().getMap().size(); + } + /** + * + * + *
+   * Custom headers to pass into fetch request.
+   * Headers must have a maximum of 3 key value pairs.
+   * Each key value pair must have a maximum of 256 characters per key and 256
+   * characters per value.
+   * 
+ * + * map<string, string> headers = 1; + */ + @java.lang.Override + public boolean containsHeaders(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetHeaders().getMap().containsKey(key); + } + /** Use {@link #getHeadersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getHeaders() { + return getHeadersMap(); + } + /** + * + * + *
+   * Custom headers to pass into fetch request.
+   * Headers must have a maximum of 3 key value pairs.
+   * Each key value pair must have a maximum of 256 characters per key and 256
+   * characters per value.
+   * 
+ * + * map<string, string> headers = 1; + */ + @java.lang.Override + public java.util.Map getHeadersMap() { + return internalGetHeaders().getMap(); + } + /** + * + * + *
+   * Custom headers to pass into fetch request.
+   * Headers must have a maximum of 3 key value pairs.
+   * Each key value pair must have a maximum of 256 characters per key and 256
+   * characters per value.
+   * 
+ * + * map<string, string> headers = 1; + */ + @java.lang.Override + public /* nullable */ java.lang.String getHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Custom headers to pass into fetch request.
+   * Headers must have a maximum of 3 key value pairs.
+   * Each key value pair must have a maximum of 256 characters per key and 256
+   * characters per value.
+   * 
+ * + * map<string, string> headers = 1; + */ + @java.lang.Override + public java.lang.String getHeadersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetHeaders().getMap().entrySet()) { + com.google.protobuf.MapEntry headers__ = + HeadersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, headers__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.stitcher.v1.FetchOptions)) { + return super.equals(obj); + } + com.google.cloud.video.stitcher.v1.FetchOptions other = + (com.google.cloud.video.stitcher.v1.FetchOptions) obj; + + if (!internalGetHeaders().equals(other.internalGetHeaders())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetHeaders().getMap().isEmpty()) { + hash = (37 * hash) + HEADERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetHeaders().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.stitcher.v1.FetchOptions parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.FetchOptions 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.video.stitcher.v1.FetchOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.FetchOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.FetchOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.FetchOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.FetchOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.FetchOptions 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.video.stitcher.v1.FetchOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.FetchOptions 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.video.stitcher.v1.FetchOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.FetchOptions 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.video.stitcher.v1.FetchOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Options on how fetches should be made.
+   * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.FetchOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.stitcher.v1.FetchOptions) + com.google.cloud.video.stitcher.v1.FetchOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.FetchOptionsProto + .internal_static_google_cloud_video_stitcher_v1_FetchOptions_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableHeaders(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.FetchOptionsProto + .internal_static_google_cloud_video_stitcher_v1_FetchOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.FetchOptions.class, + com.google.cloud.video.stitcher.v1.FetchOptions.Builder.class); + } + + // Construct using com.google.cloud.video.stitcher.v1.FetchOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableHeaders().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.stitcher.v1.FetchOptionsProto + .internal_static_google_cloud_video_stitcher_v1_FetchOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.FetchOptions getDefaultInstanceForType() { + return com.google.cloud.video.stitcher.v1.FetchOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.FetchOptions build() { + com.google.cloud.video.stitcher.v1.FetchOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.FetchOptions buildPartial() { + com.google.cloud.video.stitcher.v1.FetchOptions result = + new com.google.cloud.video.stitcher.v1.FetchOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.stitcher.v1.FetchOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.headers_ = internalGetHeaders(); + result.headers_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.stitcher.v1.FetchOptions) { + return mergeFrom((com.google.cloud.video.stitcher.v1.FetchOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.stitcher.v1.FetchOptions other) { + if (other == com.google.cloud.video.stitcher.v1.FetchOptions.getDefaultInstance()) + return this; + internalGetMutableHeaders().mergeFrom(other.internalGetHeaders()); + bitField0_ |= 0x00000001; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.MapEntry headers__ = + input.readMessage( + HeadersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableHeaders() + .getMutableMap() + .put(headers__.getKey(), headers__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.MapField headers_; + + private com.google.protobuf.MapField internalGetHeaders() { + if (headers_ == null) { + return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); + } + return headers_; + } + + private com.google.protobuf.MapField + internalGetMutableHeaders() { + if (headers_ == null) { + headers_ = com.google.protobuf.MapField.newMapField(HeadersDefaultEntryHolder.defaultEntry); + } + if (!headers_.isMutable()) { + headers_ = headers_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return headers_; + } + + public int getHeadersCount() { + return internalGetHeaders().getMap().size(); + } + /** + * + * + *
+     * Custom headers to pass into fetch request.
+     * Headers must have a maximum of 3 key value pairs.
+     * Each key value pair must have a maximum of 256 characters per key and 256
+     * characters per value.
+     * 
+ * + * map<string, string> headers = 1; + */ + @java.lang.Override + public boolean containsHeaders(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetHeaders().getMap().containsKey(key); + } + /** Use {@link #getHeadersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getHeaders() { + return getHeadersMap(); + } + /** + * + * + *
+     * Custom headers to pass into fetch request.
+     * Headers must have a maximum of 3 key value pairs.
+     * Each key value pair must have a maximum of 256 characters per key and 256
+     * characters per value.
+     * 
+ * + * map<string, string> headers = 1; + */ + @java.lang.Override + public java.util.Map getHeadersMap() { + return internalGetHeaders().getMap(); + } + /** + * + * + *
+     * Custom headers to pass into fetch request.
+     * Headers must have a maximum of 3 key value pairs.
+     * Each key value pair must have a maximum of 256 characters per key and 256
+     * characters per value.
+     * 
+ * + * map<string, string> headers = 1; + */ + @java.lang.Override + public /* nullable */ java.lang.String getHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetHeaders().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Custom headers to pass into fetch request.
+     * Headers must have a maximum of 3 key value pairs.
+     * Each key value pair must have a maximum of 256 characters per key and 256
+     * characters per value.
+     * 
+ * + * map<string, string> headers = 1; + */ + @java.lang.Override + public java.lang.String getHeadersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetHeaders().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearHeaders() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableHeaders().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Custom headers to pass into fetch request.
+     * Headers must have a maximum of 3 key value pairs.
+     * Each key value pair must have a maximum of 256 characters per key and 256
+     * characters per value.
+     * 
+ * + * map<string, string> headers = 1; + */ + public Builder removeHeaders(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableHeaders().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableHeaders() { + bitField0_ |= 0x00000001; + return internalGetMutableHeaders().getMutableMap(); + } + /** + * + * + *
+     * Custom headers to pass into fetch request.
+     * Headers must have a maximum of 3 key value pairs.
+     * Each key value pair must have a maximum of 256 characters per key and 256
+     * characters per value.
+     * 
+ * + * map<string, string> headers = 1; + */ + public Builder putHeaders(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableHeaders().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + /** + * + * + *
+     * Custom headers to pass into fetch request.
+     * Headers must have a maximum of 3 key value pairs.
+     * Each key value pair must have a maximum of 256 characters per key and 256
+     * characters per value.
+     * 
+ * + * map<string, string> headers = 1; + */ + public Builder putAllHeaders(java.util.Map values) { + internalGetMutableHeaders().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.stitcher.v1.FetchOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.stitcher.v1.FetchOptions) + private static final com.google.cloud.video.stitcher.v1.FetchOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.stitcher.v1.FetchOptions(); + } + + public static com.google.cloud.video.stitcher.v1.FetchOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.FetchOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/FetchOptionsOrBuilder.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/FetchOptionsOrBuilder.java new file mode 100644 index 000000000000..569b096c9350 --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/FetchOptionsOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/fetch_options.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +public interface FetchOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.stitcher.v1.FetchOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Custom headers to pass into fetch request.
+   * Headers must have a maximum of 3 key value pairs.
+   * Each key value pair must have a maximum of 256 characters per key and 256
+   * characters per value.
+   * 
+ * + * map<string, string> headers = 1; + */ + int getHeadersCount(); + /** + * + * + *
+   * Custom headers to pass into fetch request.
+   * Headers must have a maximum of 3 key value pairs.
+   * Each key value pair must have a maximum of 256 characters per key and 256
+   * characters per value.
+   * 
+ * + * map<string, string> headers = 1; + */ + boolean containsHeaders(java.lang.String key); + /** Use {@link #getHeadersMap()} instead. */ + @java.lang.Deprecated + java.util.Map getHeaders(); + /** + * + * + *
+   * Custom headers to pass into fetch request.
+   * Headers must have a maximum of 3 key value pairs.
+   * Each key value pair must have a maximum of 256 characters per key and 256
+   * characters per value.
+   * 
+ * + * map<string, string> headers = 1; + */ + java.util.Map getHeadersMap(); + /** + * + * + *
+   * Custom headers to pass into fetch request.
+   * Headers must have a maximum of 3 key value pairs.
+   * Each key value pair must have a maximum of 256 characters per key and 256
+   * characters per value.
+   * 
+ * + * map<string, string> headers = 1; + */ + /* nullable */ + java.lang.String getHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Custom headers to pass into fetch request.
+   * Headers must have a maximum of 3 key value pairs.
+   * Each key value pair must have a maximum of 256 characters per key and 256
+   * characters per value.
+   * 
+ * + * map<string, string> headers = 1; + */ + java.lang.String getHeadersOrThrow(java.lang.String key); +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/FetchOptionsProto.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/FetchOptionsProto.java new file mode 100644 index 000000000000..e0df0dca062e --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/FetchOptionsProto.java @@ -0,0 +1,82 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/fetch_options.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +public final class FetchOptionsProto { + private FetchOptionsProto() {} + + 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_video_stitcher_v1_FetchOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_stitcher_v1_FetchOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_stitcher_v1_FetchOptions_HeadersEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_stitcher_v1_FetchOptions_HeadersEntry_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/video/stitcher/v1/fetch_o" + + "ptions.proto\022\036google.cloud.video.stitche" + + "r.v1\"\212\001\n\014FetchOptions\022J\n\007headers\030\001 \003(\01329" + + ".google.cloud.video.stitcher.v1.FetchOpt" + + "ions.HeadersEntry\032.\n\014HeadersEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001By\n\"com.google." + + "cloud.video.stitcher.v1B\021FetchOptionsPro" + + "toP\001Z>cloud.google.com/go/video/stitcher" + + "/apiv1/stitcherpb;stitcherpbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_video_stitcher_v1_FetchOptions_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_video_stitcher_v1_FetchOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_stitcher_v1_FetchOptions_descriptor, + new java.lang.String[] { + "Headers", + }); + internal_static_google_cloud_video_stitcher_v1_FetchOptions_HeadersEntry_descriptor = + internal_static_google_cloud_video_stitcher_v1_FetchOptions_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_video_stitcher_v1_FetchOptions_HeadersEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_stitcher_v1_FetchOptions_HeadersEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/GamVodConfig.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/GamVodConfig.java new file mode 100644 index 000000000000..9c6f57100344 --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/GamVodConfig.java @@ -0,0 +1,625 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/vod_configs.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +/** + * + * + *
+ * Metadata used for GAM ad decisioning.
+ * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.GamVodConfig} + */ +public final class GamVodConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.stitcher.v1.GamVodConfig) + GamVodConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GamVodConfig.newBuilder() to construct. + private GamVodConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GamVodConfig() { + networkCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GamVodConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.VodConfigsProto + .internal_static_google_cloud_video_stitcher_v1_GamVodConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.VodConfigsProto + .internal_static_google_cloud_video_stitcher_v1_GamVodConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.GamVodConfig.class, + com.google.cloud.video.stitcher.v1.GamVodConfig.Builder.class); + } + + public static final int NETWORK_CODE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkCode_ = ""; + /** + * + * + *
+   * Required. Ad Manager network code to associate with the VOD config.
+   * 
+ * + * string network_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The networkCode. + */ + @java.lang.Override + public java.lang.String getNetworkCode() { + java.lang.Object ref = networkCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkCode_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Ad Manager network code to associate with the VOD config.
+   * 
+ * + * string network_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for networkCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkCodeBytes() { + java.lang.Object ref = networkCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, networkCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, networkCode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.stitcher.v1.GamVodConfig)) { + return super.equals(obj); + } + com.google.cloud.video.stitcher.v1.GamVodConfig other = + (com.google.cloud.video.stitcher.v1.GamVodConfig) obj; + + if (!getNetworkCode().equals(other.getNetworkCode())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NETWORK_CODE_FIELD_NUMBER; + hash = (53 * hash) + getNetworkCode().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.stitcher.v1.GamVodConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.GamVodConfig 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.video.stitcher.v1.GamVodConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.GamVodConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.GamVodConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.GamVodConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.GamVodConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.GamVodConfig 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.video.stitcher.v1.GamVodConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.GamVodConfig 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.video.stitcher.v1.GamVodConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.GamVodConfig 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.video.stitcher.v1.GamVodConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Metadata used for GAM ad decisioning.
+   * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.GamVodConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.stitcher.v1.GamVodConfig) + com.google.cloud.video.stitcher.v1.GamVodConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.VodConfigsProto + .internal_static_google_cloud_video_stitcher_v1_GamVodConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.VodConfigsProto + .internal_static_google_cloud_video_stitcher_v1_GamVodConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.GamVodConfig.class, + com.google.cloud.video.stitcher.v1.GamVodConfig.Builder.class); + } + + // Construct using com.google.cloud.video.stitcher.v1.GamVodConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + networkCode_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.stitcher.v1.VodConfigsProto + .internal_static_google_cloud_video_stitcher_v1_GamVodConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.GamVodConfig getDefaultInstanceForType() { + return com.google.cloud.video.stitcher.v1.GamVodConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.GamVodConfig build() { + com.google.cloud.video.stitcher.v1.GamVodConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.GamVodConfig buildPartial() { + com.google.cloud.video.stitcher.v1.GamVodConfig result = + new com.google.cloud.video.stitcher.v1.GamVodConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.stitcher.v1.GamVodConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.networkCode_ = networkCode_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.stitcher.v1.GamVodConfig) { + return mergeFrom((com.google.cloud.video.stitcher.v1.GamVodConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.stitcher.v1.GamVodConfig other) { + if (other == com.google.cloud.video.stitcher.v1.GamVodConfig.getDefaultInstance()) + return this; + if (!other.getNetworkCode().isEmpty()) { + networkCode_ = other.networkCode_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + networkCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object networkCode_ = ""; + /** + * + * + *
+     * Required. Ad Manager network code to associate with the VOD config.
+     * 
+ * + * string network_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The networkCode. + */ + public java.lang.String getNetworkCode() { + java.lang.Object ref = networkCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Ad Manager network code to associate with the VOD config.
+     * 
+ * + * string network_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for networkCode. + */ + public com.google.protobuf.ByteString getNetworkCodeBytes() { + java.lang.Object ref = networkCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Ad Manager network code to associate with the VOD config.
+     * 
+ * + * string network_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The networkCode to set. + * @return This builder for chaining. + */ + public Builder setNetworkCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Ad Manager network code to associate with the VOD config.
+     * 
+ * + * string network_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNetworkCode() { + networkCode_ = getDefaultInstance().getNetworkCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Ad Manager network code to associate with the VOD config.
+     * 
+ * + * string network_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for networkCode to set. + * @return This builder for chaining. + */ + public Builder setNetworkCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.stitcher.v1.GamVodConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.stitcher.v1.GamVodConfig) + private static final com.google.cloud.video.stitcher.v1.GamVodConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.stitcher.v1.GamVodConfig(); + } + + public static com.google.cloud.video.stitcher.v1.GamVodConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GamVodConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.GamVodConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/GamVodConfigOrBuilder.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/GamVodConfigOrBuilder.java new file mode 100644 index 000000000000..a7221a3a2e43 --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/GamVodConfigOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/vod_configs.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +public interface GamVodConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.stitcher.v1.GamVodConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Ad Manager network code to associate with the VOD config.
+   * 
+ * + * string network_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The networkCode. + */ + java.lang.String getNetworkCode(); + /** + * + * + *
+   * Required. Ad Manager network code to associate with the VOD config.
+   * 
+ * + * string network_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for networkCode. + */ + com.google.protobuf.ByteString getNetworkCodeBytes(); +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/GetVodConfigRequest.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/GetVodConfigRequest.java new file mode 100644 index 000000000000..df2e8b36b94f --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/GetVodConfigRequest.java @@ -0,0 +1,647 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/video_stitcher_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +/** + * + * + *
+ * Request message for VideoStitcherService.getVodConfig.
+ * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.GetVodConfigRequest} + */ +public final class GetVodConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.stitcher.v1.GetVodConfigRequest) + GetVodConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetVodConfigRequest.newBuilder() to construct. + private GetVodConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetVodConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetVodConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_GetVodConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_GetVodConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.GetVodConfigRequest.class, + com.google.cloud.video.stitcher.v1.GetVodConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the VOD config to be retrieved, in the form
+   * of `projects/{project_number}/locations/{location}/vodConfigs/{id}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the VOD config to be retrieved, in the form
+   * of `projects/{project_number}/locations/{location}/vodConfigs/{id}`.
+   * 
+ * + * + * 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() { + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.stitcher.v1.GetVodConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.video.stitcher.v1.GetVodConfigRequest other = + (com.google.cloud.video.stitcher.v1.GetVodConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.stitcher.v1.GetVodConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.GetVodConfigRequest 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.video.stitcher.v1.GetVodConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.GetVodConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.GetVodConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.GetVodConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.GetVodConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.GetVodConfigRequest 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.video.stitcher.v1.GetVodConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.GetVodConfigRequest 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.video.stitcher.v1.GetVodConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.GetVodConfigRequest 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.video.stitcher.v1.GetVodConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for VideoStitcherService.getVodConfig.
+   * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.GetVodConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.stitcher.v1.GetVodConfigRequest) + com.google.cloud.video.stitcher.v1.GetVodConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_GetVodConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_GetVodConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.GetVodConfigRequest.class, + com.google.cloud.video.stitcher.v1.GetVodConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.video.stitcher.v1.GetVodConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_GetVodConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.GetVodConfigRequest getDefaultInstanceForType() { + return com.google.cloud.video.stitcher.v1.GetVodConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.GetVodConfigRequest build() { + com.google.cloud.video.stitcher.v1.GetVodConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.GetVodConfigRequest buildPartial() { + com.google.cloud.video.stitcher.v1.GetVodConfigRequest result = + new com.google.cloud.video.stitcher.v1.GetVodConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.stitcher.v1.GetVodConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.stitcher.v1.GetVodConfigRequest) { + return mergeFrom((com.google.cloud.video.stitcher.v1.GetVodConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.stitcher.v1.GetVodConfigRequest other) { + if (other == com.google.cloud.video.stitcher.v1.GetVodConfigRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the VOD config to be retrieved, in the form
+     * of `projects/{project_number}/locations/{location}/vodConfigs/{id}`.
+     * 
+ * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the VOD config to be retrieved, in the form
+     * of `projects/{project_number}/locations/{location}/vodConfigs/{id}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the VOD config to be retrieved, in the form
+     * of `projects/{project_number}/locations/{location}/vodConfigs/{id}`.
+     * 
+ * + * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the VOD config to be retrieved, in the form
+     * of `projects/{project_number}/locations/{location}/vodConfigs/{id}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the VOD config to be retrieved, in the form
+     * of `projects/{project_number}/locations/{location}/vodConfigs/{id}`.
+     * 
+ * + * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.stitcher.v1.GetVodConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.stitcher.v1.GetVodConfigRequest) + private static final com.google.cloud.video.stitcher.v1.GetVodConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.stitcher.v1.GetVodConfigRequest(); + } + + public static com.google.cloud.video.stitcher.v1.GetVodConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetVodConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.GetVodConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/GetVodConfigRequestOrBuilder.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/GetVodConfigRequestOrBuilder.java new file mode 100644 index 000000000000..5d9ce39222a8 --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/GetVodConfigRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/video_stitcher_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +public interface GetVodConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.stitcher.v1.GetVodConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the VOD config to be retrieved, in the form
+   * of `projects/{project_number}/locations/{location}/vodConfigs/{id}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the VOD config to be retrieved, in the form
+   * of `projects/{project_number}/locations/{location}/vodConfigs/{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/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/ListVodConfigsRequest.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/ListVodConfigsRequest.java new file mode 100644 index 000000000000..e0199b5b045e --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/ListVodConfigsRequest.java @@ -0,0 +1,1314 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/video_stitcher_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +/** + * + * + *
+ * Request message for VideoStitcherService.listVodConfig.
+ * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.ListVodConfigsRequest} + */ +public final class ListVodConfigsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.stitcher.v1.ListVodConfigsRequest) + ListVodConfigsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListVodConfigsRequest.newBuilder() to construct. + private ListVodConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListVodConfigsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListVodConfigsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_ListVodConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_ListVodConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.ListVodConfigsRequest.class, + com.google.cloud.video.stitcher.v1.ListVodConfigsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The project that contains the list of VOD configs, in the
+   * form of `projects/{project_number}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The project that contains the list of VOD configs, in the
+   * form of `projects/{project_number}/locations/{location}`.
+   * 
+ * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. The next_page_token value returned from a previous List request,
+   * if any.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The next_page_token value returned from a previous List request,
+   * if any.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. The filter to apply to list results (see
+   * [Filtering](https://google.aip.dev/160)).
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The filter to apply to list results (see
+   * [Filtering](https://google.aip.dev/160)).
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
+   * Optional. Specifies the ordering of results following
+   * [Cloud API
+   * syntax](https://cloud.google.com/apis/design/design_patterns#sorting_order).
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Specifies the ordering of results following
+   * [Cloud API
+   * syntax](https://cloud.google.com/apis/design/design_patterns#sorting_order).
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + 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); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.stitcher.v1.ListVodConfigsRequest)) { + return super.equals(obj); + } + com.google.cloud.video.stitcher.v1.ListVodConfigsRequest other = + (com.google.cloud.video.stitcher.v1.ListVodConfigsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.stitcher.v1.ListVodConfigsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.ListVodConfigsRequest 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.video.stitcher.v1.ListVodConfigsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.ListVodConfigsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.ListVodConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.ListVodConfigsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.ListVodConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.ListVodConfigsRequest 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.video.stitcher.v1.ListVodConfigsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.ListVodConfigsRequest 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.video.stitcher.v1.ListVodConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.ListVodConfigsRequest 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.video.stitcher.v1.ListVodConfigsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for VideoStitcherService.listVodConfig.
+   * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.ListVodConfigsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.stitcher.v1.ListVodConfigsRequest) + com.google.cloud.video.stitcher.v1.ListVodConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_ListVodConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_ListVodConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.ListVodConfigsRequest.class, + com.google.cloud.video.stitcher.v1.ListVodConfigsRequest.Builder.class); + } + + // Construct using com.google.cloud.video.stitcher.v1.ListVodConfigsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_ListVodConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.ListVodConfigsRequest getDefaultInstanceForType() { + return com.google.cloud.video.stitcher.v1.ListVodConfigsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.ListVodConfigsRequest build() { + com.google.cloud.video.stitcher.v1.ListVodConfigsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.ListVodConfigsRequest buildPartial() { + com.google.cloud.video.stitcher.v1.ListVodConfigsRequest result = + new com.google.cloud.video.stitcher.v1.ListVodConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.stitcher.v1.ListVodConfigsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.stitcher.v1.ListVodConfigsRequest) { + return mergeFrom((com.google.cloud.video.stitcher.v1.ListVodConfigsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.stitcher.v1.ListVodConfigsRequest other) { + if (other == com.google.cloud.video.stitcher.v1.ListVodConfigsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The project that contains the list of VOD configs, in the
+     * form of `projects/{project_number}/locations/{location}`.
+     * 
+ * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The project that contains the list of VOD configs, in the
+     * form of `projects/{project_number}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The project that contains the list of VOD configs, in the
+     * form of `projects/{project_number}/locations/{location}`.
+     * 
+ * + * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The project that contains the list of VOD configs, in the
+     * form of `projects/{project_number}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The project that contains the list of VOD configs, in the
+     * form of `projects/{project_number}/locations/{location}`.
+     * 
+ * + * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of items to return.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. The next_page_token value returned from a previous List request,
+     * if any.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The next_page_token value returned from a previous List request,
+     * if any.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The next_page_token value returned from a previous List request,
+     * if any.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The next_page_token value returned from a previous List request,
+     * if any.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The next_page_token value returned from a previous List request,
+     * if any.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. The filter to apply to list results (see
+     * [Filtering](https://google.aip.dev/160)).
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The filter to apply to list results (see
+     * [Filtering](https://google.aip.dev/160)).
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The filter to apply to list results (see
+     * [Filtering](https://google.aip.dev/160)).
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The filter to apply to list results (see
+     * [Filtering](https://google.aip.dev/160)).
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The filter to apply to list results (see
+     * [Filtering](https://google.aip.dev/160)).
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Optional. Specifies the ordering of results following
+     * [Cloud API
+     * syntax](https://cloud.google.com/apis/design/design_patterns#sorting_order).
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Specifies the ordering of results following
+     * [Cloud API
+     * syntax](https://cloud.google.com/apis/design/design_patterns#sorting_order).
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + 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); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Specifies the ordering of results following
+     * [Cloud API
+     * syntax](https://cloud.google.com/apis/design/design_patterns#sorting_order).
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies the ordering of results following
+     * [Cloud API
+     * syntax](https://cloud.google.com/apis/design/design_patterns#sorting_order).
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies the ordering of results following
+     * [Cloud API
+     * syntax](https://cloud.google.com/apis/design/design_patterns#sorting_order).
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.stitcher.v1.ListVodConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.stitcher.v1.ListVodConfigsRequest) + private static final com.google.cloud.video.stitcher.v1.ListVodConfigsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.stitcher.v1.ListVodConfigsRequest(); + } + + public static com.google.cloud.video.stitcher.v1.ListVodConfigsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVodConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.ListVodConfigsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/ListVodConfigsRequestOrBuilder.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/ListVodConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..b8c29fa220b8 --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/ListVodConfigsRequestOrBuilder.java @@ -0,0 +1,153 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/video_stitcher_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +public interface ListVodConfigsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.stitcher.v1.ListVodConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project that contains the list of VOD configs, in the
+   * form of `projects/{project_number}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The project that contains the list of VOD configs, in the
+   * form of `projects/{project_number}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of items to return.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The next_page_token value returned from a previous List request,
+   * if any.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The next_page_token value returned from a previous List request,
+   * if any.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. The filter to apply to list results (see
+   * [Filtering](https://google.aip.dev/160)).
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. The filter to apply to list results (see
+   * [Filtering](https://google.aip.dev/160)).
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Specifies the ordering of results following
+   * [Cloud API
+   * syntax](https://cloud.google.com/apis/design/design_patterns#sorting_order).
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Optional. Specifies the ordering of results following
+   * [Cloud API
+   * syntax](https://cloud.google.com/apis/design/design_patterns#sorting_order).
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/ListVodConfigsResponse.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/ListVodConfigsResponse.java new file mode 100644 index 000000000000..834c3be3c7f6 --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/ListVodConfigsResponse.java @@ -0,0 +1,1398 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/video_stitcher_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +/** + * + * + *
+ * Response message for VideoStitcher.ListVodConfig.
+ * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.ListVodConfigsResponse} + */ +public final class ListVodConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.stitcher.v1.ListVodConfigsResponse) + ListVodConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListVodConfigsResponse.newBuilder() to construct. + private ListVodConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListVodConfigsResponse() { + vodConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListVodConfigsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_ListVodConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_ListVodConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.ListVodConfigsResponse.class, + com.google.cloud.video.stitcher.v1.ListVodConfigsResponse.Builder.class); + } + + public static final int VOD_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List vodConfigs_; + /** + * + * + *
+   * List of VOD configs.
+   * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + @java.lang.Override + public java.util.List getVodConfigsList() { + return vodConfigs_; + } + /** + * + * + *
+   * List of VOD configs.
+   * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + @java.lang.Override + public java.util.List + getVodConfigsOrBuilderList() { + return vodConfigs_; + } + /** + * + * + *
+   * List of VOD configs.
+   * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + @java.lang.Override + public int getVodConfigsCount() { + return vodConfigs_.size(); + } + /** + * + * + *
+   * List of VOD configs.
+   * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.VodConfig getVodConfigs(int index) { + return vodConfigs_.get(index); + } + /** + * + * + *
+   * List of VOD configs.
+   * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.VodConfigOrBuilder getVodConfigsOrBuilder(int index) { + return vodConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * The pagination token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The pagination token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < vodConfigs_.size(); i++) { + output.writeMessage(1, vodConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < vodConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, vodConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.stitcher.v1.ListVodConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.video.stitcher.v1.ListVodConfigsResponse other = + (com.google.cloud.video.stitcher.v1.ListVodConfigsResponse) obj; + + if (!getVodConfigsList().equals(other.getVodConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getVodConfigsCount() > 0) { + hash = (37 * hash) + VOD_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getVodConfigsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.stitcher.v1.ListVodConfigsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.ListVodConfigsResponse 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.video.stitcher.v1.ListVodConfigsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.ListVodConfigsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.ListVodConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.ListVodConfigsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.ListVodConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.ListVodConfigsResponse 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.video.stitcher.v1.ListVodConfigsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.ListVodConfigsResponse 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.video.stitcher.v1.ListVodConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.ListVodConfigsResponse 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.video.stitcher.v1.ListVodConfigsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for VideoStitcher.ListVodConfig.
+   * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.ListVodConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.stitcher.v1.ListVodConfigsResponse) + com.google.cloud.video.stitcher.v1.ListVodConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_ListVodConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_ListVodConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.ListVodConfigsResponse.class, + com.google.cloud.video.stitcher.v1.ListVodConfigsResponse.Builder.class); + } + + // Construct using com.google.cloud.video.stitcher.v1.ListVodConfigsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (vodConfigsBuilder_ == null) { + vodConfigs_ = java.util.Collections.emptyList(); + } else { + vodConfigs_ = null; + vodConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_ListVodConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.ListVodConfigsResponse getDefaultInstanceForType() { + return com.google.cloud.video.stitcher.v1.ListVodConfigsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.ListVodConfigsResponse build() { + com.google.cloud.video.stitcher.v1.ListVodConfigsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.ListVodConfigsResponse buildPartial() { + com.google.cloud.video.stitcher.v1.ListVodConfigsResponse result = + new com.google.cloud.video.stitcher.v1.ListVodConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.video.stitcher.v1.ListVodConfigsResponse result) { + if (vodConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + vodConfigs_ = java.util.Collections.unmodifiableList(vodConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.vodConfigs_ = vodConfigs_; + } else { + result.vodConfigs_ = vodConfigsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.video.stitcher.v1.ListVodConfigsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.stitcher.v1.ListVodConfigsResponse) { + return mergeFrom((com.google.cloud.video.stitcher.v1.ListVodConfigsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.stitcher.v1.ListVodConfigsResponse other) { + if (other == com.google.cloud.video.stitcher.v1.ListVodConfigsResponse.getDefaultInstance()) + return this; + if (vodConfigsBuilder_ == null) { + if (!other.vodConfigs_.isEmpty()) { + if (vodConfigs_.isEmpty()) { + vodConfigs_ = other.vodConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVodConfigsIsMutable(); + vodConfigs_.addAll(other.vodConfigs_); + } + onChanged(); + } + } else { + if (!other.vodConfigs_.isEmpty()) { + if (vodConfigsBuilder_.isEmpty()) { + vodConfigsBuilder_.dispose(); + vodConfigsBuilder_ = null; + vodConfigs_ = other.vodConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + vodConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVodConfigsFieldBuilder() + : null; + } else { + vodConfigsBuilder_.addAllMessages(other.vodConfigs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.video.stitcher.v1.VodConfig m = + input.readMessage( + com.google.cloud.video.stitcher.v1.VodConfig.parser(), extensionRegistry); + if (vodConfigsBuilder_ == null) { + ensureVodConfigsIsMutable(); + vodConfigs_.add(m); + } else { + vodConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List vodConfigs_ = + java.util.Collections.emptyList(); + + private void ensureVodConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + vodConfigs_ = + new java.util.ArrayList(vodConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.video.stitcher.v1.VodConfig, + com.google.cloud.video.stitcher.v1.VodConfig.Builder, + com.google.cloud.video.stitcher.v1.VodConfigOrBuilder> + vodConfigsBuilder_; + + /** + * + * + *
+     * List of VOD configs.
+     * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + public java.util.List getVodConfigsList() { + if (vodConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(vodConfigs_); + } else { + return vodConfigsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of VOD configs.
+     * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + public int getVodConfigsCount() { + if (vodConfigsBuilder_ == null) { + return vodConfigs_.size(); + } else { + return vodConfigsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of VOD configs.
+     * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + public com.google.cloud.video.stitcher.v1.VodConfig getVodConfigs(int index) { + if (vodConfigsBuilder_ == null) { + return vodConfigs_.get(index); + } else { + return vodConfigsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of VOD configs.
+     * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + public Builder setVodConfigs(int index, com.google.cloud.video.stitcher.v1.VodConfig value) { + if (vodConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVodConfigsIsMutable(); + vodConfigs_.set(index, value); + onChanged(); + } else { + vodConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of VOD configs.
+     * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + public Builder setVodConfigs( + int index, com.google.cloud.video.stitcher.v1.VodConfig.Builder builderForValue) { + if (vodConfigsBuilder_ == null) { + ensureVodConfigsIsMutable(); + vodConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + vodConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of VOD configs.
+     * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + public Builder addVodConfigs(com.google.cloud.video.stitcher.v1.VodConfig value) { + if (vodConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVodConfigsIsMutable(); + vodConfigs_.add(value); + onChanged(); + } else { + vodConfigsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of VOD configs.
+     * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + public Builder addVodConfigs(int index, com.google.cloud.video.stitcher.v1.VodConfig value) { + if (vodConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVodConfigsIsMutable(); + vodConfigs_.add(index, value); + onChanged(); + } else { + vodConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of VOD configs.
+     * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + public Builder addVodConfigs( + com.google.cloud.video.stitcher.v1.VodConfig.Builder builderForValue) { + if (vodConfigsBuilder_ == null) { + ensureVodConfigsIsMutable(); + vodConfigs_.add(builderForValue.build()); + onChanged(); + } else { + vodConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of VOD configs.
+     * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + public Builder addVodConfigs( + int index, com.google.cloud.video.stitcher.v1.VodConfig.Builder builderForValue) { + if (vodConfigsBuilder_ == null) { + ensureVodConfigsIsMutable(); + vodConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + vodConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of VOD configs.
+     * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + public Builder addAllVodConfigs( + java.lang.Iterable values) { + if (vodConfigsBuilder_ == null) { + ensureVodConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vodConfigs_); + onChanged(); + } else { + vodConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of VOD configs.
+     * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + public Builder clearVodConfigs() { + if (vodConfigsBuilder_ == null) { + vodConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + vodConfigsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of VOD configs.
+     * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + public Builder removeVodConfigs(int index) { + if (vodConfigsBuilder_ == null) { + ensureVodConfigsIsMutable(); + vodConfigs_.remove(index); + onChanged(); + } else { + vodConfigsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of VOD configs.
+     * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + public com.google.cloud.video.stitcher.v1.VodConfig.Builder getVodConfigsBuilder(int index) { + return getVodConfigsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of VOD configs.
+     * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + public com.google.cloud.video.stitcher.v1.VodConfigOrBuilder getVodConfigsOrBuilder(int index) { + if (vodConfigsBuilder_ == null) { + return vodConfigs_.get(index); + } else { + return vodConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of VOD configs.
+     * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + public java.util.List + getVodConfigsOrBuilderList() { + if (vodConfigsBuilder_ != null) { + return vodConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(vodConfigs_); + } + } + /** + * + * + *
+     * List of VOD configs.
+     * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + public com.google.cloud.video.stitcher.v1.VodConfig.Builder addVodConfigsBuilder() { + return getVodConfigsFieldBuilder() + .addBuilder(com.google.cloud.video.stitcher.v1.VodConfig.getDefaultInstance()); + } + /** + * + * + *
+     * List of VOD configs.
+     * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + public com.google.cloud.video.stitcher.v1.VodConfig.Builder addVodConfigsBuilder(int index) { + return getVodConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.video.stitcher.v1.VodConfig.getDefaultInstance()); + } + /** + * + * + *
+     * List of VOD configs.
+     * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + public java.util.List + getVodConfigsBuilderList() { + return getVodConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.video.stitcher.v1.VodConfig, + com.google.cloud.video.stitcher.v1.VodConfig.Builder, + com.google.cloud.video.stitcher.v1.VodConfigOrBuilder> + getVodConfigsFieldBuilder() { + if (vodConfigsBuilder_ == null) { + vodConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.video.stitcher.v1.VodConfig, + com.google.cloud.video.stitcher.v1.VodConfig.Builder, + com.google.cloud.video.stitcher.v1.VodConfigOrBuilder>( + vodConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + vodConfigs_ = null; + } + return vodConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * The pagination token.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The pagination token.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The pagination token.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The pagination token.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The pagination token.
+     * 
+ * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.stitcher.v1.ListVodConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.stitcher.v1.ListVodConfigsResponse) + private static final com.google.cloud.video.stitcher.v1.ListVodConfigsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.stitcher.v1.ListVodConfigsResponse(); + } + + public static com.google.cloud.video.stitcher.v1.ListVodConfigsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVodConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.ListVodConfigsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/ListVodConfigsResponseOrBuilder.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/ListVodConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..a3b3482bc42c --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/ListVodConfigsResponseOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/video_stitcher_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +public interface ListVodConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.stitcher.v1.ListVodConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of VOD configs.
+   * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + java.util.List getVodConfigsList(); + /** + * + * + *
+   * List of VOD configs.
+   * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + com.google.cloud.video.stitcher.v1.VodConfig getVodConfigs(int index); + /** + * + * + *
+   * List of VOD configs.
+   * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + int getVodConfigsCount(); + /** + * + * + *
+   * List of VOD configs.
+   * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + java.util.List + getVodConfigsOrBuilderList(); + /** + * + * + *
+   * List of VOD configs.
+   * 
+ * + * repeated .google.cloud.video.stitcher.v1.VodConfig vod_configs = 1; + */ + com.google.cloud.video.stitcher.v1.VodConfigOrBuilder getVodConfigsOrBuilder(int index); + + /** + * + * + *
+   * The pagination token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * The pagination token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveAdTagDetail.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveAdTagDetail.java index 1c3422d88de5..b2077c5dd1f9 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveAdTagDetail.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveAdTagDetail.java @@ -23,7 +23,9 @@ * * *
- * Container for a live session's ad tag detail.
+ * Information related to the details for one ad tag. This resource is only
+ * available for live sessions that do not implement Google Ad Manager ad
+ * insertion.
  * 
* * Protobuf type {@code google.cloud.video.stitcher.v1.LiveAdTagDetail} @@ -362,7 +364,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Container for a live session's ad tag detail.
+   * Information related to the details for one ad tag. This resource is only
+   * available for live sessions that do not implement Google Ad Manager ad
+   * insertion.
    * 
* * Protobuf type {@code google.cloud.video.stitcher.v1.LiveAdTagDetail} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveConfig.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveConfig.java index 660b70bf14e0..ff53cce15fc8 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveConfig.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveConfig.java @@ -665,9 +665,7 @@ public com.google.cloud.video.stitcher.v1.LiveConfig.State getState() { * * *
-   * Required. Determines how the ads are tracked. If
-   * [gam_live_config][google.cloud.video.stitcher.v1.LiveConfig.gam_live_config]
-   * is set, the value must be `CLIENT` because the IMA SDK handles ad tracking.
+   * Required. Determines how the ads are tracked.
    * 
* * @@ -684,9 +682,7 @@ public int getAdTrackingValue() { * * *
-   * Required. Determines how the ads are tracked. If
-   * [gam_live_config][google.cloud.video.stitcher.v1.LiveConfig.gam_live_config]
-   * is set, the value must be `CLIENT` because the IMA SDK handles ad tracking.
+   * Required. Determines how the ads are tracked.
    * 
* * @@ -848,6 +844,56 @@ public com.google.cloud.video.stitcher.v1.PrefetchConfigOrBuilder getPrefetchCon : prefetchConfig_; } + public static final int SOURCE_FETCH_OPTIONS_FIELD_NUMBER = 16; + private com.google.cloud.video.stitcher.v1.FetchOptions sourceFetchOptions_; + /** + * + * + *
+   * Options for fetching source manifests and segments.
+   * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16; + * + * @return Whether the sourceFetchOptions field is set. + */ + @java.lang.Override + public boolean hasSourceFetchOptions() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Options for fetching source manifests and segments.
+   * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16; + * + * @return The sourceFetchOptions. + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.FetchOptions getSourceFetchOptions() { + return sourceFetchOptions_ == null + ? com.google.cloud.video.stitcher.v1.FetchOptions.getDefaultInstance() + : sourceFetchOptions_; + } + /** + * + * + *
+   * Options for fetching source manifests and segments.
+   * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16; + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.FetchOptionsOrBuilder getSourceFetchOptionsOrBuilder() { + return sourceFetchOptions_ == null + ? com.google.cloud.video.stitcher.v1.FetchOptions.getDefaultInstance() + : sourceFetchOptions_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -894,6 +940,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(10, getPrefetchConfig()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(16, getSourceFetchOptions()); + } getUnknownFields().writeTo(output); } @@ -935,6 +984,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getPrefetchConfig()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getSourceFetchOptions()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -966,6 +1018,10 @@ public boolean equals(final java.lang.Object obj) { if (hasPrefetchConfig()) { if (!getPrefetchConfig().equals(other.getPrefetchConfig())) return false; } + if (hasSourceFetchOptions() != other.hasSourceFetchOptions()) return false; + if (hasSourceFetchOptions()) { + if (!getSourceFetchOptions().equals(other.getSourceFetchOptions())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -999,6 +1055,10 @@ public int hashCode() { hash = (37 * hash) + PREFETCH_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getPrefetchConfig().hashCode(); } + if (hasSourceFetchOptions()) { + hash = (37 * hash) + SOURCE_FETCH_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSourceFetchOptions().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1141,6 +1201,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getGamLiveConfigFieldBuilder(); getPrefetchConfigFieldBuilder(); + getSourceFetchOptionsFieldBuilder(); } } @@ -1165,6 +1226,11 @@ public Builder clear() { prefetchConfigBuilder_.dispose(); prefetchConfigBuilder_ = null; } + sourceFetchOptions_ = null; + if (sourceFetchOptionsBuilder_ != null) { + sourceFetchOptionsBuilder_.dispose(); + sourceFetchOptionsBuilder_ = null; + } return this; } @@ -1233,6 +1299,13 @@ private void buildPartial0(com.google.cloud.video.stitcher.v1.LiveConfig result) prefetchConfigBuilder_ == null ? prefetchConfig_ : prefetchConfigBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.sourceFetchOptions_ = + sourceFetchOptionsBuilder_ == null + ? sourceFetchOptions_ + : sourceFetchOptionsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -1316,6 +1389,9 @@ public Builder mergeFrom(com.google.cloud.video.stitcher.v1.LiveConfig other) { if (other.hasPrefetchConfig()) { mergePrefetchConfig(other.getPrefetchConfig()); } + if (other.hasSourceFetchOptions()) { + mergeSourceFetchOptions(other.getSourceFetchOptions()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1396,6 +1472,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 82 + case 130: + { + input.readMessage( + getSourceFetchOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2041,9 +2124,7 @@ public Builder clearState() { * * *
-     * Required. Determines how the ads are tracked. If
-     * [gam_live_config][google.cloud.video.stitcher.v1.LiveConfig.gam_live_config]
-     * is set, the value must be `CLIENT` because the IMA SDK handles ad tracking.
+     * Required. Determines how the ads are tracked.
      * 
* * @@ -2060,9 +2141,7 @@ public int getAdTrackingValue() { * * *
-     * Required. Determines how the ads are tracked. If
-     * [gam_live_config][google.cloud.video.stitcher.v1.LiveConfig.gam_live_config]
-     * is set, the value must be `CLIENT` because the IMA SDK handles ad tracking.
+     * Required. Determines how the ads are tracked.
      * 
* * @@ -2082,9 +2161,7 @@ public Builder setAdTrackingValue(int value) { * * *
-     * Required. Determines how the ads are tracked. If
-     * [gam_live_config][google.cloud.video.stitcher.v1.LiveConfig.gam_live_config]
-     * is set, the value must be `CLIENT` because the IMA SDK handles ad tracking.
+     * Required. Determines how the ads are tracked.
      * 
* * @@ -2103,9 +2180,7 @@ public com.google.cloud.video.stitcher.v1.AdTracking getAdTracking() { * * *
-     * Required. Determines how the ads are tracked. If
-     * [gam_live_config][google.cloud.video.stitcher.v1.LiveConfig.gam_live_config]
-     * is set, the value must be `CLIENT` because the IMA SDK handles ad tracking.
+     * Required. Determines how the ads are tracked.
      * 
* * @@ -2128,9 +2203,7 @@ public Builder setAdTracking(com.google.cloud.video.stitcher.v1.AdTracking value * * *
-     * Required. Determines how the ads are tracked. If
-     * [gam_live_config][google.cloud.video.stitcher.v1.LiveConfig.gam_live_config]
-     * is set, the value must be `CLIENT` because the IMA SDK handles ad tracking.
+     * Required. Determines how the ads are tracked.
      * 
* * @@ -2552,6 +2625,194 @@ public com.google.cloud.video.stitcher.v1.PrefetchConfigOrBuilder getPrefetchCon return prefetchConfigBuilder_; } + private com.google.cloud.video.stitcher.v1.FetchOptions sourceFetchOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.FetchOptions, + com.google.cloud.video.stitcher.v1.FetchOptions.Builder, + com.google.cloud.video.stitcher.v1.FetchOptionsOrBuilder> + sourceFetchOptionsBuilder_; + /** + * + * + *
+     * Options for fetching source manifests and segments.
+     * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16; + * + * @return Whether the sourceFetchOptions field is set. + */ + public boolean hasSourceFetchOptions() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
+     * Options for fetching source manifests and segments.
+     * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16; + * + * @return The sourceFetchOptions. + */ + public com.google.cloud.video.stitcher.v1.FetchOptions getSourceFetchOptions() { + if (sourceFetchOptionsBuilder_ == null) { + return sourceFetchOptions_ == null + ? com.google.cloud.video.stitcher.v1.FetchOptions.getDefaultInstance() + : sourceFetchOptions_; + } else { + return sourceFetchOptionsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Options for fetching source manifests and segments.
+     * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16; + */ + public Builder setSourceFetchOptions(com.google.cloud.video.stitcher.v1.FetchOptions value) { + if (sourceFetchOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceFetchOptions_ = value; + } else { + sourceFetchOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Options for fetching source manifests and segments.
+     * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16; + */ + public Builder setSourceFetchOptions( + com.google.cloud.video.stitcher.v1.FetchOptions.Builder builderForValue) { + if (sourceFetchOptionsBuilder_ == null) { + sourceFetchOptions_ = builderForValue.build(); + } else { + sourceFetchOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Options for fetching source manifests and segments.
+     * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16; + */ + public Builder mergeSourceFetchOptions(com.google.cloud.video.stitcher.v1.FetchOptions value) { + if (sourceFetchOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && sourceFetchOptions_ != null + && sourceFetchOptions_ + != com.google.cloud.video.stitcher.v1.FetchOptions.getDefaultInstance()) { + getSourceFetchOptionsBuilder().mergeFrom(value); + } else { + sourceFetchOptions_ = value; + } + } else { + sourceFetchOptionsBuilder_.mergeFrom(value); + } + if (sourceFetchOptions_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Options for fetching source manifests and segments.
+     * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16; + */ + public Builder clearSourceFetchOptions() { + bitField0_ = (bitField0_ & ~0x00000200); + sourceFetchOptions_ = null; + if (sourceFetchOptionsBuilder_ != null) { + sourceFetchOptionsBuilder_.dispose(); + sourceFetchOptionsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Options for fetching source manifests and segments.
+     * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16; + */ + public com.google.cloud.video.stitcher.v1.FetchOptions.Builder getSourceFetchOptionsBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getSourceFetchOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Options for fetching source manifests and segments.
+     * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16; + */ + public com.google.cloud.video.stitcher.v1.FetchOptionsOrBuilder + getSourceFetchOptionsOrBuilder() { + if (sourceFetchOptionsBuilder_ != null) { + return sourceFetchOptionsBuilder_.getMessageOrBuilder(); + } else { + return sourceFetchOptions_ == null + ? com.google.cloud.video.stitcher.v1.FetchOptions.getDefaultInstance() + : sourceFetchOptions_; + } + } + /** + * + * + *
+     * Options for fetching source manifests and segments.
+     * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.FetchOptions, + com.google.cloud.video.stitcher.v1.FetchOptions.Builder, + com.google.cloud.video.stitcher.v1.FetchOptionsOrBuilder> + getSourceFetchOptionsFieldBuilder() { + if (sourceFetchOptionsBuilder_ == null) { + sourceFetchOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.FetchOptions, + com.google.cloud.video.stitcher.v1.FetchOptions.Builder, + com.google.cloud.video.stitcher.v1.FetchOptionsOrBuilder>( + getSourceFetchOptions(), getParentForChildren(), isClean()); + sourceFetchOptions_ = null; + } + return sourceFetchOptionsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveConfigOrBuilder.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveConfigOrBuilder.java index bd0bb3d5860a..2d093a1633b2 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveConfigOrBuilder.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveConfigOrBuilder.java @@ -172,9 +172,7 @@ public interface LiveConfigOrBuilder * * *
-   * Required. Determines how the ads are tracked. If
-   * [gam_live_config][google.cloud.video.stitcher.v1.LiveConfig.gam_live_config]
-   * is set, the value must be `CLIENT` because the IMA SDK handles ad tracking.
+   * Required. Determines how the ads are tracked.
    * 
* * @@ -188,9 +186,7 @@ public interface LiveConfigOrBuilder * * *
-   * Required. Determines how the ads are tracked. If
-   * [gam_live_config][google.cloud.video.stitcher.v1.LiveConfig.gam_live_config]
-   * is set, the value must be `CLIENT` because the IMA SDK handles ad tracking.
+   * Required. Determines how the ads are tracked.
    * 
* * @@ -293,4 +289,39 @@ public interface LiveConfigOrBuilder * .google.cloud.video.stitcher.v1.PrefetchConfig prefetch_config = 10; */ com.google.cloud.video.stitcher.v1.PrefetchConfigOrBuilder getPrefetchConfigOrBuilder(); + + /** + * + * + *
+   * Options for fetching source manifests and segments.
+   * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16; + * + * @return Whether the sourceFetchOptions field is set. + */ + boolean hasSourceFetchOptions(); + /** + * + * + *
+   * Options for fetching source manifests and segments.
+   * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16; + * + * @return The sourceFetchOptions. + */ + com.google.cloud.video.stitcher.v1.FetchOptions getSourceFetchOptions(); + /** + * + * + *
+   * Options for fetching source manifests and segments.
+   * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16; + */ + com.google.cloud.video.stitcher.v1.FetchOptionsOrBuilder getSourceFetchOptionsOrBuilder(); } diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveConfigsProto.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveConfigsProto.java index 047bad5ab717..e9801336a39d 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveConfigsProto.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveConfigsProto.java @@ -52,37 +52,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n1google/cloud/video/stitcher/v1/live_co" + "nfigs.proto\022\036google.cloud.video.stitcher" + ".v1\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\032\036google/protobuf" - + "/duration.proto\"\216\006\n\nLiveConfig\022\021\n\004name\030\001" - + " \001(\tB\003\340A\003\022\027\n\nsource_uri\030\002 \001(\tB\003\340A\002\022\022\n\nad" - + "_tag_uri\030\003 \001(\t\022F\n\017gam_live_config\030\004 \001(\0132" - + "-.google.cloud.video.stitcher.v1.GamLive" - + "Config\022D\n\005state\030\005 \001(\01620.google.cloud.vid" - + "eo.stitcher.v1.LiveConfig.StateB\003\340A\003\022D\n\013" - + "ad_tracking\030\006 \001(\0162*.google.cloud.video.s" - + "titcher.v1.AdTrackingB\003\340A\002\022>\n\rdefault_sl" - + "ate\030\007 \001(\tB\'\372A$\n\"videostitcher.googleapis" - + ".com/Slate\022T\n\020stitching_policy\030\010 \001(\0162:.g" - + "oogle.cloud.video.stitcher.v1.LiveConfig" - + ".StitchingPolicy\022G\n\017prefetch_config\030\n \001(" - + "\0132..google.cloud.video.stitcher.v1.Prefe" - + "tchConfig\"E\n\005State\022\025\n\021STATE_UNSPECIFIED\020" - + "\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\014\n\010DELETING\020\003" - + "\"U\n\017StitchingPolicy\022 \n\034STITCHING_POLICY_" - + "UNSPECIFIED\020\000\022\017\n\013CUT_CURRENT\020\001\022\017\n\013COMPLE" - + "TE_AD\020\002:o\352Al\n\'videostitcher.googleapis.c" - + "om/LiveConfig\022Aprojects/{project}/locati" - + "ons/{location}/liveConfigs/{live_config}" - + "\"f\n\016PrefetchConfig\022\024\n\007enabled\030\001 \001(\010B\003\340A\002" - + "\022>\n\033initial_ad_request_duration\030\002 \001(\0132\031." - + "google.protobuf.Duration\"a\n\rGamLiveConfi" - + "g\022\031\n\014network_code\030\001 \001(\tB\003\340A\002\022\026\n\tasset_ke" - + "y\030\002 \001(\tB\003\340A\003\022\035\n\020custom_asset_key\030\003 \001(\tB\003" - + "\340A\003*A\n\nAdTracking\022\033\n\027AD_TRACKING_UNSPECI" - + "FIED\020\000\022\n\n\006CLIENT\020\001\022\n\n\006SERVER\020\002Bx\n\"com.go" - + "ogle.cloud.video.stitcher.v1B\020LiveConfig" - + "sProtoP\001Z>cloud.google.com/go/video/stit" - + "cher/apiv1/stitcherpb;stitcherpbb\006proto3" + + "ogle/api/resource.proto\0322google/cloud/vi" + + "deo/stitcher/v1/fetch_options.proto\032\036goo" + + "gle/protobuf/duration.proto\"\332\006\n\nLiveConf" + + "ig\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\027\n\nsource_uri\030\002 \001(" + + "\tB\003\340A\002\022\022\n\nad_tag_uri\030\003 \001(\t\022F\n\017gam_live_c" + + "onfig\030\004 \001(\0132-.google.cloud.video.stitche" + + "r.v1.GamLiveConfig\022D\n\005state\030\005 \001(\01620.goog" + + "le.cloud.video.stitcher.v1.LiveConfig.St" + + "ateB\003\340A\003\022D\n\013ad_tracking\030\006 \001(\0162*.google.c" + + "loud.video.stitcher.v1.AdTrackingB\003\340A\002\022>" + + "\n\rdefault_slate\030\007 \001(\tB\'\372A$\n\"videostitche" + + "r.googleapis.com/Slate\022T\n\020stitching_poli" + + "cy\030\010 \001(\0162:.google.cloud.video.stitcher.v" + + "1.LiveConfig.StitchingPolicy\022G\n\017prefetch" + + "_config\030\n \001(\0132..google.cloud.video.stitc" + + "her.v1.PrefetchConfig\022J\n\024source_fetch_op" + + "tions\030\020 \001(\0132,.google.cloud.video.stitche" + + "r.v1.FetchOptions\"E\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\014\n\010DE" + + "LETING\020\003\"U\n\017StitchingPolicy\022 \n\034STITCHING" + + "_POLICY_UNSPECIFIED\020\000\022\017\n\013CUT_CURRENT\020\001\022\017" + + "\n\013COMPLETE_AD\020\002:o\352Al\n\'videostitcher.goog" + + "leapis.com/LiveConfig\022Aprojects/{project" + + "}/locations/{location}/liveConfigs/{live" + + "_config}\"f\n\016PrefetchConfig\022\024\n\007enabled\030\001 " + + "\001(\010B\003\340A\002\022>\n\033initial_ad_request_duration\030" + + "\002 \001(\0132\031.google.protobuf.Duration\"a\n\rGamL" + + "iveConfig\022\031\n\014network_code\030\001 \001(\tB\003\340A\002\022\026\n\t" + + "asset_key\030\002 \001(\tB\003\340A\003\022\035\n\020custom_asset_key" + + "\030\003 \001(\tB\003\340A\003*A\n\nAdTracking\022\033\n\027AD_TRACKING" + + "_UNSPECIFIED\020\000\022\n\n\006CLIENT\020\001\022\n\n\006SERVER\020\002Bx" + + "\n\"com.google.cloud.video.stitcher.v1B\020Li" + + "veConfigsProtoP\001Z>cloud.google.com/go/vi" + + "deo/stitcher/apiv1/stitcherpb;stitcherpb" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -90,6 +94,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.video.stitcher.v1.FetchOptionsProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), }); internal_static_google_cloud_video_stitcher_v1_LiveConfig_descriptor = @@ -107,6 +112,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DefaultSlate", "StitchingPolicy", "PrefetchConfig", + "SourceFetchOptions", }); internal_static_google_cloud_video_stitcher_v1_PrefetchConfig_descriptor = getDescriptor().getMessageTypes().get(1); @@ -133,6 +139,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.video.stitcher.v1.FetchOptionsProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); } diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveSession.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveSession.java index 6bea98902192..2c3427a6df23 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveSession.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveSession.java @@ -43,6 +43,7 @@ private LiveSession() { name_ = ""; playUri_ = ""; liveConfig_ = ""; + adTracking_ = 0; } @java.lang.Override @@ -87,7 +88,8 @@ public interface GamSettingsOrBuilder * * *
-     * Required. The stream ID generated by Ad Manager.
+     * Required. The stream ID generated by Ad Manager. This must be set if GAM
+     * is being used for ads and the session uses client-side ad tracking.
      * 
* * string stream_id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -99,7 +101,8 @@ public interface GamSettingsOrBuilder * * *
-     * Required. The stream ID generated by Ad Manager.
+     * Required. The stream ID generated by Ad Manager. This must be set if GAM
+     * is being used for ads and the session uses client-side ad tracking.
      * 
* * string stream_id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -107,13 +110,85 @@ public interface GamSettingsOrBuilder * @return The bytes for streamId. */ com.google.protobuf.ByteString getStreamIdBytes(); + + /** + * + * + *
+     * [Targeting
+     * parameters](https://support.google.com/admanager/answer/7320899) to send
+     * to Ad Manager to generate a stream ID. This should only be set if the
+     * session uses server-side ad tracking.
+     * 
+ * + * map<string, string> targeting_parameters = 4; + */ + int getTargetingParametersCount(); + /** + * + * + *
+     * [Targeting
+     * parameters](https://support.google.com/admanager/answer/7320899) to send
+     * to Ad Manager to generate a stream ID. This should only be set if the
+     * session uses server-side ad tracking.
+     * 
+ * + * map<string, string> targeting_parameters = 4; + */ + boolean containsTargetingParameters(java.lang.String key); + /** Use {@link #getTargetingParametersMap()} instead. */ + @java.lang.Deprecated + java.util.Map getTargetingParameters(); + /** + * + * + *
+     * [Targeting
+     * parameters](https://support.google.com/admanager/answer/7320899) to send
+     * to Ad Manager to generate a stream ID. This should only be set if the
+     * session uses server-side ad tracking.
+     * 
+ * + * map<string, string> targeting_parameters = 4; + */ + java.util.Map getTargetingParametersMap(); + /** + * + * + *
+     * [Targeting
+     * parameters](https://support.google.com/admanager/answer/7320899) to send
+     * to Ad Manager to generate a stream ID. This should only be set if the
+     * session uses server-side ad tracking.
+     * 
+ * + * map<string, string> targeting_parameters = 4; + */ + /* nullable */ + java.lang.String getTargetingParametersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+     * [Targeting
+     * parameters](https://support.google.com/admanager/answer/7320899) to send
+     * to Ad Manager to generate a stream ID. This should only be set if the
+     * session uses server-side ad tracking.
+     * 
+ * + * map<string, string> targeting_parameters = 4; + */ + java.lang.String getTargetingParametersOrThrow(java.lang.String key); } /** * * *
-   * Defines fields related to Google Ad Manager (GAM). This should be set if
-   * GAM is being used for ads.
+   * Defines fields related to Google Ad Manager (GAM).
    * 
* * Protobuf type {@code google.cloud.video.stitcher.v1.LiveSession.GamSettings} @@ -143,6 +218,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_video_stitcher_v1_LiveSession_GamSettings_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetTargetingParameters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -161,7 +248,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * Required. The stream ID generated by Ad Manager.
+     * Required. The stream ID generated by Ad Manager. This must be set if GAM
+     * is being used for ads and the session uses client-side ad tracking.
      * 
* * string stream_id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -184,7 +272,8 @@ public java.lang.String getStreamId() { * * *
-     * Required. The stream ID generated by Ad Manager.
+     * Required. The stream ID generated by Ad Manager. This must be set if GAM
+     * is being used for ads and the session uses client-side ad tracking.
      * 
* * string stream_id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -204,6 +293,124 @@ public com.google.protobuf.ByteString getStreamIdBytes() { } } + public static final int TARGETING_PARAMETERS_FIELD_NUMBER = 4; + + private static final class TargetingParametersDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.video.stitcher.v1.SessionsProto + .internal_static_google_cloud_video_stitcher_v1_LiveSession_GamSettings_TargetingParametersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField targetingParameters_; + + private com.google.protobuf.MapField + internalGetTargetingParameters() { + if (targetingParameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TargetingParametersDefaultEntryHolder.defaultEntry); + } + return targetingParameters_; + } + + public int getTargetingParametersCount() { + return internalGetTargetingParameters().getMap().size(); + } + /** + * + * + *
+     * [Targeting
+     * parameters](https://support.google.com/admanager/answer/7320899) to send
+     * to Ad Manager to generate a stream ID. This should only be set if the
+     * session uses server-side ad tracking.
+     * 
+ * + * map<string, string> targeting_parameters = 4; + */ + @java.lang.Override + public boolean containsTargetingParameters(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTargetingParameters().getMap().containsKey(key); + } + /** Use {@link #getTargetingParametersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTargetingParameters() { + return getTargetingParametersMap(); + } + /** + * + * + *
+     * [Targeting
+     * parameters](https://support.google.com/admanager/answer/7320899) to send
+     * to Ad Manager to generate a stream ID. This should only be set if the
+     * session uses server-side ad tracking.
+     * 
+ * + * map<string, string> targeting_parameters = 4; + */ + @java.lang.Override + public java.util.Map getTargetingParametersMap() { + return internalGetTargetingParameters().getMap(); + } + /** + * + * + *
+     * [Targeting
+     * parameters](https://support.google.com/admanager/answer/7320899) to send
+     * to Ad Manager to generate a stream ID. This should only be set if the
+     * session uses server-side ad tracking.
+     * 
+ * + * map<string, string> targeting_parameters = 4; + */ + @java.lang.Override + public /* nullable */ java.lang.String getTargetingParametersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetTargetingParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * [Targeting
+     * parameters](https://support.google.com/admanager/answer/7320899) to send
+     * to Ad Manager to generate a stream ID. This should only be set if the
+     * session uses server-side ad tracking.
+     * 
+ * + * map<string, string> targeting_parameters = 4; + */ + @java.lang.Override + public java.lang.String getTargetingParametersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetTargetingParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -221,6 +428,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, streamId_); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetTargetingParameters(), + TargetingParametersDefaultEntryHolder.defaultEntry, + 4); getUnknownFields().writeTo(output); } @@ -233,6 +445,16 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, streamId_); } + for (java.util.Map.Entry entry : + internalGetTargetingParameters().getMap().entrySet()) { + com.google.protobuf.MapEntry targetingParameters__ = + TargetingParametersDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, targetingParameters__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -250,6 +472,8 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.video.stitcher.v1.LiveSession.GamSettings) obj; if (!getStreamId().equals(other.getStreamId())) return false; + if (!internalGetTargetingParameters().equals(other.internalGetTargetingParameters())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,6 +487,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + STREAM_ID_FIELD_NUMBER; hash = (53 * hash) + getStreamId().hashCode(); + if (!internalGetTargetingParameters().getMap().isEmpty()) { + hash = (37 * hash) + TARGETING_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTargetingParameters().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -369,8 +597,7 @@ protected Builder newBuilderForType( * * *
-     * Defines fields related to Google Ad Manager (GAM). This should be set if
-     * GAM is being used for ads.
+     * Defines fields related to Google Ad Manager (GAM).
      * 
* * Protobuf type {@code google.cloud.video.stitcher.v1.LiveSession.GamSettings} @@ -385,6 +612,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_video_stitcher_v1_LiveSession_GamSettings_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetTargetingParameters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableTargetingParameters(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -407,6 +656,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; streamId_ = ""; + internalGetMutableTargetingParameters().clear(); return this; } @@ -448,6 +698,10 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.streamId_ = streamId_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.targetingParameters_ = internalGetTargetingParameters(); + result.targetingParameters_.makeImmutable(); + } } @java.lang.Override @@ -504,6 +758,8 @@ public Builder mergeFrom(com.google.cloud.video.stitcher.v1.LiveSession.GamSetti bitField0_ |= 0x00000001; onChanged(); } + internalGetMutableTargetingParameters().mergeFrom(other.internalGetTargetingParameters()); + bitField0_ |= 0x00000002; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -536,6 +792,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 34: + { + com.google.protobuf.MapEntry + targetingParameters__ = + input.readMessage( + TargetingParametersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableTargetingParameters() + .getMutableMap() + .put(targetingParameters__.getKey(), targetingParameters__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -560,7 +829,8 @@ public Builder mergeFrom( * * *
-       * Required. The stream ID generated by Ad Manager.
+       * Required. The stream ID generated by Ad Manager. This must be set if GAM
+       * is being used for ads and the session uses client-side ad tracking.
        * 
* * string stream_id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -582,7 +852,8 @@ public java.lang.String getStreamId() { * * *
-       * Required. The stream ID generated by Ad Manager.
+       * Required. The stream ID generated by Ad Manager. This must be set if GAM
+       * is being used for ads and the session uses client-side ad tracking.
        * 
* * string stream_id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -604,7 +875,8 @@ public com.google.protobuf.ByteString getStreamIdBytes() { * * *
-       * Required. The stream ID generated by Ad Manager.
+       * Required. The stream ID generated by Ad Manager. This must be set if GAM
+       * is being used for ads and the session uses client-side ad tracking.
        * 
* * string stream_id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -625,7 +897,8 @@ public Builder setStreamId(java.lang.String value) { * * *
-       * Required. The stream ID generated by Ad Manager.
+       * Required. The stream ID generated by Ad Manager. This must be set if GAM
+       * is being used for ads and the session uses client-side ad tracking.
        * 
* * string stream_id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -642,7 +915,8 @@ public Builder clearStreamId() { * * *
-       * Required. The stream ID generated by Ad Manager.
+       * Required. The stream ID generated by Ad Manager. This must be set if GAM
+       * is being used for ads and the session uses client-side ad tracking.
        * 
* * string stream_id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -661,6 +935,197 @@ public Builder setStreamIdBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.MapField targetingParameters_; + + private com.google.protobuf.MapField + internalGetTargetingParameters() { + if (targetingParameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TargetingParametersDefaultEntryHolder.defaultEntry); + } + return targetingParameters_; + } + + private com.google.protobuf.MapField + internalGetMutableTargetingParameters() { + if (targetingParameters_ == null) { + targetingParameters_ = + com.google.protobuf.MapField.newMapField( + TargetingParametersDefaultEntryHolder.defaultEntry); + } + if (!targetingParameters_.isMutable()) { + targetingParameters_ = targetingParameters_.copy(); + } + bitField0_ |= 0x00000002; + onChanged(); + return targetingParameters_; + } + + public int getTargetingParametersCount() { + return internalGetTargetingParameters().getMap().size(); + } + /** + * + * + *
+       * [Targeting
+       * parameters](https://support.google.com/admanager/answer/7320899) to send
+       * to Ad Manager to generate a stream ID. This should only be set if the
+       * session uses server-side ad tracking.
+       * 
+ * + * map<string, string> targeting_parameters = 4; + */ + @java.lang.Override + public boolean containsTargetingParameters(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTargetingParameters().getMap().containsKey(key); + } + /** Use {@link #getTargetingParametersMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTargetingParameters() { + return getTargetingParametersMap(); + } + /** + * + * + *
+       * [Targeting
+       * parameters](https://support.google.com/admanager/answer/7320899) to send
+       * to Ad Manager to generate a stream ID. This should only be set if the
+       * session uses server-side ad tracking.
+       * 
+ * + * map<string, string> targeting_parameters = 4; + */ + @java.lang.Override + public java.util.Map getTargetingParametersMap() { + return internalGetTargetingParameters().getMap(); + } + /** + * + * + *
+       * [Targeting
+       * parameters](https://support.google.com/admanager/answer/7320899) to send
+       * to Ad Manager to generate a stream ID. This should only be set if the
+       * session uses server-side ad tracking.
+       * 
+ * + * map<string, string> targeting_parameters = 4; + */ + @java.lang.Override + public /* nullable */ java.lang.String getTargetingParametersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetTargetingParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+       * [Targeting
+       * parameters](https://support.google.com/admanager/answer/7320899) to send
+       * to Ad Manager to generate a stream ID. This should only be set if the
+       * session uses server-side ad tracking.
+       * 
+ * + * map<string, string> targeting_parameters = 4; + */ + @java.lang.Override + public java.lang.String getTargetingParametersOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetTargetingParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTargetingParameters() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableTargetingParameters().getMutableMap().clear(); + return this; + } + /** + * + * + *
+       * [Targeting
+       * parameters](https://support.google.com/admanager/answer/7320899) to send
+       * to Ad Manager to generate a stream ID. This should only be set if the
+       * session uses server-side ad tracking.
+       * 
+ * + * map<string, string> targeting_parameters = 4; + */ + public Builder removeTargetingParameters(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableTargetingParameters().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableTargetingParameters() { + bitField0_ |= 0x00000002; + return internalGetMutableTargetingParameters().getMutableMap(); + } + /** + * + * + *
+       * [Targeting
+       * parameters](https://support.google.com/admanager/answer/7320899) to send
+       * to Ad Manager to generate a stream ID. This should only be set if the
+       * session uses server-side ad tracking.
+       * 
+ * + * map<string, string> targeting_parameters = 4; + */ + public Builder putTargetingParameters(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableTargetingParameters().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+       * [Targeting
+       * parameters](https://support.google.com/admanager/answer/7320899) to send
+       * to Ad Manager to generate a stream ID. This should only be set if the
+       * session uses server-side ad tracking.
+       * 
+ * + * map<string, string> targeting_parameters = 4; + */ + public Builder putAllTargetingParameters( + java.util.Map values) { + internalGetMutableTargetingParameters().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -862,12 +1327,12 @@ public int getAdTagMacrosCount() { * * *
-   * Key value pairs for ad tag macro replacement. If the
-   * specified ad tag URI has macros, this field provides the mapping
-   * to the value that will replace the macro in the ad tag URI.
-   * Macros are designated by square brackets.
+   * Key value pairs for ad tag macro replacement, only available for live
+   * sessions that do not implement Google Ad manager ad insertion. If the
+   * specified ad tag URI has macros, this field provides the mapping to the
+   * value that will replace the macro in the ad tag URI.
    *
-   * For example:
+   * Macros are designated by square brackets, for example:
    *
    *   Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]"
    *
@@ -896,12 +1361,12 @@ public java.util.Map getAdTagMacros() {
    *
    *
    * 
-   * Key value pairs for ad tag macro replacement. If the
-   * specified ad tag URI has macros, this field provides the mapping
-   * to the value that will replace the macro in the ad tag URI.
-   * Macros are designated by square brackets.
+   * Key value pairs for ad tag macro replacement, only available for live
+   * sessions that do not implement Google Ad manager ad insertion. If the
+   * specified ad tag URI has macros, this field provides the mapping to the
+   * value that will replace the macro in the ad tag URI.
    *
-   * For example:
+   * Macros are designated by square brackets, for example:
    *
    *   Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]"
    *
@@ -921,12 +1386,12 @@ public java.util.Map getAdTagMacrosMap() {
    *
    *
    * 
-   * Key value pairs for ad tag macro replacement. If the
-   * specified ad tag URI has macros, this field provides the mapping
-   * to the value that will replace the macro in the ad tag URI.
-   * Macros are designated by square brackets.
+   * Key value pairs for ad tag macro replacement, only available for live
+   * sessions that do not implement Google Ad manager ad insertion. If the
+   * specified ad tag URI has macros, this field provides the mapping to the
+   * value that will replace the macro in the ad tag URI.
    *
-   * For example:
+   * Macros are designated by square brackets, for example:
    *
    *   Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]"
    *
@@ -953,12 +1418,12 @@ public java.util.Map getAdTagMacrosMap() {
    *
    *
    * 
-   * Key value pairs for ad tag macro replacement. If the
-   * specified ad tag URI has macros, this field provides the mapping
-   * to the value that will replace the macro in the ad tag URI.
-   * Macros are designated by square brackets.
+   * Key value pairs for ad tag macro replacement, only available for live
+   * sessions that do not implement Google Ad manager ad insertion. If the
+   * specified ad tag URI has macros, this field provides the mapping to the
+   * value that will replace the macro in the ad tag URI.
    *
-   * For example:
+   * Macros are designated by square brackets, for example:
    *
    *   Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]"
    *
@@ -1143,6 +1608,43 @@ public com.google.protobuf.ByteString getLiveConfigBytes() {
     }
   }
 
+  public static final int AD_TRACKING_FIELD_NUMBER = 17;
+  private int adTracking_ = 0;
+  /**
+   *
+   *
+   * 
+   * Determines how the ad should be tracked. This overrides the value set in
+   * the live config for this session.
+   * 
+ * + * .google.cloud.video.stitcher.v1.AdTracking ad_tracking = 17; + * + * @return The enum numeric value on the wire for adTracking. + */ + @java.lang.Override + public int getAdTrackingValue() { + return adTracking_; + } + /** + * + * + *
+   * Determines how the ad should be tracked. This overrides the value set in
+   * the live config for this session.
+   * 
+ * + * .google.cloud.video.stitcher.v1.AdTracking ad_tracking = 17; + * + * @return The adTracking. + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.AdTracking getAdTracking() { + com.google.cloud.video.stitcher.v1.AdTracking result = + com.google.cloud.video.stitcher.v1.AdTracking.forNumber(adTracking_); + return result == null ? com.google.cloud.video.stitcher.v1.AdTracking.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1174,6 +1676,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(liveConfig_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, liveConfig_); } + if (adTracking_ + != com.google.cloud.video.stitcher.v1.AdTracking.AD_TRACKING_UNSPECIFIED.getNumber()) { + output.writeEnum(17, adTracking_); + } getUnknownFields().writeTo(output); } @@ -1208,6 +1714,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(liveConfig_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, liveConfig_); } + if (adTracking_ + != com.google.cloud.video.stitcher.v1.AdTracking.AD_TRACKING_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, adTracking_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1236,6 +1746,7 @@ public boolean equals(final java.lang.Object obj) { if (!getGamSettings().equals(other.getGamSettings())) return false; } if (!getLiveConfig().equals(other.getLiveConfig())) return false; + if (adTracking_ != other.adTracking_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1265,6 +1776,8 @@ public int hashCode() { } hash = (37 * hash) + LIVE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getLiveConfig().hashCode(); + hash = (37 * hash) + AD_TRACKING_FIELD_NUMBER; + hash = (53 * hash) + adTracking_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1451,6 +1964,7 @@ public Builder clear() { gamSettingsBuilder_ = null; } liveConfig_ = ""; + adTracking_ = 0; return this; } @@ -1511,6 +2025,9 @@ private void buildPartial0(com.google.cloud.video.stitcher.v1.LiveSession result if (((from_bitField0_ & 0x00000020) != 0)) { result.liveConfig_ = liveConfig_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.adTracking_ = adTracking_; + } result.bitField0_ |= to_bitField0_; } @@ -1582,6 +2099,9 @@ public Builder mergeFrom(com.google.cloud.video.stitcher.v1.LiveSession other) { bitField0_ |= 0x00000020; onChanged(); } + if (other.adTracking_ != 0) { + setAdTrackingValue(other.getAdTrackingValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1650,6 +2170,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 130 + case 136: + { + adTracking_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 136 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1918,12 +2444,12 @@ public int getAdTagMacrosCount() { * * *
-     * Key value pairs for ad tag macro replacement. If the
-     * specified ad tag URI has macros, this field provides the mapping
-     * to the value that will replace the macro in the ad tag URI.
-     * Macros are designated by square brackets.
+     * Key value pairs for ad tag macro replacement, only available for live
+     * sessions that do not implement Google Ad manager ad insertion. If the
+     * specified ad tag URI has macros, this field provides the mapping to the
+     * value that will replace the macro in the ad tag URI.
      *
-     * For example:
+     * Macros are designated by square brackets, for example:
      *
      *   Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]"
      *
@@ -1952,12 +2478,12 @@ public java.util.Map getAdTagMacros() {
      *
      *
      * 
-     * Key value pairs for ad tag macro replacement. If the
-     * specified ad tag URI has macros, this field provides the mapping
-     * to the value that will replace the macro in the ad tag URI.
-     * Macros are designated by square brackets.
+     * Key value pairs for ad tag macro replacement, only available for live
+     * sessions that do not implement Google Ad manager ad insertion. If the
+     * specified ad tag URI has macros, this field provides the mapping to the
+     * value that will replace the macro in the ad tag URI.
      *
-     * For example:
+     * Macros are designated by square brackets, for example:
      *
      *   Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]"
      *
@@ -1977,12 +2503,12 @@ public java.util.Map getAdTagMacrosMap() {
      *
      *
      * 
-     * Key value pairs for ad tag macro replacement. If the
-     * specified ad tag URI has macros, this field provides the mapping
-     * to the value that will replace the macro in the ad tag URI.
-     * Macros are designated by square brackets.
+     * Key value pairs for ad tag macro replacement, only available for live
+     * sessions that do not implement Google Ad manager ad insertion. If the
+     * specified ad tag URI has macros, this field provides the mapping to the
+     * value that will replace the macro in the ad tag URI.
      *
-     * For example:
+     * Macros are designated by square brackets, for example:
      *
      *   Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]"
      *
@@ -2009,12 +2535,12 @@ public java.util.Map getAdTagMacrosMap() {
      *
      *
      * 
-     * Key value pairs for ad tag macro replacement. If the
-     * specified ad tag URI has macros, this field provides the mapping
-     * to the value that will replace the macro in the ad tag URI.
-     * Macros are designated by square brackets.
+     * Key value pairs for ad tag macro replacement, only available for live
+     * sessions that do not implement Google Ad manager ad insertion. If the
+     * specified ad tag URI has macros, this field provides the mapping to the
+     * value that will replace the macro in the ad tag URI.
      *
-     * For example:
+     * Macros are designated by square brackets, for example:
      *
      *   Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]"
      *
@@ -2047,12 +2573,12 @@ public Builder clearAdTagMacros() {
      *
      *
      * 
-     * Key value pairs for ad tag macro replacement. If the
-     * specified ad tag URI has macros, this field provides the mapping
-     * to the value that will replace the macro in the ad tag URI.
-     * Macros are designated by square brackets.
+     * Key value pairs for ad tag macro replacement, only available for live
+     * sessions that do not implement Google Ad manager ad insertion. If the
+     * specified ad tag URI has macros, this field provides the mapping to the
+     * value that will replace the macro in the ad tag URI.
      *
-     * For example:
+     * Macros are designated by square brackets, for example:
      *
      *   Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]"
      *
@@ -2081,12 +2607,12 @@ public java.util.Map getMutableAdTagMacros()
      *
      *
      * 
-     * Key value pairs for ad tag macro replacement. If the
-     * specified ad tag URI has macros, this field provides the mapping
-     * to the value that will replace the macro in the ad tag URI.
-     * Macros are designated by square brackets.
+     * Key value pairs for ad tag macro replacement, only available for live
+     * sessions that do not implement Google Ad manager ad insertion. If the
+     * specified ad tag URI has macros, this field provides the mapping to the
+     * value that will replace the macro in the ad tag URI.
      *
-     * For example:
+     * Macros are designated by square brackets, for example:
      *
      *   Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]"
      *
@@ -2113,12 +2639,12 @@ public Builder putAdTagMacros(java.lang.String key, java.lang.String value) {
      *
      *
      * 
-     * Key value pairs for ad tag macro replacement. If the
-     * specified ad tag URI has macros, this field provides the mapping
-     * to the value that will replace the macro in the ad tag URI.
-     * Macros are designated by square brackets.
+     * Key value pairs for ad tag macro replacement, only available for live
+     * sessions that do not implement Google Ad manager ad insertion. If the
+     * specified ad tag URI has macros, this field provides the mapping to the
+     * value that will replace the macro in the ad tag URI.
      *
-     * For example:
+     * Macros are designated by square brackets, for example:
      *
      *   Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]"
      *
@@ -2646,6 +3172,101 @@ public Builder setLiveConfigBytes(com.google.protobuf.ByteString value) {
       return this;
     }
 
+    private int adTracking_ = 0;
+    /**
+     *
+     *
+     * 
+     * Determines how the ad should be tracked. This overrides the value set in
+     * the live config for this session.
+     * 
+ * + * .google.cloud.video.stitcher.v1.AdTracking ad_tracking = 17; + * + * @return The enum numeric value on the wire for adTracking. + */ + @java.lang.Override + public int getAdTrackingValue() { + return adTracking_; + } + /** + * + * + *
+     * Determines how the ad should be tracked. This overrides the value set in
+     * the live config for this session.
+     * 
+ * + * .google.cloud.video.stitcher.v1.AdTracking ad_tracking = 17; + * + * @param value The enum numeric value on the wire for adTracking to set. + * @return This builder for chaining. + */ + public Builder setAdTrackingValue(int value) { + adTracking_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Determines how the ad should be tracked. This overrides the value set in
+     * the live config for this session.
+     * 
+ * + * .google.cloud.video.stitcher.v1.AdTracking ad_tracking = 17; + * + * @return The adTracking. + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.AdTracking getAdTracking() { + com.google.cloud.video.stitcher.v1.AdTracking result = + com.google.cloud.video.stitcher.v1.AdTracking.forNumber(adTracking_); + return result == null ? com.google.cloud.video.stitcher.v1.AdTracking.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Determines how the ad should be tracked. This overrides the value set in
+     * the live config for this session.
+     * 
+ * + * .google.cloud.video.stitcher.v1.AdTracking ad_tracking = 17; + * + * @param value The adTracking to set. + * @return This builder for chaining. + */ + public Builder setAdTracking(com.google.cloud.video.stitcher.v1.AdTracking value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + adTracking_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Determines how the ad should be tracked. This overrides the value set in
+     * the live config for this session.
+     * 
+ * + * .google.cloud.video.stitcher.v1.AdTracking ad_tracking = 17; + * + * @return This builder for chaining. + */ + public Builder clearAdTracking() { + bitField0_ = (bitField0_ & ~0x00000040); + adTracking_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveSessionOrBuilder.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveSessionOrBuilder.java index 90480252bf0c..196d8a3571ef 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveSessionOrBuilder.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/LiveSessionOrBuilder.java @@ -80,12 +80,12 @@ public interface LiveSessionOrBuilder * * *
-   * Key value pairs for ad tag macro replacement. If the
-   * specified ad tag URI has macros, this field provides the mapping
-   * to the value that will replace the macro in the ad tag URI.
-   * Macros are designated by square brackets.
+   * Key value pairs for ad tag macro replacement, only available for live
+   * sessions that do not implement Google Ad manager ad insertion. If the
+   * specified ad tag URI has macros, this field provides the mapping to the
+   * value that will replace the macro in the ad tag URI.
    *
-   * For example:
+   * Macros are designated by square brackets, for example:
    *
    *   Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]"
    *
@@ -102,12 +102,12 @@ public interface LiveSessionOrBuilder
    *
    *
    * 
-   * Key value pairs for ad tag macro replacement. If the
-   * specified ad tag URI has macros, this field provides the mapping
-   * to the value that will replace the macro in the ad tag URI.
-   * Macros are designated by square brackets.
+   * Key value pairs for ad tag macro replacement, only available for live
+   * sessions that do not implement Google Ad manager ad insertion. If the
+   * specified ad tag URI has macros, this field provides the mapping to the
+   * value that will replace the macro in the ad tag URI.
    *
-   * For example:
+   * Macros are designated by square brackets, for example:
    *
    *   Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]"
    *
@@ -127,12 +127,12 @@ public interface LiveSessionOrBuilder
    *
    *
    * 
-   * Key value pairs for ad tag macro replacement. If the
-   * specified ad tag URI has macros, this field provides the mapping
-   * to the value that will replace the macro in the ad tag URI.
-   * Macros are designated by square brackets.
+   * Key value pairs for ad tag macro replacement, only available for live
+   * sessions that do not implement Google Ad manager ad insertion. If the
+   * specified ad tag URI has macros, this field provides the mapping to the
+   * value that will replace the macro in the ad tag URI.
    *
-   * For example:
+   * Macros are designated by square brackets, for example:
    *
    *   Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]"
    *
@@ -149,12 +149,12 @@ public interface LiveSessionOrBuilder
    *
    *
    * 
-   * Key value pairs for ad tag macro replacement. If the
-   * specified ad tag URI has macros, this field provides the mapping
-   * to the value that will replace the macro in the ad tag URI.
-   * Macros are designated by square brackets.
+   * Key value pairs for ad tag macro replacement, only available for live
+   * sessions that do not implement Google Ad manager ad insertion. If the
+   * specified ad tag URI has macros, this field provides the mapping to the
+   * value that will replace the macro in the ad tag URI.
    *
-   * For example:
+   * Macros are designated by square brackets, for example:
    *
    *   Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]"
    *
@@ -175,12 +175,12 @@ java.lang.String getAdTagMacrosOrDefault(
    *
    *
    * 
-   * Key value pairs for ad tag macro replacement. If the
-   * specified ad tag URI has macros, this field provides the mapping
-   * to the value that will replace the macro in the ad tag URI.
-   * Macros are designated by square brackets.
+   * Key value pairs for ad tag macro replacement, only available for live
+   * sessions that do not implement Google Ad manager ad insertion. If the
+   * specified ad tag URI has macros, this field provides the mapping to the
+   * value that will replace the macro in the ad tag URI.
    *
-   * For example:
+   * Macros are designated by square brackets, for example:
    *
    *   Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]"
    *
@@ -297,4 +297,31 @@ java.lang.String getAdTagMacrosOrDefault(
    * @return The bytes for liveConfig.
    */
   com.google.protobuf.ByteString getLiveConfigBytes();
+
+  /**
+   *
+   *
+   * 
+   * Determines how the ad should be tracked. This overrides the value set in
+   * the live config for this session.
+   * 
+ * + * .google.cloud.video.stitcher.v1.AdTracking ad_tracking = 17; + * + * @return The enum numeric value on the wire for adTracking. + */ + int getAdTrackingValue(); + /** + * + * + *
+   * Determines how the ad should be tracked. This overrides the value set in
+   * the live config for this session.
+   * 
+ * + * .google.cloud.video.stitcher.v1.AdTracking ad_tracking = 17; + * + * @return The adTracking. + */ + com.google.cloud.video.stitcher.v1.AdTracking getAdTracking(); } diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/MediaCdnKey.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/MediaCdnKey.java index f1d811a5851e..70c730555322 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/MediaCdnKey.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/MediaCdnKey.java @@ -64,6 +64,716 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.video.stitcher.v1.MediaCdnKey.Builder.class); } + public interface TokenConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The query parameter in which to find the token.
+     *
+     * The name must be 1-64 characters long and match
+     * the regular expression `[a-zA-Z]([a-zA-Z0-9_-])*` which means the
+     * first character must be a letter, and all following characters
+     * must be a dash, underscore, letter or digit.
+     *
+     * Defaults to `edge-cache-token`.
+     * 
+ * + * string query_parameter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The queryParameter. + */ + java.lang.String getQueryParameter(); + /** + * + * + *
+     * Optional. The query parameter in which to find the token.
+     *
+     * The name must be 1-64 characters long and match
+     * the regular expression `[a-zA-Z]([a-zA-Z0-9_-])*` which means the
+     * first character must be a letter, and all following characters
+     * must be a dash, underscore, letter or digit.
+     *
+     * Defaults to `edge-cache-token`.
+     * 
+ * + * string query_parameter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for queryParameter. + */ + com.google.protobuf.ByteString getQueryParameterBytes(); + } + /** + * + * + *
+   * Configuration for a Media CDN token.
+   * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig} + */ + public static final class TokenConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig) + TokenConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use TokenConfig.newBuilder() to construct. + private TokenConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TokenConfig() { + queryParameter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TokenConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.CdnKeysProto + .internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_TokenConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.CdnKeysProto + .internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_TokenConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.class, + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.Builder.class); + } + + public static final int QUERY_PARAMETER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object queryParameter_ = ""; + /** + * + * + *
+     * Optional. The query parameter in which to find the token.
+     *
+     * The name must be 1-64 characters long and match
+     * the regular expression `[a-zA-Z]([a-zA-Z0-9_-])*` which means the
+     * first character must be a letter, and all following characters
+     * must be a dash, underscore, letter or digit.
+     *
+     * Defaults to `edge-cache-token`.
+     * 
+ * + * string query_parameter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The queryParameter. + */ + @java.lang.Override + public java.lang.String getQueryParameter() { + java.lang.Object ref = queryParameter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryParameter_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The query parameter in which to find the token.
+     *
+     * The name must be 1-64 characters long and match
+     * the regular expression `[a-zA-Z]([a-zA-Z0-9_-])*` which means the
+     * first character must be a letter, and all following characters
+     * must be a dash, underscore, letter or digit.
+     *
+     * Defaults to `edge-cache-token`.
+     * 
+ * + * string query_parameter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for queryParameter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryParameterBytes() { + java.lang.Object ref = queryParameter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryParameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryParameter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queryParameter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryParameter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queryParameter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig)) { + return super.equals(obj); + } + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig other = + (com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig) obj; + + if (!getQueryParameter().equals(other.getQueryParameter())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_PARAMETER_FIELD_NUMBER; + hash = (53 * hash) + getQueryParameter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig 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.video.stitcher.v1.MediaCdnKey.TokenConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig 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.video.stitcher.v1.MediaCdnKey.TokenConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig 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.video.stitcher.v1.MediaCdnKey.TokenConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Configuration for a Media CDN token.
+     * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig) + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.CdnKeysProto + .internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_TokenConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.CdnKeysProto + .internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_TokenConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.class, + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.Builder.class); + } + + // Construct using com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + queryParameter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.stitcher.v1.CdnKeysProto + .internal_static_google_cloud_video_stitcher_v1_MediaCdnKey_TokenConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig + getDefaultInstanceForType() { + return com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig build() { + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig buildPartial() { + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig result = + new com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.queryParameter_ = queryParameter_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig) { + return mergeFrom((com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig other) { + if (other + == com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.getDefaultInstance()) + return this; + if (!other.getQueryParameter().isEmpty()) { + queryParameter_ = other.queryParameter_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + queryParameter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object queryParameter_ = ""; + /** + * + * + *
+       * Optional. The query parameter in which to find the token.
+       *
+       * The name must be 1-64 characters long and match
+       * the regular expression `[a-zA-Z]([a-zA-Z0-9_-])*` which means the
+       * first character must be a letter, and all following characters
+       * must be a dash, underscore, letter or digit.
+       *
+       * Defaults to `edge-cache-token`.
+       * 
+ * + * string query_parameter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The queryParameter. + */ + public java.lang.String getQueryParameter() { + java.lang.Object ref = queryParameter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryParameter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The query parameter in which to find the token.
+       *
+       * The name must be 1-64 characters long and match
+       * the regular expression `[a-zA-Z]([a-zA-Z0-9_-])*` which means the
+       * first character must be a letter, and all following characters
+       * must be a dash, underscore, letter or digit.
+       *
+       * Defaults to `edge-cache-token`.
+       * 
+ * + * string query_parameter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for queryParameter. + */ + public com.google.protobuf.ByteString getQueryParameterBytes() { + java.lang.Object ref = queryParameter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryParameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The query parameter in which to find the token.
+       *
+       * The name must be 1-64 characters long and match
+       * the regular expression `[a-zA-Z]([a-zA-Z0-9_-])*` which means the
+       * first character must be a letter, and all following characters
+       * must be a dash, underscore, letter or digit.
+       *
+       * Defaults to `edge-cache-token`.
+       * 
+ * + * string query_parameter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The queryParameter to set. + * @return This builder for chaining. + */ + public Builder setQueryParameter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryParameter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The query parameter in which to find the token.
+       *
+       * The name must be 1-64 characters long and match
+       * the regular expression `[a-zA-Z]([a-zA-Z0-9_-])*` which means the
+       * first character must be a letter, and all following characters
+       * must be a dash, underscore, letter or digit.
+       *
+       * Defaults to `edge-cache-token`.
+       * 
+ * + * string query_parameter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearQueryParameter() { + queryParameter_ = getDefaultInstance().getQueryParameter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The query parameter in which to find the token.
+       *
+       * The name must be 1-64 characters long and match
+       * the regular expression `[a-zA-Z]([a-zA-Z0-9_-])*` which means the
+       * first character must be a letter, and all following characters
+       * must be a dash, underscore, letter or digit.
+       *
+       * Defaults to `edge-cache-token`.
+       * 
+ * + * string query_parameter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for queryParameter to set. + * @return This builder for chaining. + */ + public Builder setQueryParameterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryParameter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig) + private static final com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig(); + } + + public static com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TokenConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; public static final int PRIVATE_KEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString privateKey_ = com.google.protobuf.ByteString.EMPTY; /** @@ -133,6 +843,66 @@ public com.google.protobuf.ByteString getKeyNameBytes() { } } + public static final int TOKEN_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig tokenConfig_; + /** + * + * + *
+   * Optional. If set, the URL will be signed using the Media CDN token.
+   * Otherwise, the URL would be signed using the standard Media CDN signature.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tokenConfig field is set. + */ + @java.lang.Override + public boolean hasTokenConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. If set, the URL will be signed using the Media CDN token.
+   * Otherwise, the URL would be signed using the standard Media CDN signature.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tokenConfig. + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig getTokenConfig() { + return tokenConfig_ == null + ? com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.getDefaultInstance() + : tokenConfig_; + } + /** + * + * + *
+   * Optional. If set, the URL will be signed using the Media CDN token.
+   * Otherwise, the URL would be signed using the standard Media CDN signature.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfigOrBuilder + getTokenConfigOrBuilder() { + return tokenConfig_ == null + ? com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.getDefaultInstance() + : tokenConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -153,6 +923,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, keyName_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getTokenConfig()); + } getUnknownFields().writeTo(output); } @@ -168,6 +941,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, keyName_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTokenConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -186,6 +962,10 @@ public boolean equals(final java.lang.Object obj) { if (!getPrivateKey().equals(other.getPrivateKey())) return false; if (!getKeyName().equals(other.getKeyName())) return false; + if (hasTokenConfig() != other.hasTokenConfig()) return false; + if (hasTokenConfig()) { + if (!getTokenConfig().equals(other.getTokenConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -201,6 +981,10 @@ public int hashCode() { hash = (53 * hash) + getPrivateKey().hashCode(); hash = (37 * hash) + KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getKeyName().hashCode(); + if (hasTokenConfig()) { + hash = (37 * hash) + TOKEN_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTokenConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -330,10 +1114,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.video.stitcher.v1.MediaCdnKey.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTokenConfigFieldBuilder(); + } } @java.lang.Override @@ -342,6 +1135,11 @@ public Builder clear() { bitField0_ = 0; privateKey_ = com.google.protobuf.ByteString.EMPTY; keyName_ = ""; + tokenConfig_ = null; + if (tokenConfigBuilder_ != null) { + tokenConfigBuilder_.dispose(); + tokenConfigBuilder_ = null; + } return this; } @@ -384,6 +1182,13 @@ private void buildPartial0(com.google.cloud.video.stitcher.v1.MediaCdnKey result if (((from_bitField0_ & 0x00000002) != 0)) { result.keyName_ = keyName_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tokenConfig_ = + tokenConfigBuilder_ == null ? tokenConfig_ : tokenConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -439,6 +1244,9 @@ public Builder mergeFrom(com.google.cloud.video.stitcher.v1.MediaCdnKey other) { bitField0_ |= 0x00000002; onChanged(); } + if (other.hasTokenConfig()) { + mergeTokenConfig(other.getTokenConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -477,6 +1285,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + input.readMessage(getTokenConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -657,6 +1471,225 @@ public Builder setKeyNameBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig tokenConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig, + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.Builder, + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfigOrBuilder> + tokenConfigBuilder_; + /** + * + * + *
+     * Optional. If set, the URL will be signed using the Media CDN token.
+     * Otherwise, the URL would be signed using the standard Media CDN signature.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tokenConfig field is set. + */ + public boolean hasTokenConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Optional. If set, the URL will be signed using the Media CDN token.
+     * Otherwise, the URL would be signed using the standard Media CDN signature.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tokenConfig. + */ + public com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig getTokenConfig() { + if (tokenConfigBuilder_ == null) { + return tokenConfig_ == null + ? com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.getDefaultInstance() + : tokenConfig_; + } else { + return tokenConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. If set, the URL will be signed using the Media CDN token.
+     * Otherwise, the URL would be signed using the standard Media CDN signature.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTokenConfig( + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig value) { + if (tokenConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tokenConfig_ = value; + } else { + tokenConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, the URL will be signed using the Media CDN token.
+     * Otherwise, the URL would be signed using the standard Media CDN signature.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTokenConfig( + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.Builder builderForValue) { + if (tokenConfigBuilder_ == null) { + tokenConfig_ = builderForValue.build(); + } else { + tokenConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, the URL will be signed using the Media CDN token.
+     * Otherwise, the URL would be signed using the standard Media CDN signature.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTokenConfig( + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig value) { + if (tokenConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && tokenConfig_ != null + && tokenConfig_ + != com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig + .getDefaultInstance()) { + getTokenConfigBuilder().mergeFrom(value); + } else { + tokenConfig_ = value; + } + } else { + tokenConfigBuilder_.mergeFrom(value); + } + if (tokenConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. If set, the URL will be signed using the Media CDN token.
+     * Otherwise, the URL would be signed using the standard Media CDN signature.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTokenConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + tokenConfig_ = null; + if (tokenConfigBuilder_ != null) { + tokenConfigBuilder_.dispose(); + tokenConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, the URL will be signed using the Media CDN token.
+     * Otherwise, the URL would be signed using the standard Media CDN signature.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.Builder + getTokenConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getTokenConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. If set, the URL will be signed using the Media CDN token.
+     * Otherwise, the URL would be signed using the standard Media CDN signature.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfigOrBuilder + getTokenConfigOrBuilder() { + if (tokenConfigBuilder_ != null) { + return tokenConfigBuilder_.getMessageOrBuilder(); + } else { + return tokenConfig_ == null + ? com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.getDefaultInstance() + : tokenConfig_; + } + } + /** + * + * + *
+     * Optional. If set, the URL will be signed using the Media CDN token.
+     * Otherwise, the URL would be signed using the standard Media CDN signature.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig, + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.Builder, + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfigOrBuilder> + getTokenConfigFieldBuilder() { + if (tokenConfigBuilder_ == null) { + tokenConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig, + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig.Builder, + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfigOrBuilder>( + getTokenConfig(), getParentForChildren(), isClean()); + tokenConfig_ = null; + } + return tokenConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/MediaCdnKeyOrBuilder.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/MediaCdnKeyOrBuilder.java index 5daa7d247ce2..859fcca95b7f 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/MediaCdnKeyOrBuilder.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/MediaCdnKeyOrBuilder.java @@ -61,4 +61,48 @@ public interface MediaCdnKeyOrBuilder * @return The bytes for keyName. */ com.google.protobuf.ByteString getKeyNameBytes(); + + /** + * + * + *
+   * Optional. If set, the URL will be signed using the Media CDN token.
+   * Otherwise, the URL would be signed using the standard Media CDN signature.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tokenConfig field is set. + */ + boolean hasTokenConfig(); + /** + * + * + *
+   * Optional. If set, the URL will be signed using the Media CDN token.
+   * Otherwise, the URL would be signed using the standard Media CDN signature.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tokenConfig. + */ + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig getTokenConfig(); + /** + * + * + *
+   * Optional. If set, the URL will be signed using the Media CDN token.
+   * Otherwise, the URL would be signed using the standard Media CDN signature.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfig token_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.video.stitcher.v1.MediaCdnKey.TokenConfigOrBuilder getTokenConfigOrBuilder(); } diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/SessionsProto.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/SessionsProto.java index a0a5cf175702..e824a6ceda5f 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/SessionsProto.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/SessionsProto.java @@ -64,6 +64,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_video_stitcher_v1_LiveSession_GamSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_video_stitcher_v1_LiveSession_GamSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_stitcher_v1_LiveSession_GamSettings_TargetingParametersEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_stitcher_v1_LiveSession_GamSettings_TargetingParametersEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_video_stitcher_v1_LiveSession_AdTagMacrosEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -92,69 +96,76 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "stitcher/v1/companions.proto\032+google/clo" + "ud/video/stitcher/v1/events.proto\0321googl" + "e/cloud/video/stitcher/v1/live_configs.p" - + "roto\032\036google/protobuf/duration.proto\"\353\005\n" + + "roto\032\036google/protobuf/duration.proto\"\242\006\n" + "\nVodSession\022\021\n\004name\030\001 \001(\tB\003\340A\003\022I\n\rinters" + "titials\030\002 \001(\0132-.google.cloud.video.stitc" + "her.v1.InterstitialsB\003\340A\003\022\025\n\010play_uri\030\004 " - + "\001(\tB\003\340A\003\022\027\n\nsource_uri\030\005 \001(\tB\003\340A\002\022\027\n\nad_" - + "tag_uri\030\006 \001(\tB\003\340A\002\022W\n\020ad_tag_macro_map\030\007" - + " \003(\0132=.google.cloud.video.stitcher.v1.Vo" - + "dSession.AdTagMacroMapEntry\022I\n\020manifest_" - + "options\030\t \001(\0132/.google.cloud.video.stitc" - + "her.v1.ManifestOptions\022\025\n\010asset_id\030\n \001(\t" - + "B\003\340A\003\022D\n\013ad_tracking\030\013 \001(\0162*.google.clou" - + "d.video.stitcher.v1.AdTrackingB\003\340A\002\022L\n\014g" - + "am_settings\030\r \001(\01326.google.cloud.video.s" - + "titcher.v1.VodSession.GamSettings\032@\n\013Gam" - + "Settings\022\031\n\014network_code\030\001 \001(\tB\003\340A\002\022\026\n\ts" - + "tream_id\030\002 \001(\tB\003\340A\002\0324\n\022AdTagMacroMapEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:o\352Al\n\'" - + "videostitcher.googleapis.com/VodSession\022" - + "Aprojects/{project}/locations/{location}" - + "/vodSessions/{vod_session}\"\241\001\n\rInterstit" - + "ials\022D\n\tad_breaks\030\001 \003(\01321.google.cloud.v" - + "ideo.stitcher.v1.VodSessionAdBreak\022J\n\017se" - + "ssion_content\030\002 \001(\01321.google.cloud.video" - + ".stitcher.v1.VodSessionContent\"\300\001\n\014VodSe" - + "ssionAd\022+\n\010duration\030\001 \001(\0132\031.google.proto" - + "buf.Duration\022C\n\rcompanion_ads\030\002 \001(\0132,.go" - + "ogle.cloud.video.stitcher.v1.CompanionAd" - + "s\022>\n\017activity_events\030\003 \003(\0132%.google.clou" - + "d.video.stitcher.v1.Event\"@\n\021VodSessionC" - + "ontent\022+\n\010duration\030\001 \001(\0132\031.google.protob" - + "uf.Duration\"\200\002\n\021VodSessionAdBreak\022F\n\017pro" - + "gress_events\030\001 \003(\0132-.google.cloud.video." - + "stitcher.v1.ProgressEvent\0229\n\003ads\030\002 \003(\0132," + + "\001(\tB\003\340A\003\022\022\n\nsource_uri\030\005 \001(\t\022\022\n\nad_tag_u" + + "ri\030\006 \001(\t\022W\n\020ad_tag_macro_map\030\007 \003(\0132=.goo" + + "gle.cloud.video.stitcher.v1.VodSession.A" + + "dTagMacroMapEntry\022I\n\020manifest_options\030\t " + + "\001(\0132/.google.cloud.video.stitcher.v1.Man" + + "ifestOptions\022\025\n\010asset_id\030\n \001(\tB\003\340A\003\022D\n\013a" + + "d_tracking\030\013 \001(\0162*.google.cloud.video.st" + + "itcher.v1.AdTrackingB\003\340A\002\022L\n\014gam_setting" + + "s\030\r \001(\01326.google.cloud.video.stitcher.v1" + + ".VodSession.GamSettings\022?\n\nvod_config\030\016 " + + "\001(\tB+\372A(\n&videostitcher.googleapis.com/V" + + "odConfig\032@\n\013GamSettings\022\031\n\014network_code\030" + + "\001 \001(\tB\003\340A\002\022\026\n\tstream_id\030\002 \001(\tB\003\340A\002\0324\n\022Ad" + + "TagMacroMapEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001:o\352Al\n\'videostitcher.googleapis." + + "com/VodSession\022Aprojects/{project}/locat" + + "ions/{location}/vodSessions/{vod_session" + + "}\"\241\001\n\rInterstitials\022D\n\tad_breaks\030\001 \003(\01321" + ".google.cloud.video.stitcher.v1.VodSessi" - + "onAd\0222\n\017end_time_offset\030\003 \001(\0132\031.google.p" - + "rotobuf.Duration\0224\n\021start_time_offset\030\004 " - + "\001(\0132\031.google.protobuf.Duration\"\273\004\n\013LiveS" - + "ession\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\025\n\010play_uri\030\002 " - + "\001(\tB\003\340A\003\022S\n\rad_tag_macros\030\006 \003(\0132<.google" - + ".cloud.video.stitcher.v1.LiveSession.AdT" - + "agMacrosEntry\022I\n\020manifest_options\030\n \001(\0132" - + "/.google.cloud.video.stitcher.v1.Manifes" - + "tOptions\022M\n\014gam_settings\030\017 \001(\01327.google." - + "cloud.video.stitcher.v1.LiveSession.GamS" - + "ettings\022D\n\013live_config\030\020 \001(\tB/\340A\002\372A)\n\'vi" - + "deostitcher.googleapis.com/LiveConfig\032%\n" - + "\013GamSettings\022\026\n\tstream_id\030\001 \001(\tB\003\340A\002\0322\n\020" - + "AdTagMacrosEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001:r\352Ao\n(videostitcher.googleapis." - + "com/LiveSession\022Cprojects/{project}/loca" - + "tions/{location}/liveSessions/{live_sess" - + "ion}\"\376\001\n\017ManifestOptions\022K\n\022include_rend" - + "itions\030\001 \003(\0132/.google.cloud.video.stitch" - + "er.v1.RenditionFilter\022R\n\rbitrate_order\030\002" - + " \001(\0162;.google.cloud.video.stitcher.v1.Ma" - + "nifestOptions.OrderPolicy\"J\n\013OrderPolicy" - + "\022\034\n\030ORDER_POLICY_UNSPECIFIED\020\000\022\r\n\tASCEND" - + "ING\020\001\022\016\n\nDESCENDING\020\002\"6\n\017RenditionFilter" - + "\022\023\n\013bitrate_bps\030\001 \001(\005\022\016\n\006codecs\030\002 \001(\tBu\n" - + "\"com.google.cloud.video.stitcher.v1B\rSes" - + "sionsProtoP\001Z>cloud.google.com/go/video/" - + "stitcher/apiv1/stitcherpb;stitcherpbb\006pr" - + "oto3" + + "onAdBreak\022J\n\017session_content\030\002 \001(\01321.goo" + + "gle.cloud.video.stitcher.v1.VodSessionCo" + + "ntent\"\300\001\n\014VodSessionAd\022+\n\010duration\030\001 \001(\013" + + "2\031.google.protobuf.Duration\022C\n\rcompanion" + + "_ads\030\002 \001(\0132,.google.cloud.video.stitcher" + + ".v1.CompanionAds\022>\n\017activity_events\030\003 \003(" + + "\0132%.google.cloud.video.stitcher.v1.Event" + + "\"@\n\021VodSessionContent\022+\n\010duration\030\001 \001(\0132" + + "\031.google.protobuf.Duration\"\200\002\n\021VodSessio" + + "nAdBreak\022F\n\017progress_events\030\001 \003(\0132-.goog" + + "le.cloud.video.stitcher.v1.ProgressEvent" + + "\0229\n\003ads\030\002 \003(\0132,.google.cloud.video.stitc" + + "her.v1.VodSessionAd\0222\n\017end_time_offset\030\003" + + " \001(\0132\031.google.protobuf.Duration\0224\n\021start" + + "_time_offset\030\004 \001(\0132\031.google.protobuf.Dur" + + "ation\"\251\006\n\013LiveSession\022\021\n\004name\030\001 \001(\tB\003\340A\003" + + "\022\025\n\010play_uri\030\002 \001(\tB\003\340A\003\022S\n\rad_tag_macros" + + "\030\006 \003(\0132<.google.cloud.video.stitcher.v1." + + "LiveSession.AdTagMacrosEntry\022I\n\020manifest" + + "_options\030\n \001(\0132/.google.cloud.video.stit" + + "cher.v1.ManifestOptions\022M\n\014gam_settings\030" + + "\017 \001(\01327.google.cloud.video.stitcher.v1.L" + + "iveSession.GamSettings\022D\n\013live_config\030\020 " + + "\001(\tB/\340A\002\372A)\n\'videostitcher.googleapis.co" + + "m/LiveConfig\022?\n\013ad_tracking\030\021 \001(\0162*.goog" + + "le.cloud.video.stitcher.v1.AdTracking\032\321\001" + + "\n\013GamSettings\022\026\n\tstream_id\030\001 \001(\tB\003\340A\002\022n\n" + + "\024targeting_parameters\030\004 \003(\0132P.google.clo" + + "ud.video.stitcher.v1.LiveSession.GamSett" + + "ings.TargetingParametersEntry\032:\n\030Targeti" + + "ngParametersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\0322\n\020AdTagMacrosEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001:r\352Ao\n(videostitche" + + "r.googleapis.com/LiveSession\022Cprojects/{" + + "project}/locations/{location}/liveSessio" + + "ns/{live_session}\"\376\001\n\017ManifestOptions\022K\n" + + "\022include_renditions\030\001 \003(\0132/.google.cloud" + + ".video.stitcher.v1.RenditionFilter\022R\n\rbi" + + "trate_order\030\002 \001(\0162;.google.cloud.video.s" + + "titcher.v1.ManifestOptions.OrderPolicy\"J" + + "\n\013OrderPolicy\022\034\n\030ORDER_POLICY_UNSPECIFIE" + + "D\020\000\022\r\n\tASCENDING\020\001\022\016\n\nDESCENDING\020\002\"6\n\017Re" + + "nditionFilter\022\023\n\013bitrate_bps\030\001 \001(\005\022\016\n\006co" + + "decs\030\002 \001(\tBu\n\"com.google.cloud.video.sti" + + "tcher.v1B\rSessionsProtoP\001Z>cloud.google." + + "com/go/video/stitcher/apiv1/stitcherpb;s" + + "titcherpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -183,6 +194,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AssetId", "AdTracking", "GamSettings", + "VodConfig", }); internal_static_google_cloud_video_stitcher_v1_VodSession_GamSettings_descriptor = internal_static_google_cloud_video_stitcher_v1_VodSession_descriptor @@ -242,7 +254,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_stitcher_v1_LiveSession_descriptor, new java.lang.String[] { - "Name", "PlayUri", "AdTagMacros", "ManifestOptions", "GamSettings", "LiveConfig", + "Name", + "PlayUri", + "AdTagMacros", + "ManifestOptions", + "GamSettings", + "LiveConfig", + "AdTracking", }); internal_static_google_cloud_video_stitcher_v1_LiveSession_GamSettings_descriptor = internal_static_google_cloud_video_stitcher_v1_LiveSession_descriptor @@ -252,7 +270,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_stitcher_v1_LiveSession_GamSettings_descriptor, new java.lang.String[] { - "StreamId", + "StreamId", "TargetingParameters", + }); + internal_static_google_cloud_video_stitcher_v1_LiveSession_GamSettings_TargetingParametersEntry_descriptor = + internal_static_google_cloud_video_stitcher_v1_LiveSession_GamSettings_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_video_stitcher_v1_LiveSession_GamSettings_TargetingParametersEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_stitcher_v1_LiveSession_GamSettings_TargetingParametersEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); internal_static_google_cloud_video_stitcher_v1_LiveSession_AdTagMacrosEntry_descriptor = internal_static_google_cloud_video_stitcher_v1_LiveSession_descriptor diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/UpdateLiveConfigRequest.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/UpdateLiveConfigRequest.java new file mode 100644 index 000000000000..d2bd517465cd --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/UpdateLiveConfigRequest.java @@ -0,0 +1,1059 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/video_stitcher_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +/** + * + * + *
+ * Request message for VideoStitcherService.updateLiveConfig.
+ * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.UpdateLiveConfigRequest} + */ +public final class UpdateLiveConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.stitcher.v1.UpdateLiveConfigRequest) + UpdateLiveConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateLiveConfigRequest.newBuilder() to construct. + private UpdateLiveConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateLiveConfigRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateLiveConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_UpdateLiveConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_UpdateLiveConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest.class, + com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int LIVE_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.video.stitcher.v1.LiveConfig liveConfig_; + /** + * + * + *
+   * Required. The LiveConfig resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.LiveConfig live_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the liveConfig field is set. + */ + @java.lang.Override + public boolean hasLiveConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The LiveConfig resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.LiveConfig live_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The liveConfig. + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.LiveConfig getLiveConfig() { + return liveConfig_ == null + ? com.google.cloud.video.stitcher.v1.LiveConfig.getDefaultInstance() + : liveConfig_; + } + /** + * + * + *
+   * Required. The LiveConfig resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.LiveConfig live_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.LiveConfigOrBuilder getLiveConfigOrBuilder() { + return liveConfig_ == null + ? com.google.cloud.video.stitcher.v1.LiveConfig.getDefaultInstance() + : liveConfig_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The update mask applies to the resource.
+   * For the `FieldMask` definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. The update mask applies to the resource.
+   * For the `FieldMask` definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The update mask applies to the resource.
+   * For the `FieldMask` definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getLiveConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLiveConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest other = + (com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest) obj; + + if (hasLiveConfig() != other.hasLiveConfig()) return false; + if (hasLiveConfig()) { + if (!getLiveConfig().equals(other.getLiveConfig())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasLiveConfig()) { + hash = (37 * hash) + LIVE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLiveConfig().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest 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.video.stitcher.v1.UpdateLiveConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest 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.video.stitcher.v1.UpdateLiveConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest 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.video.stitcher.v1.UpdateLiveConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for VideoStitcherService.updateLiveConfig.
+   * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.UpdateLiveConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.stitcher.v1.UpdateLiveConfigRequest) + com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_UpdateLiveConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_UpdateLiveConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest.class, + com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLiveConfigFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + liveConfig_ = null; + if (liveConfigBuilder_ != null) { + liveConfigBuilder_.dispose(); + liveConfigBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_UpdateLiveConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest getDefaultInstanceForType() { + return com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest build() { + com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest buildPartial() { + com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest result = + new com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.liveConfig_ = liveConfigBuilder_ == null ? liveConfig_ : liveConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest) { + return mergeFrom((com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest other) { + if (other == com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest.getDefaultInstance()) + return this; + if (other.hasLiveConfig()) { + mergeLiveConfig(other.getLiveConfig()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getLiveConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.video.stitcher.v1.LiveConfig liveConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.LiveConfig, + com.google.cloud.video.stitcher.v1.LiveConfig.Builder, + com.google.cloud.video.stitcher.v1.LiveConfigOrBuilder> + liveConfigBuilder_; + /** + * + * + *
+     * Required. The LiveConfig resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.LiveConfig live_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the liveConfig field is set. + */ + public boolean hasLiveConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The LiveConfig resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.LiveConfig live_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The liveConfig. + */ + public com.google.cloud.video.stitcher.v1.LiveConfig getLiveConfig() { + if (liveConfigBuilder_ == null) { + return liveConfig_ == null + ? com.google.cloud.video.stitcher.v1.LiveConfig.getDefaultInstance() + : liveConfig_; + } else { + return liveConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The LiveConfig resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.LiveConfig live_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLiveConfig(com.google.cloud.video.stitcher.v1.LiveConfig value) { + if (liveConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + liveConfig_ = value; + } else { + liveConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The LiveConfig resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.LiveConfig live_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLiveConfig( + com.google.cloud.video.stitcher.v1.LiveConfig.Builder builderForValue) { + if (liveConfigBuilder_ == null) { + liveConfig_ = builderForValue.build(); + } else { + liveConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The LiveConfig resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.LiveConfig live_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeLiveConfig(com.google.cloud.video.stitcher.v1.LiveConfig value) { + if (liveConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && liveConfig_ != null + && liveConfig_ != com.google.cloud.video.stitcher.v1.LiveConfig.getDefaultInstance()) { + getLiveConfigBuilder().mergeFrom(value); + } else { + liveConfig_ = value; + } + } else { + liveConfigBuilder_.mergeFrom(value); + } + if (liveConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The LiveConfig resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.LiveConfig live_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearLiveConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + liveConfig_ = null; + if (liveConfigBuilder_ != null) { + liveConfigBuilder_.dispose(); + liveConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The LiveConfig resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.LiveConfig live_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.video.stitcher.v1.LiveConfig.Builder getLiveConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getLiveConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The LiveConfig resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.LiveConfig live_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.video.stitcher.v1.LiveConfigOrBuilder getLiveConfigOrBuilder() { + if (liveConfigBuilder_ != null) { + return liveConfigBuilder_.getMessageOrBuilder(); + } else { + return liveConfig_ == null + ? com.google.cloud.video.stitcher.v1.LiveConfig.getDefaultInstance() + : liveConfig_; + } + } + /** + * + * + *
+     * Required. The LiveConfig resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.LiveConfig live_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.LiveConfig, + com.google.cloud.video.stitcher.v1.LiveConfig.Builder, + com.google.cloud.video.stitcher.v1.LiveConfigOrBuilder> + getLiveConfigFieldBuilder() { + if (liveConfigBuilder_ == null) { + liveConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.LiveConfig, + com.google.cloud.video.stitcher.v1.LiveConfig.Builder, + com.google.cloud.video.stitcher.v1.LiveConfigOrBuilder>( + getLiveConfig(), getParentForChildren(), isClean()); + liveConfig_ = null; + } + return liveConfigBuilder_; + } + + 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_; + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * For the `FieldMask` definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * For the `FieldMask` definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * For the `FieldMask` definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * For the `FieldMask` definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * For the `FieldMask` definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * For the `FieldMask` definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * For the `FieldMask` definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * For the `FieldMask` definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * For the `FieldMask` definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.stitcher.v1.UpdateLiveConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.stitcher.v1.UpdateLiveConfigRequest) + private static final com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest(); + } + + public static com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateLiveConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/UpdateLiveConfigRequestOrBuilder.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/UpdateLiveConfigRequestOrBuilder.java new file mode 100644 index 000000000000..0a811fe52058 --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/UpdateLiveConfigRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/video_stitcher_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +public interface UpdateLiveConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.stitcher.v1.UpdateLiveConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The LiveConfig resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.LiveConfig live_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the liveConfig field is set. + */ + boolean hasLiveConfig(); + /** + * + * + *
+   * Required. The LiveConfig resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.LiveConfig live_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The liveConfig. + */ + com.google.cloud.video.stitcher.v1.LiveConfig getLiveConfig(); + /** + * + * + *
+   * Required. The LiveConfig resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.LiveConfig live_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.video.stitcher.v1.LiveConfigOrBuilder getLiveConfigOrBuilder(); + + /** + * + * + *
+   * Required. The update mask applies to the resource.
+   * For the `FieldMask` definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The update mask applies to the resource.
+   * For the `FieldMask` definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The update mask applies to the resource.
+   * For the `FieldMask` definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/UpdateVodConfigRequest.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/UpdateVodConfigRequest.java new file mode 100644 index 000000000000..77f20db1cefc --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/UpdateVodConfigRequest.java @@ -0,0 +1,1059 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/video_stitcher_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +/** + * + * + *
+ * Request message for VideoStitcherService.updateVodConfig.
+ * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.UpdateVodConfigRequest} + */ +public final class UpdateVodConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.stitcher.v1.UpdateVodConfigRequest) + UpdateVodConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateVodConfigRequest.newBuilder() to construct. + private UpdateVodConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateVodConfigRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateVodConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_UpdateVodConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_UpdateVodConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest.class, + com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int VOD_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.video.stitcher.v1.VodConfig vodConfig_; + /** + * + * + *
+   * Required. The VOD config resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vodConfig field is set. + */ + @java.lang.Override + public boolean hasVodConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The VOD config resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vodConfig. + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.VodConfig getVodConfig() { + return vodConfig_ == null + ? com.google.cloud.video.stitcher.v1.VodConfig.getDefaultInstance() + : vodConfig_; + } + /** + * + * + *
+   * Required. The VOD config resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.VodConfigOrBuilder getVodConfigOrBuilder() { + return vodConfig_ == null + ? com.google.cloud.video.stitcher.v1.VodConfig.getDefaultInstance() + : vodConfig_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The update mask applies to the resource.
+   * For the `FieldMask` definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. The update mask applies to the resource.
+   * For the `FieldMask` definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The update mask applies to the resource.
+   * For the `FieldMask` definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getVodConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVodConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest other = + (com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest) obj; + + if (hasVodConfig() != other.hasVodConfig()) return false; + if (hasVodConfig()) { + if (!getVodConfig().equals(other.getVodConfig())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasVodConfig()) { + hash = (37 * hash) + VOD_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVodConfig().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest 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.video.stitcher.v1.UpdateVodConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest 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.video.stitcher.v1.UpdateVodConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest 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.video.stitcher.v1.UpdateVodConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for VideoStitcherService.updateVodConfig.
+   * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.UpdateVodConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.stitcher.v1.UpdateVodConfigRequest) + com.google.cloud.video.stitcher.v1.UpdateVodConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_UpdateVodConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_UpdateVodConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest.class, + com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getVodConfigFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + vodConfig_ = null; + if (vodConfigBuilder_ != null) { + vodConfigBuilder_.dispose(); + vodConfigBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.stitcher.v1.VideoStitcherServiceProto + .internal_static_google_cloud_video_stitcher_v1_UpdateVodConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest getDefaultInstanceForType() { + return com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest build() { + com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest buildPartial() { + com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest result = + new com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.vodConfig_ = vodConfigBuilder_ == null ? vodConfig_ : vodConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest) { + return mergeFrom((com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest other) { + if (other == com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest.getDefaultInstance()) + return this; + if (other.hasVodConfig()) { + mergeVodConfig(other.getVodConfig()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getVodConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.video.stitcher.v1.VodConfig vodConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.VodConfig, + com.google.cloud.video.stitcher.v1.VodConfig.Builder, + com.google.cloud.video.stitcher.v1.VodConfigOrBuilder> + vodConfigBuilder_; + /** + * + * + *
+     * Required. The VOD config resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vodConfig field is set. + */ + public boolean hasVodConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The VOD config resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vodConfig. + */ + public com.google.cloud.video.stitcher.v1.VodConfig getVodConfig() { + if (vodConfigBuilder_ == null) { + return vodConfig_ == null + ? com.google.cloud.video.stitcher.v1.VodConfig.getDefaultInstance() + : vodConfig_; + } else { + return vodConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The VOD config resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVodConfig(com.google.cloud.video.stitcher.v1.VodConfig value) { + if (vodConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vodConfig_ = value; + } else { + vodConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The VOD config resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVodConfig( + com.google.cloud.video.stitcher.v1.VodConfig.Builder builderForValue) { + if (vodConfigBuilder_ == null) { + vodConfig_ = builderForValue.build(); + } else { + vodConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The VOD config resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeVodConfig(com.google.cloud.video.stitcher.v1.VodConfig value) { + if (vodConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && vodConfig_ != null + && vodConfig_ != com.google.cloud.video.stitcher.v1.VodConfig.getDefaultInstance()) { + getVodConfigBuilder().mergeFrom(value); + } else { + vodConfig_ = value; + } + } else { + vodConfigBuilder_.mergeFrom(value); + } + if (vodConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The VOD config resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearVodConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + vodConfig_ = null; + if (vodConfigBuilder_ != null) { + vodConfigBuilder_.dispose(); + vodConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The VOD config resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.video.stitcher.v1.VodConfig.Builder getVodConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getVodConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The VOD config resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.video.stitcher.v1.VodConfigOrBuilder getVodConfigOrBuilder() { + if (vodConfigBuilder_ != null) { + return vodConfigBuilder_.getMessageOrBuilder(); + } else { + return vodConfig_ == null + ? com.google.cloud.video.stitcher.v1.VodConfig.getDefaultInstance() + : vodConfig_; + } + } + /** + * + * + *
+     * Required. The VOD config resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.VodConfig, + com.google.cloud.video.stitcher.v1.VodConfig.Builder, + com.google.cloud.video.stitcher.v1.VodConfigOrBuilder> + getVodConfigFieldBuilder() { + if (vodConfigBuilder_ == null) { + vodConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.VodConfig, + com.google.cloud.video.stitcher.v1.VodConfig.Builder, + com.google.cloud.video.stitcher.v1.VodConfigOrBuilder>( + getVodConfig(), getParentForChildren(), isClean()); + vodConfig_ = null; + } + return vodConfigBuilder_; + } + + 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_; + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * For the `FieldMask` definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * For the `FieldMask` definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * For the `FieldMask` definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * For the `FieldMask` definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * For the `FieldMask` definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * For the `FieldMask` definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * For the `FieldMask` definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * For the `FieldMask` definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The update mask applies to the resource.
+     * For the `FieldMask` definition, see
+     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.stitcher.v1.UpdateVodConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.stitcher.v1.UpdateVodConfigRequest) + private static final com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest(); + } + + public static com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateVodConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/UpdateVodConfigRequestOrBuilder.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/UpdateVodConfigRequestOrBuilder.java new file mode 100644 index 000000000000..cc258c19264f --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/UpdateVodConfigRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/video_stitcher_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +public interface UpdateVodConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.stitcher.v1.UpdateVodConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The VOD config resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vodConfig field is set. + */ + boolean hasVodConfig(); + /** + * + * + *
+   * Required. The VOD config resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vodConfig. + */ + com.google.cloud.video.stitcher.v1.VodConfig getVodConfig(); + /** + * + * + *
+   * Required. The VOD config resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig vod_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.video.stitcher.v1.VodConfigOrBuilder getVodConfigOrBuilder(); + + /** + * + * + *
+   * Required. The update mask applies to the resource.
+   * For the `FieldMask` definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The update mask applies to the resource.
+   * For the `FieldMask` definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The update mask applies to the resource.
+   * For the `FieldMask` definition, see
+   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceProto.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceProto.java index 71d5e82e823a..146fc8bd61f4 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceProto.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VideoStitcherServiceProto.java @@ -148,6 +148,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_video_stitcher_v1_DeleteLiveConfigRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_video_stitcher_v1_DeleteLiveConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_stitcher_v1_UpdateLiveConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_stitcher_v1_UpdateLiveConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_stitcher_v1_CreateVodConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_stitcher_v1_CreateVodConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_stitcher_v1_ListVodConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_stitcher_v1_ListVodConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_stitcher_v1_ListVodConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_stitcher_v1_ListVodConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_stitcher_v1_GetVodConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_stitcher_v1_GetVodConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_stitcher_v1_DeleteVodConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_stitcher_v1_DeleteVodConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_stitcher_v1_UpdateVodConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_stitcher_v1_UpdateVodConfigRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_video_stitcher_v1_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -173,244 +201,309 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "-google/cloud/video/stitcher/v1/sessions" + ".proto\032+google/cloud/video/stitcher/v1/s" + "lates.proto\0323google/cloud/video/stitcher" - + "/v1/stitch_details.proto\032#google/longrun" - + "ning/operations.proto\032\033google/protobuf/e" - + "mpty.proto\032 google/protobuf/field_mask.p" - + "roto\032\037google/protobuf/timestamp.proto\"\251\001" - + "\n\023CreateCdnKeyRequest\022;\n\006parent\030\001 \001(\tB+\340" - + "A\002\372A%\022#videostitcher.googleapis.com/CdnK" - + "ey\022<\n\007cdn_key\030\002 \001(\0132&.google.cloud.video" - + ".stitcher.v1.CdnKeyB\003\340A\002\022\027\n\ncdn_key_id\030\003" - + " \001(\tB\003\340A\002\"\232\001\n\022ListCdnKeysRequest\022;\n\006pare" - + "nt\030\001 \001(\tB+\340A\002\372A%\022#videostitcher.googleap" - + "is.com/CdnKey\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" - + "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" - + "\030\005 \001(\t\"}\n\023ListCdnKeysResponse\0228\n\010cdn_key" - + "s\030\001 \003(\0132&.google.cloud.video.stitcher.v1" - + ".CdnKey\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" - + "achable\030\003 \003(\t\"M\n\020GetCdnKeyRequest\0229\n\004nam" - + "e\030\001 \001(\tB+\340A\002\372A%\n#videostitcher.googleapi" - + "s.com/CdnKey\"P\n\023DeleteCdnKeyRequest\0229\n\004n" - + "ame\030\001 \001(\tB+\340A\002\372A%\n#videostitcher.googlea" - + "pis.com/CdnKey\"\211\001\n\023UpdateCdnKeyRequest\022<" - + "\n\007cdn_key\030\001 \001(\0132&.google.cloud.video.sti" - + "tcher.v1.CdnKeyB\003\340A\002\0224\n\013update_mask\030\002 \001(" - + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\240\001\n\027C" - + "reateVodSessionRequest\022?\n\006parent\030\001 \001(\tB/" - + "\340A\002\372A)\022\'videostitcher.googleapis.com/Vod" - + "Session\022D\n\013vod_session\030\002 \001(\0132*.google.cl" - + "oud.video.stitcher.v1.VodSessionB\003\340A\002\"U\n" - + "\024GetVodSessionRequest\022=\n\004name\030\001 \001(\tB/\340A\002" - + "\372A)\n\'videostitcher.googleapis.com/VodSes" - + "sion\"\212\001\n\033ListVodStitchDetailsRequest\022D\n\006" - + "parent\030\001 \001(\tB4\340A\002\372A.\022,videostitcher.goog" - + "leapis.com/VodStitchDetail\022\021\n\tpage_size\030" - + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\204\001\n\034ListVodSti" - + "tchDetailsResponse\022K\n\022vod_stitch_details" - + "\030\001 \003(\0132/.google.cloud.video.stitcher.v1." - + "VodStitchDetail\022\027\n\017next_page_token\030\002 \001(\t" - + "\"_\n\031GetVodStitchDetailRequest\022B\n\004name\030\001 " - + "\001(\tB4\340A\002\372A.\n,videostitcher.googleapis.co" - + "m/VodStitchDetail\"\210\001\n\032ListVodAdTagDetail" - + "sRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+videos" - + "titcher.googleapis.com/VodAdTagDetail\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\202\001\n" - + "\033ListVodAdTagDetailsResponse\022J\n\022vod_ad_t" - + "ag_details\030\001 \003(\0132..google.cloud.video.st" - + "itcher.v1.VodAdTagDetail\022\027\n\017next_page_to" - + "ken\030\002 \001(\t\"]\n\030GetVodAdTagDetailRequest\022A\n" - + "\004name\030\001 \001(\tB3\340A\002\372A-\n+videostitcher.googl" - + "eapis.com/VodAdTagDetail\"\212\001\n\033ListLiveAdT" - + "agDetailsRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A." - + "\022,videostitcher.googleapis.com/LiveAdTag" - + "Detail\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" - + "\003 \001(\t\"\205\001\n\034ListLiveAdTagDetailsResponse\022L" - + "\n\023live_ad_tag_details\030\001 \003(\0132/.google.clo" - + "ud.video.stitcher.v1.LiveAdTagDetail\022\027\n\017" - + "next_page_token\030\002 \001(\t\"_\n\031GetLiveAdTagDet" - + "ailRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,videos" - + "titcher.googleapis.com/LiveAdTagDetail\"\266" - + "\001\n\022CreateSlateRequest\022:\n\006parent\030\001 \001(\tB*\340" - + "A\002\372A$\022\"videostitcher.googleapis.com/Slat" - + "e\022\025\n\010slate_id\030\002 \001(\tB\003\340A\002\0229\n\005slate\030\003 \001(\0132" - + "%.google.cloud.video.stitcher.v1.SlateB\003" - + "\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"K\n\017GetSlateReque" - + "st\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"videostitcher." - + "googleapis.com/Slate\"\230\001\n\021ListSlatesReque" - + "st\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"videostitche" - + "r.googleapis.com/Slate\022\021\n\tpage_size\030\002 \001(" - + "\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n" - + "\010order_by\030\005 \001(\t\"y\n\022ListSlatesResponse\0225\n" - + "\006slates\030\001 \003(\0132%.google.cloud.video.stitc" - + "her.v1.Slate\022\027\n\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"\205\001\n\022UpdateSlateReques" - + "t\0229\n\005slate\030\001 \001(\0132%.google.cloud.video.st" - + "itcher.v1.SlateB\003\340A\002\0224\n\013update_mask\030\002 \001(" - + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\"N\n\022De" - + "leteSlateRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"" - + "videostitcher.googleapis.com/Slate\"\244\001\n\030C" - + "reateLiveSessionRequest\022@\n\006parent\030\001 \001(\tB" - + "0\340A\002\372A*\022(videostitcher.googleapis.com/Li" - + "veSession\022F\n\014live_session\030\002 \001(\0132+.google" - + ".cloud.video.stitcher.v1.LiveSessionB\003\340A" - + "\002\"W\n\025GetLiveSessionRequest\022>\n\004name\030\001 \001(\t" - + "B0\340A\002\372A*\n(videostitcher.googleapis.com/L" - + "iveSession\"\321\001\n\027CreateLiveConfigRequest\022?" - + "\n\006parent\030\001 \001(\tB/\340A\002\372A)\022\'videostitcher.go" - + "ogleapis.com/LiveConfig\022\033\n\016live_config_i" - + "d\030\002 \001(\tB\003\340A\002\022D\n\013live_config\030\003 \001(\0132*.goog" - + "le.cloud.video.stitcher.v1.LiveConfigB\003\340" - + "A\002\022\022\n\nrequest_id\030\004 \001(\t\"\254\001\n\026ListLiveConfi" - + "gsRequest\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\022\'video" - + "stitcher.googleapis.com/LiveConfig\022\021\n\tpa" - + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\023\n\006fil" - + "ter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\211\001" - + "\n\027ListLiveConfigsResponse\022@\n\014live_config" - + "s\030\001 \003(\0132*.google.cloud.video.stitcher.v1" - + ".LiveConfig\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" - + "unreachable\030\003 \003(\t\"U\n\024GetLiveConfigReques" - + "t\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'videostitcher.g" - + "oogleapis.com/LiveConfig\"X\n\027DeleteLiveCo" + + "/v1/stitch_details.proto\0320google/cloud/v" + + "ideo/stitcher/v1/vod_configs.proto\032#goog" + + "le/longrunning/operations.proto\032\033google/" + + "protobuf/empty.proto\032 google/protobuf/fi" + + "eld_mask.proto\032\037google/protobuf/timestam" + + "p.proto\"\251\001\n\023CreateCdnKeyRequest\022;\n\006paren" + + "t\030\001 \001(\tB+\340A\002\372A%\022#videostitcher.googleapi" + + "s.com/CdnKey\022<\n\007cdn_key\030\002 \001(\0132&.google.c" + + "loud.video.stitcher.v1.CdnKeyB\003\340A\002\022\027\n\ncd" + + "n_key_id\030\003 \001(\tB\003\340A\002\"\232\001\n\022ListCdnKeysReque" + + "st\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#videostitche" + + "r.googleapis.com/CdnKey\022\021\n\tpage_size\030\002 \001" + + "(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020" + + "\n\010order_by\030\005 \001(\t\"}\n\023ListCdnKeysResponse\022" + + "8\n\010cdn_keys\030\001 \003(\0132&.google.cloud.video.s" + + "titcher.v1.CdnKey\022\027\n\017next_page_token\030\002 \001" + + "(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\020GetCdnKeyRequ" + + "est\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#videostitcher" + + ".googleapis.com/CdnKey\"P\n\023DeleteCdnKeyRe" + + "quest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#videostitch" + + "er.googleapis.com/CdnKey\"\211\001\n\023UpdateCdnKe" + + "yRequest\022<\n\007cdn_key\030\001 \001(\0132&.google.cloud" + + ".video.stitcher.v1.CdnKeyB\003\340A\002\0224\n\013update" + + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" + + "\003\340A\002\"\240\001\n\027CreateVodSessionRequest\022?\n\006pare" + + "nt\030\001 \001(\tB/\340A\002\372A)\022\'videostitcher.googleap" + + "is.com/VodSession\022D\n\013vod_session\030\002 \001(\0132*" + + ".google.cloud.video.stitcher.v1.VodSessi" + + "onB\003\340A\002\"U\n\024GetVodSessionRequest\022=\n\004name\030" + + "\001 \001(\tB/\340A\002\372A)\n\'videostitcher.googleapis." + + "com/VodSession\"\212\001\n\033ListVodStitchDetailsR" + + "equest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\022,videosti" + + "tcher.googleapis.com/VodStitchDetail\022\021\n\t" + + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\204\001\n\034" + + "ListVodStitchDetailsResponse\022K\n\022vod_stit" + + "ch_details\030\001 \003(\0132/.google.cloud.video.st" + + "itcher.v1.VodStitchDetail\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"_\n\031GetVodStitchDetailRequest\022" + + "B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,videostitcher.goo" + + "gleapis.com/VodStitchDetail\"\210\001\n\032ListVodA" + + "dTagDetailsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372" + + "A-\022+videostitcher.googleapis.com/VodAdTa" + + "gDetail\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"\202\001\n\033ListVodAdTagDetailsResponse\022J" + + "\n\022vod_ad_tag_details\030\001 \003(\0132..google.clou" + + "d.video.stitcher.v1.VodAdTagDetail\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"]\n\030GetVodAdTagDetail" + + "Request\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+videostit" + + "cher.googleapis.com/VodAdTagDetail\"\212\001\n\033L" + + "istLiveAdTagDetailsRequest\022D\n\006parent\030\001 \001" + + "(\tB4\340A\002\372A.\022,videostitcher.googleapis.com" + + "/LiveAdTagDetail\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" + + "age_token\030\003 \001(\t\"\205\001\n\034ListLiveAdTagDetails" + + "Response\022L\n\023live_ad_tag_details\030\001 \003(\0132/." + + "google.cloud.video.stitcher.v1.LiveAdTag" + + "Detail\022\027\n\017next_page_token\030\002 \001(\t\"_\n\031GetLi" + + "veAdTagDetailRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372" + + "A.\n,videostitcher.googleapis.com/LiveAdT" + + "agDetail\"\266\001\n\022CreateSlateRequest\022:\n\006paren" + + "t\030\001 \001(\tB*\340A\002\372A$\022\"videostitcher.googleapi" + + "s.com/Slate\022\025\n\010slate_id\030\002 \001(\tB\003\340A\002\0229\n\005sl" + + "ate\030\003 \001(\0132%.google.cloud.video.stitcher." + + "v1.SlateB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"K\n\017Get" + + "SlateRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vide" + + "ostitcher.googleapis.com/Slate\"\230\001\n\021ListS" + + "latesRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"vi" + + "deostitcher.googleapis.com/Slate\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filte" + + "r\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"y\n\022ListSlatesR" + + "esponse\0225\n\006slates\030\001 \003(\0132%.google.cloud.v" + + "ideo.stitcher.v1.Slate\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\205\001\n\022UpdateS" + + "lateRequest\0229\n\005slate\030\001 \001(\0132%.google.clou" + + "d.video.stitcher.v1.SlateB\003\340A\002\0224\n\013update" + + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" + + "\003\340A\002\"N\n\022DeleteSlateRequest\0228\n\004name\030\001 \001(\t" + + "B*\340A\002\372A$\n\"videostitcher.googleapis.com/S" + + "late\"\244\001\n\030CreateLiveSessionRequest\022@\n\006par" + + "ent\030\001 \001(\tB0\340A\002\372A*\022(videostitcher.googlea" + + "pis.com/LiveSession\022F\n\014live_session\030\002 \001(" + + "\0132+.google.cloud.video.stitcher.v1.LiveS" + + "essionB\003\340A\002\"W\n\025GetLiveSessionRequest\022>\n\004" + + "name\030\001 \001(\tB0\340A\002\372A*\n(videostitcher.google" + + "apis.com/LiveSession\"\321\001\n\027CreateLiveConfi" + + "gRequest\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\022\'videos" + + "titcher.googleapis.com/LiveConfig\022\033\n\016liv" + + "e_config_id\030\002 \001(\tB\003\340A\002\022D\n\013live_config\030\003 " + + "\001(\0132*.google.cloud.video.stitcher.v1.Liv" + + "eConfigB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"\254\001\n\026Lis" + + "tLiveConfigsRequest\022?\n\006parent\030\001 \001(\tB/\340A\002" + + "\372A)\022\'videostitcher.googleapis.com/LiveCo" + + "nfig\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001" + + "(\tB\003\340A\001\"\211\001\n\027ListLiveConfigsResponse\022@\n\014l" + + "ive_configs\030\001 \003(\0132*.google.cloud.video.s" + + "titcher.v1.LiveConfig\022\027\n\017next_page_token" + + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"U\n\024GetLiveCo" + "nfigRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'video" - + "stitcher.googleapis.com/LiveConfig\"\220\001\n\021O" - + "perationMetadata\022/\n\013create_time\030\001 \001(\0132\032." - + "google.protobuf.Timestamp\022,\n\010end_time\030\002 " - + "\001(\0132\032.google.protobuf.Timestamp\022\016\n\006targe" - + "t\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t2\317*\n\024VideoStitcherS" - + "ervice\022\231\002\n\014CreateCdnKey\0223.google.cloud.v" - + "ideo.stitcher.v1.CreateCdnKeyRequest\032\035.g" - + "oogle.longrunning.Operation\"\264\001\312AY\n%googl" - + "e.cloud.video.stitcher.v1.CdnKey\0220google" - + ".cloud.video.stitcher.v1.OperationMetada" - + "ta\332A\031parent,cdn_key,cdn_key_id\202\323\344\223\0026\"+/v" - + "1/{parent=projects/*/locations/*}/cdnKey" - + "s:\007cdn_key\022\264\001\n\013ListCdnKeys\0222.google.clou" - + "d.video.stitcher.v1.ListCdnKeysRequest\0323" - + ".google.cloud.video.stitcher.v1.ListCdnK" - + "eysResponse\"<\332A\006parent\202\323\344\223\002-\022+/v1/{paren" - + "t=projects/*/locations/*}/cdnKeys\022\241\001\n\tGe" - + "tCdnKey\0220.google.cloud.video.stitcher.v1" - + ".GetCdnKeyRequest\032&.google.cloud.video.s" - + "titcher.v1.CdnKey\":\332A\004name\202\323\344\223\002-\022+/v1/{n" - + "ame=projects/*/locations/*/cdnKeys/*}\022\353\001" - + "\n\014DeleteCdnKey\0223.google.cloud.video.stit" - + "cher.v1.DeleteCdnKeyRequest\032\035.google.lon" - + "grunning.Operation\"\206\001\312AI\n\025google.protobu" - + "f.Empty\0220google.cloud.video.stitcher.v1." - + "OperationMetadata\332A\004name\202\323\344\223\002-*+/v1/{nam" - + "e=projects/*/locations/*/cdnKeys/*}\022\233\002\n\014" - + "UpdateCdnKey\0223.google.cloud.video.stitch" - + "er.v1.UpdateCdnKeyRequest\032\035.google.longr" - + "unning.Operation\"\266\001\312AY\n%google.cloud.vid" - + "eo.stitcher.v1.CdnKey\0220google.cloud.vide" - + "o.stitcher.v1.OperationMetadata\332A\023cdn_ke" - + "y,update_mask\202\323\344\223\002>23/v1/{cdn_key.name=p" - + "rojects/*/locations/*/cdnKeys/*}:\007cdn_ke" - + "y\022\322\001\n\020CreateVodSession\0227.google.cloud.vi" - + "deo.stitcher.v1.CreateVodSessionRequest\032" - + "*.google.cloud.video.stitcher.v1.VodSess" - + "ion\"Y\332A\022parent,vod_session\202\323\344\223\002>\"//v1/{p" - + "arent=projects/*/locations/*}/vodSession" - + "s:\013vod_session\022\261\001\n\rGetVodSession\0224.googl" - + "e.cloud.video.stitcher.v1.GetVodSessionR" - + "equest\032*.google.cloud.video.stitcher.v1." - + "VodSession\">\332A\004name\202\323\344\223\0021\022//v1/{name=pro" - + "jects/*/locations/*/vodSessions/*}\022\346\001\n\024L" - + "istVodStitchDetails\022;.google.cloud.video" - + ".stitcher.v1.ListVodStitchDetailsRequest" - + "\032<.google.cloud.video.stitcher.v1.ListVo" - + "dStitchDetailsResponse\"S\332A\006parent\202\323\344\223\002D\022" - + "B/v1/{parent=projects/*/locations/*/vodS" - + "essions/*}/vodStitchDetails\022\323\001\n\022GetVodSt" - + "itchDetail\0229.google.cloud.video.stitcher" - + ".v1.GetVodStitchDetailRequest\032/.google.c" - + "loud.video.stitcher.v1.VodStitchDetail\"Q" - + "\332A\004name\202\323\344\223\002D\022B/v1/{name=projects/*/loca" - + "tions/*/vodSessions/*/vodStitchDetails/*" - + "}\022\342\001\n\023ListVodAdTagDetails\022:.google.cloud" - + ".video.stitcher.v1.ListVodAdTagDetailsRe" - + "quest\032;.google.cloud.video.stitcher.v1.L" - + "istVodAdTagDetailsResponse\"R\332A\006parent\202\323\344" - + "\223\002C\022A/v1/{parent=projects/*/locations/*/" - + "vodSessions/*}/vodAdTagDetails\022\317\001\n\021GetVo" - + "dAdTagDetail\0228.google.cloud.video.stitch" - + "er.v1.GetVodAdTagDetailRequest\032..google." - + "cloud.video.stitcher.v1.VodAdTagDetail\"P" - + "\332A\004name\202\323\344\223\002C\022A/v1/{name=projects/*/loca" - + "tions/*/vodSessions/*/vodAdTagDetails/*}" - + "\022\347\001\n\024ListLiveAdTagDetails\022;.google.cloud" - + ".video.stitcher.v1.ListLiveAdTagDetailsR" - + "equest\032<.google.cloud.video.stitcher.v1." - + "ListLiveAdTagDetailsResponse\"T\332A\006parent\202" - + "\323\344\223\002E\022C/v1/{parent=projects/*/locations/" - + "*/liveSessions/*}/liveAdTagDetails\022\324\001\n\022G" - + "etLiveAdTagDetail\0229.google.cloud.video.s" - + "titcher.v1.GetLiveAdTagDetailRequest\032/.g" - + "oogle.cloud.video.stitcher.v1.LiveAdTagD" - + "etail\"R\332A\004name\202\323\344\223\002E\022C/v1/{name=projects" - + "/*/locations/*/liveSessions/*/liveAdTagD" - + "etails/*}\022\217\002\n\013CreateSlate\0222.google.cloud" - + ".video.stitcher.v1.CreateSlateRequest\032\035." - + "google.longrunning.Operation\"\254\001\312AX\n$goog" - + "le.cloud.video.stitcher.v1.Slate\0220google" - + ".cloud.video.stitcher.v1.OperationMetada" - + "ta\332A\025parent,slate,slate_id\202\323\344\223\0023\"*/v1/{p" - + "arent=projects/*/locations/*}/slates:\005sl" - + "ate\022\260\001\n\nListSlates\0221.google.cloud.video." - + "stitcher.v1.ListSlatesRequest\0322.google.c" - + "loud.video.stitcher.v1.ListSlatesRespons" - + "e\";\332A\006parent\202\323\344\223\002,\022*/v1/{parent=projects" - + "/*/locations/*}/slates\022\235\001\n\010GetSlate\022/.go" - + "ogle.cloud.video.stitcher.v1.GetSlateReq" - + "uest\032%.google.cloud.video.stitcher.v1.Sl" - + "ate\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=projects/*" - + "/locations/*/slates/*}\022\221\002\n\013UpdateSlate\0222" - + ".google.cloud.video.stitcher.v1.UpdateSl" - + "ateRequest\032\035.google.longrunning.Operatio" - + "n\"\256\001\312AX\n$google.cloud.video.stitcher.v1." - + "Slate\0220google.cloud.video.stitcher.v1.Op" - + "erationMetadata\332A\021slate,update_mask\202\323\344\223\002" - + "920/v1/{slate.name=projects/*/locations/" - + "*/slates/*}:\005slate\022\350\001\n\013DeleteSlate\0222.goo" - + "gle.cloud.video.stitcher.v1.DeleteSlateR" - + "equest\032\035.google.longrunning.Operation\"\205\001" - + "\312AI\n\025google.protobuf.Empty\0220google.cloud" - + ".video.stitcher.v1.OperationMetadata\332A\004n" - + "ame\202\323\344\223\002,**/v1/{name=projects/*/location" - + "s/*/slates/*}\022\330\001\n\021CreateLiveSession\0228.go" - + "ogle.cloud.video.stitcher.v1.CreateLiveS" - + "essionRequest\032+.google.cloud.video.stitc" - + "her.v1.LiveSession\"\\\332A\023parent,live_sessi" - + "on\202\323\344\223\002@\"0/v1/{parent=projects/*/locatio" - + "ns/*}/liveSessions:\014live_session\022\265\001\n\016Get" - + "LiveSession\0225.google.cloud.video.stitche" - + "r.v1.GetLiveSessionRequest\032+.google.clou" - + "d.video.stitcher.v1.LiveSession\"?\332A\004name" - + "\202\323\344\223\0022\0220/v1/{name=projects/*/locations/*" - + "/liveSessions/*}\022\265\002\n\020CreateLiveConfig\0227." - + "google.cloud.video.stitcher.v1.CreateLiv" - + "eConfigRequest\032\035.google.longrunning.Oper" - + "ation\"\310\001\312A]\n)google.cloud.video.stitcher" - + ".v1.LiveConfig\0220google.cloud.video.stitc" - + "her.v1.OperationMetadata\332A!parent,live_c" - + "onfig,live_config_id\202\323\344\223\002>\"//v1/{parent=" - + "projects/*/locations/*}/liveConfigs:\013liv" - + "e_config\022\304\001\n\017ListLiveConfigs\0226.google.cl" - + "oud.video.stitcher.v1.ListLiveConfigsReq" - + "uest\0327.google.cloud.video.stitcher.v1.Li" - + "stLiveConfigsResponse\"@\332A\006parent\202\323\344\223\0021\022/" - + "/v1/{parent=projects/*/locations/*}/live" - + "Configs\022\261\001\n\rGetLiveConfig\0224.google.cloud" - + ".video.stitcher.v1.GetLiveConfigRequest\032" - + "*.google.cloud.video.stitcher.v1.LiveCon" - + "fig\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects/*" - + "/locations/*/liveConfigs/*}\022\367\001\n\020DeleteLi" - + "veConfig\0227.google.cloud.video.stitcher.v" - + "1.DeleteLiveConfigRequest\032\035.google.longr" - + "unning.Operation\"\212\001\312AI\n\025google.protobuf." - + "Empty\0220google.cloud.video.stitcher.v1.Op" - + "erationMetadata\332A\004name\202\323\344\223\0021*//v1/{name=" - + "projects/*/locations/*/liveConfigs/*}\032P\312" + + "stitcher.googleapis.com/LiveConfig\"X\n\027De" + + "leteLiveConfigRequest\022=\n\004name\030\001 \001(\tB/\340A\002" + + "\372A)\n\'videostitcher.googleapis.com/LiveCo" + + "nfig\"\225\001\n\027UpdateLiveConfigRequest\022D\n\013live" + + "_config\030\001 \001(\0132*.google.cloud.video.stitc" + + "her.v1.LiveConfigB\003\340A\002\0224\n\013update_mask\030\002 " + + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\321\001\n" + + "\026CreateVodConfigRequest\022>\n\006parent\030\001 \001(\tB" + + ".\340A\002\372A(\022&videostitcher.googleapis.com/Vo" + + "dConfig\022\032\n\rvod_config_id\030\002 \001(\tB\003\340A\002\022B\n\nv" + + "od_config\030\003 \001(\0132).google.cloud.video.sti" + + "tcher.v1.VodConfigB\003\340A\002\022\027\n\nrequest_id\030\004 " + + "\001(\tB\003\340A\001\"\264\001\n\025ListVodConfigsRequest\022>\n\006pa" + + "rent\030\001 \001(\tB.\340A\002\372A(\022&videostitcher.google" + + "apis.com/VodConfig\022\026\n\tpage_size\030\002 \001(\005B\003\340" + + "A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 " + + "\001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\206\001\n\026List" + + "VodConfigsResponse\022>\n\013vod_configs\030\001 \003(\0132" + + ").google.cloud.video.stitcher.v1.VodConf" + + "ig\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachab" + + "le\030\003 \003(\t\"S\n\023GetVodConfigRequest\022<\n\004name\030" + + "\001 \001(\tB.\340A\002\372A(\n&videostitcher.googleapis." + + "com/VodConfig\"V\n\026DeleteVodConfigRequest\022" + + "<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&videostitcher.goo" + + "gleapis.com/VodConfig\"\222\001\n\026UpdateVodConfi" + + "gRequest\022B\n\nvod_config\030\001 \001(\0132).google.cl" + + "oud.video.stitcher.v1.VodConfigB\003\340A\002\0224\n\013" + + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + + "dMaskB\003\340A\002\"\220\001\n\021OperationMetadata\022/\n\013crea" + + "te_time\030\001 \001(\0132\032.google.protobuf.Timestam" + + "p\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t2\3276" + + "\n\024VideoStitcherService\022\231\002\n\014CreateCdnKey\022" + + "3.google.cloud.video.stitcher.v1.CreateC" + + "dnKeyRequest\032\035.google.longrunning.Operat" + + "ion\"\264\001\312AY\n%google.cloud.video.stitcher.v" + + "1.CdnKey\0220google.cloud.video.stitcher.v1" + + ".OperationMetadata\332A\031parent,cdn_key,cdn_" + + "key_id\202\323\344\223\0026\"+/v1/{parent=projects/*/loc" + + "ations/*}/cdnKeys:\007cdn_key\022\264\001\n\013ListCdnKe" + + "ys\0222.google.cloud.video.stitcher.v1.List" + + "CdnKeysRequest\0323.google.cloud.video.stit" + + "cher.v1.ListCdnKeysResponse\"<\332A\006parent\202\323" + + "\344\223\002-\022+/v1/{parent=projects/*/locations/*" + + "}/cdnKeys\022\241\001\n\tGetCdnKey\0220.google.cloud.v" + + "ideo.stitcher.v1.GetCdnKeyRequest\032&.goog" + + "le.cloud.video.stitcher.v1.CdnKey\":\332A\004na" + + "me\202\323\344\223\002-\022+/v1/{name=projects/*/locations" + + "/*/cdnKeys/*}\022\353\001\n\014DeleteCdnKey\0223.google." + + "cloud.video.stitcher.v1.DeleteCdnKeyRequ" + + "est\032\035.google.longrunning.Operation\"\206\001\312AI" + + "\n\025google.protobuf.Empty\0220google.cloud.vi" + + "deo.stitcher.v1.OperationMetadata\332A\004name" + + "\202\323\344\223\002-*+/v1/{name=projects/*/locations/*" + + "/cdnKeys/*}\022\233\002\n\014UpdateCdnKey\0223.google.cl" + + "oud.video.stitcher.v1.UpdateCdnKeyReques" + + "t\032\035.google.longrunning.Operation\"\266\001\312AY\n%" + + "google.cloud.video.stitcher.v1.CdnKey\0220g" + + "oogle.cloud.video.stitcher.v1.OperationM" + + "etadata\332A\023cdn_key,update_mask\202\323\344\223\002>23/v1" + + "/{cdn_key.name=projects/*/locations/*/cd" + + "nKeys/*}:\007cdn_key\022\322\001\n\020CreateVodSession\0227" + + ".google.cloud.video.stitcher.v1.CreateVo" + + "dSessionRequest\032*.google.cloud.video.sti" + + "tcher.v1.VodSession\"Y\332A\022parent,vod_sessi" + + "on\202\323\344\223\002>\"//v1/{parent=projects/*/locatio" + + "ns/*}/vodSessions:\013vod_session\022\261\001\n\rGetVo" + + "dSession\0224.google.cloud.video.stitcher.v" + + "1.GetVodSessionRequest\032*.google.cloud.vi" + + "deo.stitcher.v1.VodSession\">\332A\004name\202\323\344\223\002" + + "1\022//v1/{name=projects/*/locations/*/vodS" + + "essions/*}\022\346\001\n\024ListVodStitchDetails\022;.go" + + "ogle.cloud.video.stitcher.v1.ListVodStit" + + "chDetailsRequest\032<.google.cloud.video.st" + + "itcher.v1.ListVodStitchDetailsResponse\"S" + + "\332A\006parent\202\323\344\223\002D\022B/v1/{parent=projects/*/" + + "locations/*/vodSessions/*}/vodStitchDeta" + + "ils\022\323\001\n\022GetVodStitchDetail\0229.google.clou" + + "d.video.stitcher.v1.GetVodStitchDetailRe" + + "quest\032/.google.cloud.video.stitcher.v1.V" + + "odStitchDetail\"Q\332A\004name\202\323\344\223\002D\022B/v1/{name" + + "=projects/*/locations/*/vodSessions/*/vo" + + "dStitchDetails/*}\022\342\001\n\023ListVodAdTagDetail" + + "s\022:.google.cloud.video.stitcher.v1.ListV" + + "odAdTagDetailsRequest\032;.google.cloud.vid" + + "eo.stitcher.v1.ListVodAdTagDetailsRespon" + + "se\"R\332A\006parent\202\323\344\223\002C\022A/v1/{parent=project" + + "s/*/locations/*/vodSessions/*}/vodAdTagD" + + "etails\022\317\001\n\021GetVodAdTagDetail\0228.google.cl" + + "oud.video.stitcher.v1.GetVodAdTagDetailR" + + "equest\032..google.cloud.video.stitcher.v1." + + "VodAdTagDetail\"P\332A\004name\202\323\344\223\002C\022A/v1/{name" + + "=projects/*/locations/*/vodSessions/*/vo" + + "dAdTagDetails/*}\022\347\001\n\024ListLiveAdTagDetail" + + "s\022;.google.cloud.video.stitcher.v1.ListL" + + "iveAdTagDetailsRequest\032<.google.cloud.vi" + + "deo.stitcher.v1.ListLiveAdTagDetailsResp" + + "onse\"T\332A\006parent\202\323\344\223\002E\022C/v1/{parent=proje" + + "cts/*/locations/*/liveSessions/*}/liveAd" + + "TagDetails\022\324\001\n\022GetLiveAdTagDetail\0229.goog" + + "le.cloud.video.stitcher.v1.GetLiveAdTagD" + + "etailRequest\032/.google.cloud.video.stitch" + + "er.v1.LiveAdTagDetail\"R\332A\004name\202\323\344\223\002E\022C/v" + + "1/{name=projects/*/locations/*/liveSessi" + + "ons/*/liveAdTagDetails/*}\022\217\002\n\013CreateSlat" + + "e\0222.google.cloud.video.stitcher.v1.Creat" + + "eSlateRequest\032\035.google.longrunning.Opera" + + "tion\"\254\001\312AX\n$google.cloud.video.stitcher." + + "v1.Slate\0220google.cloud.video.stitcher.v1" + + ".OperationMetadata\332A\025parent,slate,slate_" + + "id\202\323\344\223\0023\"*/v1/{parent=projects/*/locatio" + + "ns/*}/slates:\005slate\022\260\001\n\nListSlates\0221.goo" + + "gle.cloud.video.stitcher.v1.ListSlatesRe" + + "quest\0322.google.cloud.video.stitcher.v1.L" + + "istSlatesResponse\";\332A\006parent\202\323\344\223\002,\022*/v1/" + + "{parent=projects/*/locations/*}/slates\022\235" + + "\001\n\010GetSlate\022/.google.cloud.video.stitche" + + "r.v1.GetSlateRequest\032%.google.cloud.vide" + + "o.stitcher.v1.Slate\"9\332A\004name\202\323\344\223\002,\022*/v1/" + + "{name=projects/*/locations/*/slates/*}\022\221" + + "\002\n\013UpdateSlate\0222.google.cloud.video.stit" + + "cher.v1.UpdateSlateRequest\032\035.google.long" + + "running.Operation\"\256\001\312AX\n$google.cloud.vi" + + "deo.stitcher.v1.Slate\0220google.cloud.vide" + + "o.stitcher.v1.OperationMetadata\332A\021slate," + + "update_mask\202\323\344\223\002920/v1/{slate.name=proje" + + "cts/*/locations/*/slates/*}:\005slate\022\350\001\n\013D" + + "eleteSlate\0222.google.cloud.video.stitcher" + + ".v1.DeleteSlateRequest\032\035.google.longrunn" + + "ing.Operation\"\205\001\312AI\n\025google.protobuf.Emp" + + "ty\0220google.cloud.video.stitcher.v1.Opera" + + "tionMetadata\332A\004name\202\323\344\223\002,**/v1/{name=pro" + + "jects/*/locations/*/slates/*}\022\330\001\n\021Create" + + "LiveSession\0228.google.cloud.video.stitche" + + "r.v1.CreateLiveSessionRequest\032+.google.c" + + "loud.video.stitcher.v1.LiveSession\"\\\332A\023p" + + "arent,live_session\202\323\344\223\002@\"0/v1/{parent=pr" + + "ojects/*/locations/*}/liveSessions:\014live" + + "_session\022\265\001\n\016GetLiveSession\0225.google.clo" + + "ud.video.stitcher.v1.GetLiveSessionReque" + + "st\032+.google.cloud.video.stitcher.v1.Live" + + "Session\"?\332A\004name\202\323\344\223\0022\0220/v1/{name=projec" + + "ts/*/locations/*/liveSessions/*}\022\265\002\n\020Cre" + + "ateLiveConfig\0227.google.cloud.video.stitc" + + "her.v1.CreateLiveConfigRequest\032\035.google." + + "longrunning.Operation\"\310\001\312A]\n)google.clou" + + "d.video.stitcher.v1.LiveConfig\0220google.c" + + "loud.video.stitcher.v1.OperationMetadata" + + "\332A!parent,live_config,live_config_id\202\323\344\223" + + "\002>\"//v1/{parent=projects/*/locations/*}/" + + "liveConfigs:\013live_config\022\304\001\n\017ListLiveCon" + + "figs\0226.google.cloud.video.stitcher.v1.Li" + + "stLiveConfigsRequest\0327.google.cloud.vide" + + "o.stitcher.v1.ListLiveConfigsResponse\"@\332" + + "A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/l" + + "ocations/*}/liveConfigs\022\261\001\n\rGetLiveConfi" + + "g\0224.google.cloud.video.stitcher.v1.GetLi" + + "veConfigRequest\032*.google.cloud.video.sti" + + "tcher.v1.LiveConfig\">\332A\004name\202\323\344\223\0021\022//v1/" + + "{name=projects/*/locations/*/liveConfigs" + + "/*}\022\367\001\n\020DeleteLiveConfig\0227.google.cloud." + + "video.stitcher.v1.DeleteLiveConfigReques" + + "t\032\035.google.longrunning.Operation\"\212\001\312AI\n\025" + + "google.protobuf.Empty\0220google.cloud.vide" + + "o.stitcher.v1.OperationMetadata\332A\004name\202\323" + + "\344\223\0021*//v1/{name=projects/*/locations/*/l" + + "iveConfigs/*}\022\267\002\n\020UpdateLiveConfig\0227.goo" + + "gle.cloud.video.stitcher.v1.UpdateLiveCo" + + "nfigRequest\032\035.google.longrunning.Operati" + + "on\"\312\001\312A]\n)google.cloud.video.stitcher.v1" + + ".LiveConfig\0220google.cloud.video.stitcher" + + ".v1.OperationMetadata\332A\027live_config,upda" + + "te_mask\202\323\344\223\002J2;/v1/{live_config.name=pro" + + "jects/*/locations/*/liveConfigs/*}:\013live" + + "_config\022\256\002\n\017CreateVodConfig\0226.google.clo" + + "ud.video.stitcher.v1.CreateVodConfigRequ" + + "est\032\035.google.longrunning.Operation\"\303\001\312A\\" + + "\n(google.cloud.video.stitcher.v1.VodConf" + + "ig\0220google.cloud.video.stitcher.v1.Opera" + + "tionMetadata\332A\037parent,vod_config,vod_con" + + "fig_id\202\323\344\223\002<\"./v1/{parent=projects/*/loc" + + "ations/*}/vodConfigs:\nvod_config\022\300\001\n\016Lis" + + "tVodConfigs\0225.google.cloud.video.stitche" + + "r.v1.ListVodConfigsRequest\0326.google.clou" + + "d.video.stitcher.v1.ListVodConfigsRespon" + + "se\"?\332A\006parent\202\323\344\223\0020\022./v1/{parent=project" + + "s/*/locations/*}/vodConfigs\022\255\001\n\014GetVodCo" + + "nfig\0223.google.cloud.video.stitcher.v1.Ge" + + "tVodConfigRequest\032).google.cloud.video.s" + + "titcher.v1.VodConfig\"=\332A\004name\202\323\344\223\0020\022./v1" + + "/{name=projects/*/locations/*/vodConfigs" + + "/*}\022\364\001\n\017DeleteVodConfig\0226.google.cloud.v" + + "ideo.stitcher.v1.DeleteVodConfigRequest\032" + + "\035.google.longrunning.Operation\"\211\001\312AI\n\025go" + + "ogle.protobuf.Empty\0220google.cloud.video." + + "stitcher.v1.OperationMetadata\332A\004name\202\323\344\223" + + "\0020*./v1/{name=projects/*/locations/*/vod" + + "Configs/*}\022\260\002\n\017UpdateVodConfig\0226.google." + + "cloud.video.stitcher.v1.UpdateVodConfigR" + + "equest\032\035.google.longrunning.Operation\"\305\001" + + "\312A\\\n(google.cloud.video.stitcher.v1.VodC" + + "onfig\0220google.cloud.video.stitcher.v1.Op" + + "erationMetadata\332A\026vod_config,update_mask" + + "\202\323\344\223\002G29/v1/{vod_config.name=projects/*/" + + "locations/*/vodConfigs/*}:\nvod_config\032P\312" + "A\034videostitcher.googleapis.com\322A.https:/" + "/www.googleapis.com/auth/cloud-platformB" + "\201\001\n\"com.google.cloud.video.stitcher.v1B\031" @@ -432,6 +525,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.video.stitcher.v1.SessionsProto.getDescriptor(), com.google.cloud.video.stitcher.v1.SlatesProto.getDescriptor(), com.google.cloud.video.stitcher.v1.StitchDetailsProto.getDescriptor(), + com.google.cloud.video.stitcher.v1.VodConfigsProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), @@ -677,8 +771,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); - internal_static_google_cloud_video_stitcher_v1_OperationMetadata_descriptor = + internal_static_google_cloud_video_stitcher_v1_UpdateLiveConfigRequest_descriptor = getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_video_stitcher_v1_UpdateLiveConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_stitcher_v1_UpdateLiveConfigRequest_descriptor, + new java.lang.String[] { + "LiveConfig", "UpdateMask", + }); + internal_static_google_cloud_video_stitcher_v1_CreateVodConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_video_stitcher_v1_CreateVodConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_stitcher_v1_CreateVodConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "VodConfigId", "VodConfig", "RequestId", + }); + internal_static_google_cloud_video_stitcher_v1_ListVodConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_video_stitcher_v1_ListVodConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_stitcher_v1_ListVodConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_video_stitcher_v1_ListVodConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_video_stitcher_v1_ListVodConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_stitcher_v1_ListVodConfigsResponse_descriptor, + new java.lang.String[] { + "VodConfigs", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_video_stitcher_v1_GetVodConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_video_stitcher_v1_GetVodConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_stitcher_v1_GetVodConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_video_stitcher_v1_DeleteVodConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_video_stitcher_v1_DeleteVodConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_stitcher_v1_DeleteVodConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_video_stitcher_v1_UpdateVodConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_video_stitcher_v1_UpdateVodConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_stitcher_v1_UpdateVodConfigRequest_descriptor, + new java.lang.String[] { + "VodConfig", "UpdateMask", + }); + internal_static_google_cloud_video_stitcher_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_video_stitcher_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_video_stitcher_v1_OperationMetadata_descriptor, @@ -706,6 +856,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.video.stitcher.v1.SessionsProto.getDescriptor(); com.google.cloud.video.stitcher.v1.SlatesProto.getDescriptor(); com.google.cloud.video.stitcher.v1.StitchDetailsProto.getDescriptor(); + com.google.cloud.video.stitcher.v1.VodConfigsProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodConfig.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodConfig.java new file mode 100644 index 000000000000..1b6d7911ce83 --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodConfig.java @@ -0,0 +1,1923 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/vod_configs.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +/** + * + * + *
+ * Metadata used to register VOD configs.
+ * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.VodConfig} + */ +public final class VodConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.video.stitcher.v1.VodConfig) + VodConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use VodConfig.newBuilder() to construct. + private VodConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VodConfig() { + name_ = ""; + sourceUri_ = ""; + adTagUri_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VodConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.VodConfigsProto + .internal_static_google_cloud_video_stitcher_v1_VodConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.VodConfigsProto + .internal_static_google_cloud_video_stitcher_v1_VodConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.VodConfig.class, + com.google.cloud.video.stitcher.v1.VodConfig.Builder.class); + } + + /** + * + * + *
+   * State of the VOD config.
+   * 
+ * + * Protobuf enum {@code google.cloud.video.stitcher.v1.VodConfig.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * State is not specified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * VOD config is being created.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
+     * VOD config is ready for use.
+     * 
+ * + * READY = 2; + */ + READY(2), + /** + * + * + *
+     * VOD config is queued up for deletion.
+     * 
+ * + * DELETING = 3; + */ + DELETING(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * State is not specified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * VOD config is being created.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + /** + * + * + *
+     * VOD config is ready for use.
+     * 
+ * + * READY = 2; + */ + public static final int READY_VALUE = 2; + /** + * + * + *
+     * VOD config is queued up for deletion.
+     * 
+ * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return DELETING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + 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() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.VodConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + 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."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.video.stitcher.v1.VodConfig.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The resource name of the VOD config, in the form of
+   * `projects/{project}/locations/{location}/vodConfigs/{id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of the VOD config, in the form of
+   * `projects/{project}/locations/{location}/vodConfigs/{id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceUri_ = ""; + /** + * + * + *
+   * Required. Source URI for the VOD stream manifest.
+   * 
+ * + * string source_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sourceUri. + */ + @java.lang.Override + public java.lang.String getSourceUri() { + java.lang.Object ref = sourceUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceUri_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Source URI for the VOD stream manifest.
+   * 
+ * + * string source_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sourceUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceUriBytes() { + java.lang.Object ref = sourceUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AD_TAG_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object adTagUri_ = ""; + /** + * + * + *
+   * Required. The default ad tag associated with this VOD config.
+   * 
+ * + * string ad_tag_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The adTagUri. + */ + @java.lang.Override + public java.lang.String getAdTagUri() { + java.lang.Object ref = adTagUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + adTagUri_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The default ad tag associated with this VOD config.
+   * 
+ * + * string ad_tag_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for adTagUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdTagUriBytes() { + java.lang.Object ref = adTagUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adTagUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GAM_VOD_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.video.stitcher.v1.GamVodConfig gamVodConfig_; + /** + * + * + *
+   * Optional. Google Ad Manager (GAM) metadata.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.GamVodConfig gam_vod_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gamVodConfig field is set. + */ + @java.lang.Override + public boolean hasGamVodConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Google Ad Manager (GAM) metadata.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.GamVodConfig gam_vod_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gamVodConfig. + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.GamVodConfig getGamVodConfig() { + return gamVodConfig_ == null + ? com.google.cloud.video.stitcher.v1.GamVodConfig.getDefaultInstance() + : gamVodConfig_; + } + /** + * + * + *
+   * Optional. Google Ad Manager (GAM) metadata.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.GamVodConfig gam_vod_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.GamVodConfigOrBuilder getGamVodConfigOrBuilder() { + return gamVodConfig_ == null + ? com.google.cloud.video.stitcher.v1.GamVodConfig.getDefaultInstance() + : gamVodConfig_; + } + + public static final int STATE_FIELD_NUMBER = 5; + private int state_ = 0; + /** + * + * + *
+   * Output only. State of the VOD config.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. State of the VOD config.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.VodConfig.State getState() { + com.google.cloud.video.stitcher.v1.VodConfig.State result = + com.google.cloud.video.stitcher.v1.VodConfig.State.forNumber(state_); + return result == null + ? com.google.cloud.video.stitcher.v1.VodConfig.State.UNRECOGNIZED + : result; + } + + public static final int SOURCE_FETCH_OPTIONS_FIELD_NUMBER = 8; + private com.google.cloud.video.stitcher.v1.FetchOptions sourceFetchOptions_; + /** + * + * + *
+   * Options for fetching source manifests and segments.
+   * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 8; + * + * @return Whether the sourceFetchOptions field is set. + */ + @java.lang.Override + public boolean hasSourceFetchOptions() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Options for fetching source manifests and segments.
+   * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 8; + * + * @return The sourceFetchOptions. + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.FetchOptions getSourceFetchOptions() { + return sourceFetchOptions_ == null + ? com.google.cloud.video.stitcher.v1.FetchOptions.getDefaultInstance() + : sourceFetchOptions_; + } + /** + * + * + *
+   * Options for fetching source manifests and segments.
+   * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 8; + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.FetchOptionsOrBuilder getSourceFetchOptionsOrBuilder() { + return sourceFetchOptions_ == null + ? com.google.cloud.video.stitcher.v1.FetchOptions.getDefaultInstance() + : sourceFetchOptions_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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(sourceUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adTagUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, adTagUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getGamVodConfig()); + } + if (state_ + != com.google.cloud.video.stitcher.v1.VodConfig.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, state_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getSourceFetchOptions()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adTagUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, adTagUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGamVodConfig()); + } + if (state_ + != com.google.cloud.video.stitcher.v1.VodConfig.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSourceFetchOptions()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.video.stitcher.v1.VodConfig)) { + return super.equals(obj); + } + com.google.cloud.video.stitcher.v1.VodConfig other = + (com.google.cloud.video.stitcher.v1.VodConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (!getSourceUri().equals(other.getSourceUri())) return false; + if (!getAdTagUri().equals(other.getAdTagUri())) return false; + if (hasGamVodConfig() != other.hasGamVodConfig()) return false; + if (hasGamVodConfig()) { + if (!getGamVodConfig().equals(other.getGamVodConfig())) return false; + } + if (state_ != other.state_) return false; + if (hasSourceFetchOptions() != other.hasSourceFetchOptions()) return false; + if (hasSourceFetchOptions()) { + if (!getSourceFetchOptions().equals(other.getSourceFetchOptions())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + SOURCE_URI_FIELD_NUMBER; + hash = (53 * hash) + getSourceUri().hashCode(); + hash = (37 * hash) + AD_TAG_URI_FIELD_NUMBER; + hash = (53 * hash) + getAdTagUri().hashCode(); + if (hasGamVodConfig()) { + hash = (37 * hash) + GAM_VOD_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGamVodConfig().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasSourceFetchOptions()) { + hash = (37 * hash) + SOURCE_FETCH_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSourceFetchOptions().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.video.stitcher.v1.VodConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.VodConfig 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.video.stitcher.v1.VodConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.VodConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.VodConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.video.stitcher.v1.VodConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.video.stitcher.v1.VodConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.VodConfig 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.video.stitcher.v1.VodConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.VodConfig 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.video.stitcher.v1.VodConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.video.stitcher.v1.VodConfig 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.video.stitcher.v1.VodConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Metadata used to register VOD configs.
+   * 
+ * + * Protobuf type {@code google.cloud.video.stitcher.v1.VodConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.video.stitcher.v1.VodConfig) + com.google.cloud.video.stitcher.v1.VodConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.video.stitcher.v1.VodConfigsProto + .internal_static_google_cloud_video_stitcher_v1_VodConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.video.stitcher.v1.VodConfigsProto + .internal_static_google_cloud_video_stitcher_v1_VodConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.video.stitcher.v1.VodConfig.class, + com.google.cloud.video.stitcher.v1.VodConfig.Builder.class); + } + + // Construct using com.google.cloud.video.stitcher.v1.VodConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getGamVodConfigFieldBuilder(); + getSourceFetchOptionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + sourceUri_ = ""; + adTagUri_ = ""; + gamVodConfig_ = null; + if (gamVodConfigBuilder_ != null) { + gamVodConfigBuilder_.dispose(); + gamVodConfigBuilder_ = null; + } + state_ = 0; + sourceFetchOptions_ = null; + if (sourceFetchOptionsBuilder_ != null) { + sourceFetchOptionsBuilder_.dispose(); + sourceFetchOptionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.video.stitcher.v1.VodConfigsProto + .internal_static_google_cloud_video_stitcher_v1_VodConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.VodConfig getDefaultInstanceForType() { + return com.google.cloud.video.stitcher.v1.VodConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.VodConfig build() { + com.google.cloud.video.stitcher.v1.VodConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.VodConfig buildPartial() { + com.google.cloud.video.stitcher.v1.VodConfig result = + new com.google.cloud.video.stitcher.v1.VodConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.video.stitcher.v1.VodConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceUri_ = sourceUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.adTagUri_ = adTagUri_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.gamVodConfig_ = + gamVodConfigBuilder_ == null ? gamVodConfig_ : gamVodConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.sourceFetchOptions_ = + sourceFetchOptionsBuilder_ == null + ? sourceFetchOptions_ + : sourceFetchOptionsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.video.stitcher.v1.VodConfig) { + return mergeFrom((com.google.cloud.video.stitcher.v1.VodConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.video.stitcher.v1.VodConfig other) { + if (other == com.google.cloud.video.stitcher.v1.VodConfig.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSourceUri().isEmpty()) { + sourceUri_ = other.sourceUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAdTagUri().isEmpty()) { + adTagUri_ = other.adTagUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasGamVodConfig()) { + mergeGamVodConfig(other.getGamVodConfig()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasSourceFetchOptions()) { + mergeSourceFetchOptions(other.getSourceFetchOptions()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + adTagUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getGamVodConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 66: + { + input.readMessage( + getSourceFetchOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of the VOD config, in the form of
+     * `projects/{project}/locations/{location}/vodConfigs/{id}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the VOD config, in the form of
+     * `projects/{project}/locations/{location}/vodConfigs/{id}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the VOD config, in the form of
+     * `projects/{project}/locations/{location}/vodConfigs/{id}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the VOD config, in the form of
+     * `projects/{project}/locations/{location}/vodConfigs/{id}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the VOD config, in the form of
+     * `projects/{project}/locations/{location}/vodConfigs/{id}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object sourceUri_ = ""; + /** + * + * + *
+     * Required. Source URI for the VOD stream manifest.
+     * 
+ * + * string source_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sourceUri. + */ + public java.lang.String getSourceUri() { + java.lang.Object ref = sourceUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Source URI for the VOD stream manifest.
+     * 
+ * + * string source_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sourceUri. + */ + public com.google.protobuf.ByteString getSourceUriBytes() { + java.lang.Object ref = sourceUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Source URI for the VOD stream manifest.
+     * 
+ * + * string source_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The sourceUri to set. + * @return This builder for chaining. + */ + public Builder setSourceUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Source URI for the VOD stream manifest.
+     * 
+ * + * string source_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSourceUri() { + sourceUri_ = getDefaultInstance().getSourceUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Source URI for the VOD stream manifest.
+     * 
+ * + * string source_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for sourceUri to set. + * @return This builder for chaining. + */ + public Builder setSourceUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object adTagUri_ = ""; + /** + * + * + *
+     * Required. The default ad tag associated with this VOD config.
+     * 
+ * + * string ad_tag_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The adTagUri. + */ + public java.lang.String getAdTagUri() { + java.lang.Object ref = adTagUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + adTagUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The default ad tag associated with this VOD config.
+     * 
+ * + * string ad_tag_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for adTagUri. + */ + public com.google.protobuf.ByteString getAdTagUriBytes() { + java.lang.Object ref = adTagUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adTagUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The default ad tag associated with this VOD config.
+     * 
+ * + * string ad_tag_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The adTagUri to set. + * @return This builder for chaining. + */ + public Builder setAdTagUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + adTagUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The default ad tag associated with this VOD config.
+     * 
+ * + * string ad_tag_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAdTagUri() { + adTagUri_ = getDefaultInstance().getAdTagUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The default ad tag associated with this VOD config.
+     * 
+ * + * string ad_tag_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for adTagUri to set. + * @return This builder for chaining. + */ + public Builder setAdTagUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + adTagUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.video.stitcher.v1.GamVodConfig gamVodConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.GamVodConfig, + com.google.cloud.video.stitcher.v1.GamVodConfig.Builder, + com.google.cloud.video.stitcher.v1.GamVodConfigOrBuilder> + gamVodConfigBuilder_; + /** + * + * + *
+     * Optional. Google Ad Manager (GAM) metadata.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.GamVodConfig gam_vod_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gamVodConfig field is set. + */ + public boolean hasGamVodConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. Google Ad Manager (GAM) metadata.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.GamVodConfig gam_vod_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gamVodConfig. + */ + public com.google.cloud.video.stitcher.v1.GamVodConfig getGamVodConfig() { + if (gamVodConfigBuilder_ == null) { + return gamVodConfig_ == null + ? com.google.cloud.video.stitcher.v1.GamVodConfig.getDefaultInstance() + : gamVodConfig_; + } else { + return gamVodConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Google Ad Manager (GAM) metadata.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.GamVodConfig gam_vod_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGamVodConfig(com.google.cloud.video.stitcher.v1.GamVodConfig value) { + if (gamVodConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gamVodConfig_ = value; + } else { + gamVodConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Google Ad Manager (GAM) metadata.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.GamVodConfig gam_vod_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGamVodConfig( + com.google.cloud.video.stitcher.v1.GamVodConfig.Builder builderForValue) { + if (gamVodConfigBuilder_ == null) { + gamVodConfig_ = builderForValue.build(); + } else { + gamVodConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Google Ad Manager (GAM) metadata.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.GamVodConfig gam_vod_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGamVodConfig(com.google.cloud.video.stitcher.v1.GamVodConfig value) { + if (gamVodConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && gamVodConfig_ != null + && gamVodConfig_ + != com.google.cloud.video.stitcher.v1.GamVodConfig.getDefaultInstance()) { + getGamVodConfigBuilder().mergeFrom(value); + } else { + gamVodConfig_ = value; + } + } else { + gamVodConfigBuilder_.mergeFrom(value); + } + if (gamVodConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Google Ad Manager (GAM) metadata.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.GamVodConfig gam_vod_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGamVodConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + gamVodConfig_ = null; + if (gamVodConfigBuilder_ != null) { + gamVodConfigBuilder_.dispose(); + gamVodConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Google Ad Manager (GAM) metadata.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.GamVodConfig gam_vod_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.video.stitcher.v1.GamVodConfig.Builder getGamVodConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getGamVodConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Google Ad Manager (GAM) metadata.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.GamVodConfig gam_vod_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.video.stitcher.v1.GamVodConfigOrBuilder getGamVodConfigOrBuilder() { + if (gamVodConfigBuilder_ != null) { + return gamVodConfigBuilder_.getMessageOrBuilder(); + } else { + return gamVodConfig_ == null + ? com.google.cloud.video.stitcher.v1.GamVodConfig.getDefaultInstance() + : gamVodConfig_; + } + } + /** + * + * + *
+     * Optional. Google Ad Manager (GAM) metadata.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.GamVodConfig gam_vod_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.GamVodConfig, + com.google.cloud.video.stitcher.v1.GamVodConfig.Builder, + com.google.cloud.video.stitcher.v1.GamVodConfigOrBuilder> + getGamVodConfigFieldBuilder() { + if (gamVodConfigBuilder_ == null) { + gamVodConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.GamVodConfig, + com.google.cloud.video.stitcher.v1.GamVodConfig.Builder, + com.google.cloud.video.stitcher.v1.GamVodConfigOrBuilder>( + getGamVodConfig(), getParentForChildren(), isClean()); + gamVodConfig_ = null; + } + return gamVodConfigBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. State of the VOD config.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. State of the VOD config.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the VOD config.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.video.stitcher.v1.VodConfig.State getState() { + com.google.cloud.video.stitcher.v1.VodConfig.State result = + com.google.cloud.video.stitcher.v1.VodConfig.State.forNumber(state_); + return result == null + ? com.google.cloud.video.stitcher.v1.VodConfig.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. State of the VOD config.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.video.stitcher.v1.VodConfig.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. State of the VOD config.
+     * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000010); + state_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.video.stitcher.v1.FetchOptions sourceFetchOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.FetchOptions, + com.google.cloud.video.stitcher.v1.FetchOptions.Builder, + com.google.cloud.video.stitcher.v1.FetchOptionsOrBuilder> + sourceFetchOptionsBuilder_; + /** + * + * + *
+     * Options for fetching source manifests and segments.
+     * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 8; + * + * @return Whether the sourceFetchOptions field is set. + */ + public boolean hasSourceFetchOptions() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Options for fetching source manifests and segments.
+     * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 8; + * + * @return The sourceFetchOptions. + */ + public com.google.cloud.video.stitcher.v1.FetchOptions getSourceFetchOptions() { + if (sourceFetchOptionsBuilder_ == null) { + return sourceFetchOptions_ == null + ? com.google.cloud.video.stitcher.v1.FetchOptions.getDefaultInstance() + : sourceFetchOptions_; + } else { + return sourceFetchOptionsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Options for fetching source manifests and segments.
+     * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 8; + */ + public Builder setSourceFetchOptions(com.google.cloud.video.stitcher.v1.FetchOptions value) { + if (sourceFetchOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceFetchOptions_ = value; + } else { + sourceFetchOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Options for fetching source manifests and segments.
+     * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 8; + */ + public Builder setSourceFetchOptions( + com.google.cloud.video.stitcher.v1.FetchOptions.Builder builderForValue) { + if (sourceFetchOptionsBuilder_ == null) { + sourceFetchOptions_ = builderForValue.build(); + } else { + sourceFetchOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Options for fetching source manifests and segments.
+     * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 8; + */ + public Builder mergeSourceFetchOptions(com.google.cloud.video.stitcher.v1.FetchOptions value) { + if (sourceFetchOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && sourceFetchOptions_ != null + && sourceFetchOptions_ + != com.google.cloud.video.stitcher.v1.FetchOptions.getDefaultInstance()) { + getSourceFetchOptionsBuilder().mergeFrom(value); + } else { + sourceFetchOptions_ = value; + } + } else { + sourceFetchOptionsBuilder_.mergeFrom(value); + } + if (sourceFetchOptions_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Options for fetching source manifests and segments.
+     * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 8; + */ + public Builder clearSourceFetchOptions() { + bitField0_ = (bitField0_ & ~0x00000020); + sourceFetchOptions_ = null; + if (sourceFetchOptionsBuilder_ != null) { + sourceFetchOptionsBuilder_.dispose(); + sourceFetchOptionsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Options for fetching source manifests and segments.
+     * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 8; + */ + public com.google.cloud.video.stitcher.v1.FetchOptions.Builder getSourceFetchOptionsBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getSourceFetchOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Options for fetching source manifests and segments.
+     * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 8; + */ + public com.google.cloud.video.stitcher.v1.FetchOptionsOrBuilder + getSourceFetchOptionsOrBuilder() { + if (sourceFetchOptionsBuilder_ != null) { + return sourceFetchOptionsBuilder_.getMessageOrBuilder(); + } else { + return sourceFetchOptions_ == null + ? com.google.cloud.video.stitcher.v1.FetchOptions.getDefaultInstance() + : sourceFetchOptions_; + } + } + /** + * + * + *
+     * Options for fetching source manifests and segments.
+     * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.FetchOptions, + com.google.cloud.video.stitcher.v1.FetchOptions.Builder, + com.google.cloud.video.stitcher.v1.FetchOptionsOrBuilder> + getSourceFetchOptionsFieldBuilder() { + if (sourceFetchOptionsBuilder_ == null) { + sourceFetchOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.video.stitcher.v1.FetchOptions, + com.google.cloud.video.stitcher.v1.FetchOptions.Builder, + com.google.cloud.video.stitcher.v1.FetchOptionsOrBuilder>( + getSourceFetchOptions(), getParentForChildren(), isClean()); + sourceFetchOptions_ = null; + } + return sourceFetchOptionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.video.stitcher.v1.VodConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.video.stitcher.v1.VodConfig) + private static final com.google.cloud.video.stitcher.v1.VodConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.video.stitcher.v1.VodConfig(); + } + + public static com.google.cloud.video.stitcher.v1.VodConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VodConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.video.stitcher.v1.VodConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodConfigName.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodConfigName.java new file mode 100644 index 000000000000..ac0d061d91d2 --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodConfigName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class VodConfigName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_VOD_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/vodConfigs/{vod_config}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String vodConfig; + + @Deprecated + protected VodConfigName() { + project = null; + location = null; + vodConfig = null; + } + + private VodConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + vodConfig = Preconditions.checkNotNull(builder.getVodConfig()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getVodConfig() { + return vodConfig; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static VodConfigName of(String project, String location, String vodConfig) { + return newBuilder().setProject(project).setLocation(location).setVodConfig(vodConfig).build(); + } + + public static String format(String project, String location, String vodConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setVodConfig(vodConfig) + .build() + .toString(); + } + + public static VodConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_VOD_CONFIG.validatedMatch( + formattedString, "VodConfigName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("vod_config")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (VodConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_VOD_CONFIG.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (vodConfig != null) { + fieldMapBuilder.put("vod_config", vodConfig); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_VOD_CONFIG.instantiate( + "project", project, "location", location, "vod_config", vodConfig); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + VodConfigName that = ((VodConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.vodConfig, that.vodConfig); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(vodConfig); + return h; + } + + /** Builder for projects/{project}/locations/{location}/vodConfigs/{vod_config}. */ + public static class Builder { + private String project; + private String location; + private String vodConfig; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getVodConfig() { + return vodConfig; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setVodConfig(String vodConfig) { + this.vodConfig = vodConfig; + return this; + } + + private Builder(VodConfigName vodConfigName) { + this.project = vodConfigName.project; + this.location = vodConfigName.location; + this.vodConfig = vodConfigName.vodConfig; + } + + public VodConfigName build() { + return new VodConfigName(this); + } + } +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodConfigOrBuilder.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodConfigOrBuilder.java new file mode 100644 index 000000000000..56d25323fee7 --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodConfigOrBuilder.java @@ -0,0 +1,208 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/vod_configs.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +public interface VodConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.video.stitcher.v1.VodConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the VOD config, in the form of
+   * `projects/{project}/locations/{location}/vodConfigs/{id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the VOD config, in the form of
+   * `projects/{project}/locations/{location}/vodConfigs/{id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Source URI for the VOD stream manifest.
+   * 
+ * + * string source_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The sourceUri. + */ + java.lang.String getSourceUri(); + /** + * + * + *
+   * Required. Source URI for the VOD stream manifest.
+   * 
+ * + * string source_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for sourceUri. + */ + com.google.protobuf.ByteString getSourceUriBytes(); + + /** + * + * + *
+   * Required. The default ad tag associated with this VOD config.
+   * 
+ * + * string ad_tag_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The adTagUri. + */ + java.lang.String getAdTagUri(); + /** + * + * + *
+   * Required. The default ad tag associated with this VOD config.
+   * 
+ * + * string ad_tag_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for adTagUri. + */ + com.google.protobuf.ByteString getAdTagUriBytes(); + + /** + * + * + *
+   * Optional. Google Ad Manager (GAM) metadata.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.GamVodConfig gam_vod_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gamVodConfig field is set. + */ + boolean hasGamVodConfig(); + /** + * + * + *
+   * Optional. Google Ad Manager (GAM) metadata.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.GamVodConfig gam_vod_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gamVodConfig. + */ + com.google.cloud.video.stitcher.v1.GamVodConfig getGamVodConfig(); + /** + * + * + *
+   * Optional. Google Ad Manager (GAM) metadata.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.GamVodConfig gam_vod_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.video.stitcher.v1.GamVodConfigOrBuilder getGamVodConfigOrBuilder(); + + /** + * + * + *
+   * Output only. State of the VOD config.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. State of the VOD config.
+   * 
+ * + * + * .google.cloud.video.stitcher.v1.VodConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.video.stitcher.v1.VodConfig.State getState(); + + /** + * + * + *
+   * Options for fetching source manifests and segments.
+   * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 8; + * + * @return Whether the sourceFetchOptions field is set. + */ + boolean hasSourceFetchOptions(); + /** + * + * + *
+   * Options for fetching source manifests and segments.
+   * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 8; + * + * @return The sourceFetchOptions. + */ + com.google.cloud.video.stitcher.v1.FetchOptions getSourceFetchOptions(); + /** + * + * + *
+   * Options for fetching source manifests and segments.
+   * 
+ * + * .google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 8; + */ + com.google.cloud.video.stitcher.v1.FetchOptionsOrBuilder getSourceFetchOptionsOrBuilder(); +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodConfigsProto.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodConfigsProto.java new file mode 100644 index 000000000000..e9bf98f44e1d --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodConfigsProto.java @@ -0,0 +1,107 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/video/stitcher/v1/vod_configs.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.video.stitcher.v1; + +public final class VodConfigsProto { + private VodConfigsProto() {} + + 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_video_stitcher_v1_VodConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_stitcher_v1_VodConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_video_stitcher_v1_GamVodConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_video_stitcher_v1_GamVodConfig_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/video/stitcher/v1/vod_con" + + "figs.proto\022\036google.cloud.video.stitcher." + + "v1\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\0322google/cloud/vid" + + "eo/stitcher/v1/fetch_options.proto\"\341\003\n\tV" + + "odConfig\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\027\n\nsource_ur" + + "i\030\002 \001(\tB\003\340A\002\022\027\n\nad_tag_uri\030\003 \001(\tB\003\340A\002\022I\n" + + "\016gam_vod_config\030\004 \001(\0132,.google.cloud.vid" + + "eo.stitcher.v1.GamVodConfigB\003\340A\001\022C\n\005stat" + + "e\030\005 \001(\0162/.google.cloud.video.stitcher.v1" + + ".VodConfig.StateB\003\340A\003\022J\n\024source_fetch_op" + + "tions\030\010 \001(\0132,.google.cloud.video.stitche" + + "r.v1.FetchOptions\"E\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\014\n\010DE" + + "LETING\020\003:l\352Ai\n&videostitcher.googleapis." + + "com/VodConfig\022?projects/{project}/locati" + + "ons/{location}/vodConfigs/{vod_config}\")" + + "\n\014GamVodConfig\022\031\n\014network_code\030\001 \001(\tB\003\340A" + + "\002Bw\n\"com.google.cloud.video.stitcher.v1B" + + "\017VodConfigsProtoP\001Z>cloud.google.com/go/" + + "video/stitcher/apiv1/stitcherpb;stitcher" + + "pbb\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.video.stitcher.v1.FetchOptionsProto.getDescriptor(), + }); + internal_static_google_cloud_video_stitcher_v1_VodConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_video_stitcher_v1_VodConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_stitcher_v1_VodConfig_descriptor, + new java.lang.String[] { + "Name", "SourceUri", "AdTagUri", "GamVodConfig", "State", "SourceFetchOptions", + }); + internal_static_google_cloud_video_stitcher_v1_GamVodConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_video_stitcher_v1_GamVodConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_video_stitcher_v1_GamVodConfig_descriptor, + new java.lang.String[] { + "NetworkCode", + }); + 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.video.stitcher.v1.FetchOptionsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodSession.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodSession.java index 3f003b4808cd..fecc34b16aec 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodSession.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodSession.java @@ -45,6 +45,7 @@ private VodSession() { adTagUri_ = ""; assetId_ = ""; adTracking_ = 0; + vodConfig_ = ""; } @java.lang.Override @@ -1100,10 +1101,12 @@ public com.google.protobuf.ByteString getPlayUriBytes() { * * *
-   * Required. URI of the media to stitch.
+   * URI of the media to stitch. For most use cases, you should create a
+   * [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information
+   * rather than setting this field directly.
    * 
* - * string source_uri = 5 [(.google.api.field_behavior) = REQUIRED]; + * string source_uri = 5; * * @return The sourceUri. */ @@ -1123,10 +1126,12 @@ public java.lang.String getSourceUri() { * * *
-   * Required. URI of the media to stitch.
+   * URI of the media to stitch. For most use cases, you should create a
+   * [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information
+   * rather than setting this field directly.
    * 
* - * string source_uri = 5 [(.google.api.field_behavior) = REQUIRED]; + * string source_uri = 5; * * @return The bytes for sourceUri. */ @@ -1151,10 +1156,12 @@ public com.google.protobuf.ByteString getSourceUriBytes() { * * *
-   * Required. Ad tag URI.
+   * Ad tag URI. For most use cases, you should create a
+   * [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information
+   * rather than setting this field directly.
    * 
* - * string ad_tag_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * string ad_tag_uri = 6; * * @return The adTagUri. */ @@ -1174,10 +1181,12 @@ public java.lang.String getAdTagUri() { * * *
-   * Required. Ad tag URI.
+   * Ad tag URI. For most use cases, you should create a
+   * [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information
+   * rather than setting this field directly.
    * 
* - * string ad_tag_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * string ad_tag_uri = 6; * * @return The bytes for adTagUri. */ @@ -1226,18 +1235,19 @@ public int getAdTagMacroMapCount() { * * *
-   * Key value pairs for ad tag macro replacement. If the
-   * specified ad tag URI has macros, this field provides the mapping
-   * to the value that will replace the macro in the ad tag URI.
-   * Macros are designated by square brackets.
-   * For example:
+   * Key value pairs for ad tag macro replacement, only available for VOD
+   * sessions that do not implement Google Ad manager ad insertion. If the
+   * specified ad tag URI has macros, this field provides the mapping to the
+   * value that will replace the macro in the ad tag URI.
+   *
+   * Macros are designated by square brackets, for example:
    *
    *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
    *
    *   Ad tag macro map: `{"geoId": "123"}`
    *
    *   Fully qualified ad tag:
-   *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
+   *   `"https://doubleclick.google.com/ad/1?geo_id=123"`
    * 
* * map<string, string> ad_tag_macro_map = 7; @@ -1259,18 +1269,19 @@ public java.util.Map getAdTagMacroMap() { * * *
-   * Key value pairs for ad tag macro replacement. If the
-   * specified ad tag URI has macros, this field provides the mapping
-   * to the value that will replace the macro in the ad tag URI.
-   * Macros are designated by square brackets.
-   * For example:
+   * Key value pairs for ad tag macro replacement, only available for VOD
+   * sessions that do not implement Google Ad manager ad insertion. If the
+   * specified ad tag URI has macros, this field provides the mapping to the
+   * value that will replace the macro in the ad tag URI.
+   *
+   * Macros are designated by square brackets, for example:
    *
    *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
    *
    *   Ad tag macro map: `{"geoId": "123"}`
    *
    *   Fully qualified ad tag:
-   *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
+   *   `"https://doubleclick.google.com/ad/1?geo_id=123"`
    * 
* * map<string, string> ad_tag_macro_map = 7; @@ -1283,18 +1294,19 @@ public java.util.Map getAdTagMacroMapMap() { * * *
-   * Key value pairs for ad tag macro replacement. If the
-   * specified ad tag URI has macros, this field provides the mapping
-   * to the value that will replace the macro in the ad tag URI.
-   * Macros are designated by square brackets.
-   * For example:
+   * Key value pairs for ad tag macro replacement, only available for VOD
+   * sessions that do not implement Google Ad manager ad insertion. If the
+   * specified ad tag URI has macros, this field provides the mapping to the
+   * value that will replace the macro in the ad tag URI.
+   *
+   * Macros are designated by square brackets, for example:
    *
    *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
    *
    *   Ad tag macro map: `{"geoId": "123"}`
    *
    *   Fully qualified ad tag:
-   *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
+   *   `"https://doubleclick.google.com/ad/1?geo_id=123"`
    * 
* * map<string, string> ad_tag_macro_map = 7; @@ -1314,18 +1326,19 @@ public java.util.Map getAdTagMacroMapMap() { * * *
-   * Key value pairs for ad tag macro replacement. If the
-   * specified ad tag URI has macros, this field provides the mapping
-   * to the value that will replace the macro in the ad tag URI.
-   * Macros are designated by square brackets.
-   * For example:
+   * Key value pairs for ad tag macro replacement, only available for VOD
+   * sessions that do not implement Google Ad manager ad insertion. If the
+   * specified ad tag URI has macros, this field provides the mapping to the
+   * value that will replace the macro in the ad tag URI.
+   *
+   * Macros are designated by square brackets, for example:
    *
    *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
    *
    *   Ad tag macro map: `{"geoId": "123"}`
    *
    *   Fully qualified ad tag:
-   *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
+   *   `"https://doubleclick.google.com/ad/1?geo_id=123"`
    * 
* * map<string, string> ad_tag_macro_map = 7; @@ -1536,6 +1549,59 @@ public com.google.cloud.video.stitcher.v1.VodSession.GamSettings getGamSettings( : gamSettings_; } + public static final int VOD_CONFIG_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object vodConfig_ = ""; + /** + * + * + *
+   * The resource name of the VOD config for this session, in the form of
+   * `projects/{project}/locations/{location}/vodConfigs/{id}`.
+   * 
+ * + * string vod_config = 14 [(.google.api.resource_reference) = { ... } + * + * @return The vodConfig. + */ + @java.lang.Override + public java.lang.String getVodConfig() { + java.lang.Object ref = vodConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vodConfig_ = s; + return s; + } + } + /** + * + * + *
+   * The resource name of the VOD config for this session, in the form of
+   * `projects/{project}/locations/{location}/vodConfigs/{id}`.
+   * 
+ * + * string vod_config = 14 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for vodConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVodConfigBytes() { + java.lang.Object ref = vodConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vodConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1580,6 +1646,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(13, getGamSettings()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vodConfig_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, vodConfig_); + } getUnknownFields().writeTo(output); } @@ -1627,6 +1696,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getGamSettings()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vodConfig_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, vodConfig_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1662,6 +1734,7 @@ public boolean equals(final java.lang.Object obj) { if (hasGamSettings()) { if (!getGamSettings().equals(other.getGamSettings())) return false; } + if (!getVodConfig().equals(other.getVodConfig())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1701,6 +1774,8 @@ public int hashCode() { hash = (37 * hash) + GAM_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getGamSettings().hashCode(); } + hash = (37 * hash) + VOD_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVodConfig().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1895,6 +1970,7 @@ public Builder clear() { gamSettingsBuilder_.dispose(); gamSettingsBuilder_ = null; } + vodConfig_ = ""; return this; } @@ -1969,6 +2045,9 @@ private void buildPartial0(com.google.cloud.video.stitcher.v1.VodSession result) gamSettingsBuilder_ == null ? gamSettings_ : gamSettingsBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.vodConfig_ = vodConfig_; + } result.bitField0_ |= to_bitField0_; } @@ -2056,6 +2135,11 @@ public Builder mergeFrom(com.google.cloud.video.stitcher.v1.VodSession other) { if (other.hasGamSettings()) { mergeGamSettings(other.getGamSettings()); } + if (!other.getVodConfig().isEmpty()) { + vodConfig_ = other.vodConfig_; + bitField0_ |= 0x00000400; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2148,6 +2232,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 106 + case 114: + { + vodConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2594,10 +2684,12 @@ public Builder setPlayUriBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. URI of the media to stitch.
+     * URI of the media to stitch. For most use cases, you should create a
+     * [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information
+     * rather than setting this field directly.
      * 
* - * string source_uri = 5 [(.google.api.field_behavior) = REQUIRED]; + * string source_uri = 5; * * @return The sourceUri. */ @@ -2616,10 +2708,12 @@ public java.lang.String getSourceUri() { * * *
-     * Required. URI of the media to stitch.
+     * URI of the media to stitch. For most use cases, you should create a
+     * [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information
+     * rather than setting this field directly.
      * 
* - * string source_uri = 5 [(.google.api.field_behavior) = REQUIRED]; + * string source_uri = 5; * * @return The bytes for sourceUri. */ @@ -2638,10 +2732,12 @@ public com.google.protobuf.ByteString getSourceUriBytes() { * * *
-     * Required. URI of the media to stitch.
+     * URI of the media to stitch. For most use cases, you should create a
+     * [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information
+     * rather than setting this field directly.
      * 
* - * string source_uri = 5 [(.google.api.field_behavior) = REQUIRED]; + * string source_uri = 5; * * @param value The sourceUri to set. * @return This builder for chaining. @@ -2659,10 +2755,12 @@ public Builder setSourceUri(java.lang.String value) { * * *
-     * Required. URI of the media to stitch.
+     * URI of the media to stitch. For most use cases, you should create a
+     * [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information
+     * rather than setting this field directly.
      * 
* - * string source_uri = 5 [(.google.api.field_behavior) = REQUIRED]; + * string source_uri = 5; * * @return This builder for chaining. */ @@ -2676,10 +2774,12 @@ public Builder clearSourceUri() { * * *
-     * Required. URI of the media to stitch.
+     * URI of the media to stitch. For most use cases, you should create a
+     * [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information
+     * rather than setting this field directly.
      * 
* - * string source_uri = 5 [(.google.api.field_behavior) = REQUIRED]; + * string source_uri = 5; * * @param value The bytes for sourceUri to set. * @return This builder for chaining. @@ -2700,10 +2800,12 @@ public Builder setSourceUriBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Ad tag URI.
+     * Ad tag URI. For most use cases, you should create a
+     * [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information
+     * rather than setting this field directly.
      * 
* - * string ad_tag_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * string ad_tag_uri = 6; * * @return The adTagUri. */ @@ -2722,10 +2824,12 @@ public java.lang.String getAdTagUri() { * * *
-     * Required. Ad tag URI.
+     * Ad tag URI. For most use cases, you should create a
+     * [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information
+     * rather than setting this field directly.
      * 
* - * string ad_tag_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * string ad_tag_uri = 6; * * @return The bytes for adTagUri. */ @@ -2744,10 +2848,12 @@ public com.google.protobuf.ByteString getAdTagUriBytes() { * * *
-     * Required. Ad tag URI.
+     * Ad tag URI. For most use cases, you should create a
+     * [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information
+     * rather than setting this field directly.
      * 
* - * string ad_tag_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * string ad_tag_uri = 6; * * @param value The adTagUri to set. * @return This builder for chaining. @@ -2765,10 +2871,12 @@ public Builder setAdTagUri(java.lang.String value) { * * *
-     * Required. Ad tag URI.
+     * Ad tag URI. For most use cases, you should create a
+     * [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information
+     * rather than setting this field directly.
      * 
* - * string ad_tag_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * string ad_tag_uri = 6; * * @return This builder for chaining. */ @@ -2782,10 +2890,12 @@ public Builder clearAdTagUri() { * * *
-     * Required. Ad tag URI.
+     * Ad tag URI. For most use cases, you should create a
+     * [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information
+     * rather than setting this field directly.
      * 
* - * string ad_tag_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * string ad_tag_uri = 6; * * @param value The bytes for adTagUri to set. * @return This builder for chaining. @@ -2833,18 +2943,19 @@ public int getAdTagMacroMapCount() { * * *
-     * Key value pairs for ad tag macro replacement. If the
-     * specified ad tag URI has macros, this field provides the mapping
-     * to the value that will replace the macro in the ad tag URI.
-     * Macros are designated by square brackets.
-     * For example:
+     * Key value pairs for ad tag macro replacement, only available for VOD
+     * sessions that do not implement Google Ad manager ad insertion. If the
+     * specified ad tag URI has macros, this field provides the mapping to the
+     * value that will replace the macro in the ad tag URI.
+     *
+     * Macros are designated by square brackets, for example:
      *
      *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
      *
      *   Ad tag macro map: `{"geoId": "123"}`
      *
      *   Fully qualified ad tag:
-     *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
+     *   `"https://doubleclick.google.com/ad/1?geo_id=123"`
      * 
* * map<string, string> ad_tag_macro_map = 7; @@ -2866,18 +2977,19 @@ public java.util.Map getAdTagMacroMap() { * * *
-     * Key value pairs for ad tag macro replacement. If the
-     * specified ad tag URI has macros, this field provides the mapping
-     * to the value that will replace the macro in the ad tag URI.
-     * Macros are designated by square brackets.
-     * For example:
+     * Key value pairs for ad tag macro replacement, only available for VOD
+     * sessions that do not implement Google Ad manager ad insertion. If the
+     * specified ad tag URI has macros, this field provides the mapping to the
+     * value that will replace the macro in the ad tag URI.
+     *
+     * Macros are designated by square brackets, for example:
      *
      *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
      *
      *   Ad tag macro map: `{"geoId": "123"}`
      *
      *   Fully qualified ad tag:
-     *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
+     *   `"https://doubleclick.google.com/ad/1?geo_id=123"`
      * 
* * map<string, string> ad_tag_macro_map = 7; @@ -2890,18 +3002,19 @@ public java.util.Map getAdTagMacroMapMap() { * * *
-     * Key value pairs for ad tag macro replacement. If the
-     * specified ad tag URI has macros, this field provides the mapping
-     * to the value that will replace the macro in the ad tag URI.
-     * Macros are designated by square brackets.
-     * For example:
+     * Key value pairs for ad tag macro replacement, only available for VOD
+     * sessions that do not implement Google Ad manager ad insertion. If the
+     * specified ad tag URI has macros, this field provides the mapping to the
+     * value that will replace the macro in the ad tag URI.
+     *
+     * Macros are designated by square brackets, for example:
      *
      *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
      *
      *   Ad tag macro map: `{"geoId": "123"}`
      *
      *   Fully qualified ad tag:
-     *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
+     *   `"https://doubleclick.google.com/ad/1?geo_id=123"`
      * 
* * map<string, string> ad_tag_macro_map = 7; @@ -2921,18 +3034,19 @@ public java.util.Map getAdTagMacroMapMap() { * * *
-     * Key value pairs for ad tag macro replacement. If the
-     * specified ad tag URI has macros, this field provides the mapping
-     * to the value that will replace the macro in the ad tag URI.
-     * Macros are designated by square brackets.
-     * For example:
+     * Key value pairs for ad tag macro replacement, only available for VOD
+     * sessions that do not implement Google Ad manager ad insertion. If the
+     * specified ad tag URI has macros, this field provides the mapping to the
+     * value that will replace the macro in the ad tag URI.
+     *
+     * Macros are designated by square brackets, for example:
      *
      *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
      *
      *   Ad tag macro map: `{"geoId": "123"}`
      *
      *   Fully qualified ad tag:
-     *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
+     *   `"https://doubleclick.google.com/ad/1?geo_id=123"`
      * 
* * map<string, string> ad_tag_macro_map = 7; @@ -2958,18 +3072,19 @@ public Builder clearAdTagMacroMap() { * * *
-     * Key value pairs for ad tag macro replacement. If the
-     * specified ad tag URI has macros, this field provides the mapping
-     * to the value that will replace the macro in the ad tag URI.
-     * Macros are designated by square brackets.
-     * For example:
+     * Key value pairs for ad tag macro replacement, only available for VOD
+     * sessions that do not implement Google Ad manager ad insertion. If the
+     * specified ad tag URI has macros, this field provides the mapping to the
+     * value that will replace the macro in the ad tag URI.
+     *
+     * Macros are designated by square brackets, for example:
      *
      *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
      *
      *   Ad tag macro map: `{"geoId": "123"}`
      *
      *   Fully qualified ad tag:
-     *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
+     *   `"https://doubleclick.google.com/ad/1?geo_id=123"`
      * 
* * map<string, string> ad_tag_macro_map = 7; @@ -2991,18 +3106,19 @@ public java.util.Map getMutableAdTagMacroMap * * *
-     * Key value pairs for ad tag macro replacement. If the
-     * specified ad tag URI has macros, this field provides the mapping
-     * to the value that will replace the macro in the ad tag URI.
-     * Macros are designated by square brackets.
-     * For example:
+     * Key value pairs for ad tag macro replacement, only available for VOD
+     * sessions that do not implement Google Ad manager ad insertion. If the
+     * specified ad tag URI has macros, this field provides the mapping to the
+     * value that will replace the macro in the ad tag URI.
+     *
+     * Macros are designated by square brackets, for example:
      *
      *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
      *
      *   Ad tag macro map: `{"geoId": "123"}`
      *
      *   Fully qualified ad tag:
-     *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
+     *   `"https://doubleclick.google.com/ad/1?geo_id=123"`
      * 
* * map<string, string> ad_tag_macro_map = 7; @@ -3022,18 +3138,19 @@ public Builder putAdTagMacroMap(java.lang.String key, java.lang.String value) { * * *
-     * Key value pairs for ad tag macro replacement. If the
-     * specified ad tag URI has macros, this field provides the mapping
-     * to the value that will replace the macro in the ad tag URI.
-     * Macros are designated by square brackets.
-     * For example:
+     * Key value pairs for ad tag macro replacement, only available for VOD
+     * sessions that do not implement Google Ad manager ad insertion. If the
+     * specified ad tag URI has macros, this field provides the mapping to the
+     * value that will replace the macro in the ad tag URI.
+     *
+     * Macros are designated by square brackets, for example:
      *
      *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
      *
      *   Ad tag macro map: `{"geoId": "123"}`
      *
      *   Fully qualified ad tag:
-     *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
+     *   `"https://doubleclick.google.com/ad/1?geo_id=123"`
      * 
* * map<string, string> ad_tag_macro_map = 7; @@ -3637,6 +3754,117 @@ public Builder clearGamSettings() { return gamSettingsBuilder_; } + private java.lang.Object vodConfig_ = ""; + /** + * + * + *
+     * The resource name of the VOD config for this session, in the form of
+     * `projects/{project}/locations/{location}/vodConfigs/{id}`.
+     * 
+ * + * string vod_config = 14 [(.google.api.resource_reference) = { ... } + * + * @return The vodConfig. + */ + public java.lang.String getVodConfig() { + java.lang.Object ref = vodConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vodConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name of the VOD config for this session, in the form of
+     * `projects/{project}/locations/{location}/vodConfigs/{id}`.
+     * 
+ * + * string vod_config = 14 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for vodConfig. + */ + public com.google.protobuf.ByteString getVodConfigBytes() { + java.lang.Object ref = vodConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vodConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name of the VOD config for this session, in the form of
+     * `projects/{project}/locations/{location}/vodConfigs/{id}`.
+     * 
+ * + * string vod_config = 14 [(.google.api.resource_reference) = { ... } + * + * @param value The vodConfig to set. + * @return This builder for chaining. + */ + public Builder setVodConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vodConfig_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the VOD config for this session, in the form of
+     * `projects/{project}/locations/{location}/vodConfigs/{id}`.
+     * 
+ * + * string vod_config = 14 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearVodConfig() { + vodConfig_ = getDefaultInstance().getVodConfig(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the VOD config for this session, in the form of
+     * `projects/{project}/locations/{location}/vodConfigs/{id}`.
+     * 
+ * + * string vod_config = 14 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for vodConfig to set. + * @return This builder for chaining. + */ + public Builder setVodConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vodConfig_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodSessionOrBuilder.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodSessionOrBuilder.java index 541f632690eb..865422502784 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodSessionOrBuilder.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodSessionOrBuilder.java @@ -121,10 +121,12 @@ public interface VodSessionOrBuilder * * *
-   * Required. URI of the media to stitch.
+   * URI of the media to stitch. For most use cases, you should create a
+   * [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information
+   * rather than setting this field directly.
    * 
* - * string source_uri = 5 [(.google.api.field_behavior) = REQUIRED]; + * string source_uri = 5; * * @return The sourceUri. */ @@ -133,10 +135,12 @@ public interface VodSessionOrBuilder * * *
-   * Required. URI of the media to stitch.
+   * URI of the media to stitch. For most use cases, you should create a
+   * [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information
+   * rather than setting this field directly.
    * 
* - * string source_uri = 5 [(.google.api.field_behavior) = REQUIRED]; + * string source_uri = 5; * * @return The bytes for sourceUri. */ @@ -146,10 +150,12 @@ public interface VodSessionOrBuilder * * *
-   * Required. Ad tag URI.
+   * Ad tag URI. For most use cases, you should create a
+   * [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information
+   * rather than setting this field directly.
    * 
* - * string ad_tag_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * string ad_tag_uri = 6; * * @return The adTagUri. */ @@ -158,10 +164,12 @@ public interface VodSessionOrBuilder * * *
-   * Required. Ad tag URI.
+   * Ad tag URI. For most use cases, you should create a
+   * [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information
+   * rather than setting this field directly.
    * 
* - * string ad_tag_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * string ad_tag_uri = 6; * * @return The bytes for adTagUri. */ @@ -171,18 +179,19 @@ public interface VodSessionOrBuilder * * *
-   * Key value pairs for ad tag macro replacement. If the
-   * specified ad tag URI has macros, this field provides the mapping
-   * to the value that will replace the macro in the ad tag URI.
-   * Macros are designated by square brackets.
-   * For example:
+   * Key value pairs for ad tag macro replacement, only available for VOD
+   * sessions that do not implement Google Ad manager ad insertion. If the
+   * specified ad tag URI has macros, this field provides the mapping to the
+   * value that will replace the macro in the ad tag URI.
+   *
+   * Macros are designated by square brackets, for example:
    *
    *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
    *
    *   Ad tag macro map: `{"geoId": "123"}`
    *
    *   Fully qualified ad tag:
-   *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
+   *   `"https://doubleclick.google.com/ad/1?geo_id=123"`
    * 
* * map<string, string> ad_tag_macro_map = 7; @@ -192,18 +201,19 @@ public interface VodSessionOrBuilder * * *
-   * Key value pairs for ad tag macro replacement. If the
-   * specified ad tag URI has macros, this field provides the mapping
-   * to the value that will replace the macro in the ad tag URI.
-   * Macros are designated by square brackets.
-   * For example:
+   * Key value pairs for ad tag macro replacement, only available for VOD
+   * sessions that do not implement Google Ad manager ad insertion. If the
+   * specified ad tag URI has macros, this field provides the mapping to the
+   * value that will replace the macro in the ad tag URI.
+   *
+   * Macros are designated by square brackets, for example:
    *
    *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
    *
    *   Ad tag macro map: `{"geoId": "123"}`
    *
    *   Fully qualified ad tag:
-   *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
+   *   `"https://doubleclick.google.com/ad/1?geo_id=123"`
    * 
* * map<string, string> ad_tag_macro_map = 7; @@ -216,18 +226,19 @@ public interface VodSessionOrBuilder * * *
-   * Key value pairs for ad tag macro replacement. If the
-   * specified ad tag URI has macros, this field provides the mapping
-   * to the value that will replace the macro in the ad tag URI.
-   * Macros are designated by square brackets.
-   * For example:
+   * Key value pairs for ad tag macro replacement, only available for VOD
+   * sessions that do not implement Google Ad manager ad insertion. If the
+   * specified ad tag URI has macros, this field provides the mapping to the
+   * value that will replace the macro in the ad tag URI.
+   *
+   * Macros are designated by square brackets, for example:
    *
    *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
    *
    *   Ad tag macro map: `{"geoId": "123"}`
    *
    *   Fully qualified ad tag:
-   *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
+   *   `"https://doubleclick.google.com/ad/1?geo_id=123"`
    * 
* * map<string, string> ad_tag_macro_map = 7; @@ -237,18 +248,19 @@ public interface VodSessionOrBuilder * * *
-   * Key value pairs for ad tag macro replacement. If the
-   * specified ad tag URI has macros, this field provides the mapping
-   * to the value that will replace the macro in the ad tag URI.
-   * Macros are designated by square brackets.
-   * For example:
+   * Key value pairs for ad tag macro replacement, only available for VOD
+   * sessions that do not implement Google Ad manager ad insertion. If the
+   * specified ad tag URI has macros, this field provides the mapping to the
+   * value that will replace the macro in the ad tag URI.
+   *
+   * Macros are designated by square brackets, for example:
    *
    *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
    *
    *   Ad tag macro map: `{"geoId": "123"}`
    *
    *   Fully qualified ad tag:
-   *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
+   *   `"https://doubleclick.google.com/ad/1?geo_id=123"`
    * 
* * map<string, string> ad_tag_macro_map = 7; @@ -262,18 +274,19 @@ java.lang.String getAdTagMacroMapOrDefault( * * *
-   * Key value pairs for ad tag macro replacement. If the
-   * specified ad tag URI has macros, this field provides the mapping
-   * to the value that will replace the macro in the ad tag URI.
-   * Macros are designated by square brackets.
-   * For example:
+   * Key value pairs for ad tag macro replacement, only available for VOD
+   * sessions that do not implement Google Ad manager ad insertion. If the
+   * specified ad tag URI has macros, this field provides the mapping to the
+   * value that will replace the macro in the ad tag URI.
+   *
+   * Macros are designated by square brackets, for example:
    *
    *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
    *
    *   Ad tag macro map: `{"geoId": "123"}`
    *
    *   Fully qualified ad tag:
-   *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
+   *   `"https://doubleclick.google.com/ad/1?geo_id=123"`
    * 
* * map<string, string> ad_tag_macro_map = 7; @@ -406,4 +419,31 @@ java.lang.String getAdTagMacroMapOrDefault( * .google.cloud.video.stitcher.v1.VodSession.GamSettings gam_settings = 13; */ com.google.cloud.video.stitcher.v1.VodSession.GamSettingsOrBuilder getGamSettingsOrBuilder(); + + /** + * + * + *
+   * The resource name of the VOD config for this session, in the form of
+   * `projects/{project}/locations/{location}/vodConfigs/{id}`.
+   * 
+ * + * string vod_config = 14 [(.google.api.resource_reference) = { ... } + * + * @return The vodConfig. + */ + java.lang.String getVodConfig(); + /** + * + * + *
+   * The resource name of the VOD config for this session, in the form of
+   * `projects/{project}/locations/{location}/vodConfigs/{id}`.
+   * 
+ * + * string vod_config = 14 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for vodConfig. + */ + com.google.protobuf.ByteString getVodConfigBytes(); } diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodStitchDetail.java b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodStitchDetail.java index 837b6cfff960..6f3f9118600d 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodStitchDetail.java +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/java/com/google/cloud/video/stitcher/v1/VodStitchDetail.java @@ -23,9 +23,9 @@ * * *
- * Detailed information related to the interstitial of a VOD session. This
- * resource is only available for VOD sessions that do not implement Google Ad
- * Manager ad insertion.
+ * Information related to the interstitial of a VOD session. This resource is
+ * only available for VOD sessions that do not implement Google Ad Manager ad
+ * insertion.
  * 
* * Protobuf type {@code google.cloud.video.stitcher.v1.VodStitchDetail} @@ -366,9 +366,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Detailed information related to the interstitial of a VOD session. This
-   * resource is only available for VOD sessions that do not implement Google Ad
-   * Manager ad insertion.
+   * Information related to the interstitial of a VOD session. This resource is
+   * only available for VOD sessions that do not implement Google Ad Manager ad
+   * insertion.
    * 
* * Protobuf type {@code google.cloud.video.stitcher.v1.VodStitchDetail} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/ad_tag_details.proto b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/ad_tag_details.proto index 87a5f964a754..f710dd0d0e55 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/ad_tag_details.proto +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/ad_tag_details.proto @@ -25,7 +25,9 @@ option java_multiple_files = true; option java_outer_classname = "AdTagDetailsProto"; option java_package = "com.google.cloud.video.stitcher.v1"; -// Container for a live session's ad tag detail. +// Information related to the details for one ad tag. This resource is only +// available for live sessions that do not implement Google Ad Manager ad +// insertion. message LiveAdTagDetail { option (google.api.resource) = { type: "videostitcher.googleapis.com/LiveAdTagDetail" diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/cdn_keys.proto b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/cdn_keys.proto index b9284f66dca4..4533ec9a95e2 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/cdn_keys.proto +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/cdn_keys.proto @@ -71,9 +71,26 @@ message AkamaiCdnKey { // Configuration for a Media CDN key. message MediaCdnKey { + // Configuration for a Media CDN token. + message TokenConfig { + // Optional. The query parameter in which to find the token. + // + // The name must be 1-64 characters long and match + // the regular expression `[a-zA-Z]([a-zA-Z0-9_-])*` which means the + // first character must be a letter, and all following characters + // must be a dash, underscore, letter or digit. + // + // Defaults to `edge-cache-token`. + string query_parameter = 1 [(google.api.field_behavior) = OPTIONAL]; + } + // Input only. 64-byte ed25519 private key for this Media CDN key. bytes private_key = 1 [(google.api.field_behavior) = INPUT_ONLY]; // The keyset name of the Media CDN key. string key_name = 2; + + // Optional. If set, the URL will be signed using the Media CDN token. + // Otherwise, the URL would be signed using the standard Media CDN signature. + TokenConfig token_config = 3 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/fetch_options.proto b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/fetch_options.proto new file mode 100644 index 000000000000..febf89d38fc4 --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/fetch_options.proto @@ -0,0 +1,31 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.video.stitcher.v1; + +option go_package = "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb"; +option java_multiple_files = true; +option java_outer_classname = "FetchOptionsProto"; +option java_package = "com.google.cloud.video.stitcher.v1"; + +// Options on how fetches should be made. +message FetchOptions { + // Custom headers to pass into fetch request. + // Headers must have a maximum of 3 key value pairs. + // Each key value pair must have a maximum of 256 characters per key and 256 + // characters per value. + map headers = 1; +} diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/live_configs.proto b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/live_configs.proto index 727af7777bdb..f63886a64439 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/live_configs.proto +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/live_configs.proto @@ -18,6 +18,7 @@ package google.cloud.video.stitcher.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/video/stitcher/v1/fetch_options.proto"; import "google/protobuf/duration.proto"; option go_package = "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb"; @@ -92,9 +93,7 @@ message LiveConfig { // Output only. State of the live config. State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. Determines how the ads are tracked. If - // [gam_live_config][google.cloud.video.stitcher.v1.LiveConfig.gam_live_config] - // is set, the value must be `CLIENT` because the IMA SDK handles ad tracking. + // Required. Determines how the ads are tracked. AdTracking ad_tracking = 6 [(google.api.field_behavior) = REQUIRED]; // This must refer to a slate in the same @@ -111,6 +110,9 @@ message LiveConfig { // The configuration for prefetching ads. PrefetchConfig prefetch_config = 10; + + // Options for fetching source manifests and segments. + FetchOptions source_fetch_options = 16; } // The configuration for prefetch ads. diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/sessions.proto b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/sessions.proto index 2a2c70d37855..3bff646c2773 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/sessions.proto +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/sessions.proto @@ -55,24 +55,29 @@ message VodSession { // Output only. The playback URI of the stitched content. string play_uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. URI of the media to stitch. - string source_uri = 5 [(google.api.field_behavior) = REQUIRED]; - - // Required. Ad tag URI. - string ad_tag_uri = 6 [(google.api.field_behavior) = REQUIRED]; - - // Key value pairs for ad tag macro replacement. If the - // specified ad tag URI has macros, this field provides the mapping - // to the value that will replace the macro in the ad tag URI. - // Macros are designated by square brackets. - // For example: + // URI of the media to stitch. For most use cases, you should create a + // [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information + // rather than setting this field directly. + string source_uri = 5; + + // Ad tag URI. For most use cases, you should create a + // [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information + // rather than setting this field directly. + string ad_tag_uri = 6; + + // Key value pairs for ad tag macro replacement, only available for VOD + // sessions that do not implement Google Ad manager ad insertion. If the + // specified ad tag URI has macros, this field provides the mapping to the + // value that will replace the macro in the ad tag URI. + // + // Macros are designated by square brackets, for example: // // Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"` // // Ad tag macro map: `{"geoId": "123"}` // // Fully qualified ad tag: - // `"`https://doubleclick.google.com/ad/1?geo_id=123"` + // `"https://doubleclick.google.com/ad/1?geo_id=123"` map ad_tag_macro_map = 7; // Additional options that affect the output of the manifest. @@ -87,6 +92,12 @@ message VodSession { // This field should be set with appropriate values if GAM is being used for // ads. GamSettings gam_settings = 13; + + // The resource name of the VOD config for this session, in the form of + // `projects/{project}/locations/{location}/vodConfigs/{id}`. + string vod_config = 14 [(google.api.resource_reference) = { + type: "videostitcher.googleapis.com/VodConfig" + }]; } // Describes what was stitched into a VOD session's manifest. @@ -144,11 +155,17 @@ message LiveSession { pattern: "projects/{project}/locations/{location}/liveSessions/{live_session}" }; - // Defines fields related to Google Ad Manager (GAM). This should be set if - // GAM is being used for ads. + // Defines fields related to Google Ad Manager (GAM). message GamSettings { - // Required. The stream ID generated by Ad Manager. + // Required. The stream ID generated by Ad Manager. This must be set if GAM + // is being used for ads and the session uses client-side ad tracking. string stream_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // [Targeting + // parameters](https://support.google.com/admanager/answer/7320899) to send + // to Ad Manager to generate a stream ID. This should only be set if the + // session uses server-side ad tracking. + map targeting_parameters = 4; } // Output only. The name of the live session, in the form of @@ -158,12 +175,12 @@ message LiveSession { // Output only. The URI to play the live session's ad-stitched stream. string play_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Key value pairs for ad tag macro replacement. If the - // specified ad tag URI has macros, this field provides the mapping - // to the value that will replace the macro in the ad tag URI. - // Macros are designated by square brackets. + // Key value pairs for ad tag macro replacement, only available for live + // sessions that do not implement Google Ad manager ad insertion. If the + // specified ad tag URI has macros, this field provides the mapping to the + // value that will replace the macro in the ad tag URI. // - // For example: + // Macros are designated by square brackets, for example: // // Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]" // @@ -188,6 +205,10 @@ message LiveSession { type: "videostitcher.googleapis.com/LiveConfig" } ]; + + // Determines how the ad should be tracked. This overrides the value set in + // the live config for this session. + AdTracking ad_tracking = 17; } // Options for manifest generation. diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/stitch_details.proto b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/stitch_details.proto index a70839811a2c..71edf60f96da 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/stitch_details.proto +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/stitch_details.proto @@ -26,9 +26,9 @@ option java_multiple_files = true; option java_outer_classname = "StitchDetailsProto"; option java_package = "com.google.cloud.video.stitcher.v1"; -// Detailed information related to the interstitial of a VOD session. This -// resource is only available for VOD sessions that do not implement Google Ad -// Manager ad insertion. +// Information related to the interstitial of a VOD session. This resource is +// only available for VOD sessions that do not implement Google Ad Manager ad +// insertion. message VodStitchDetail { option (google.api.resource) = { type: "videostitcher.googleapis.com/VodStitchDetail" diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/video_stitcher_service.proto b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/video_stitcher_service.proto index 38f7954e17d6..d5b1841f7906 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/video_stitcher_service.proto +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/video_stitcher_service.proto @@ -26,6 +26,7 @@ import "google/cloud/video/stitcher/v1/live_configs.proto"; import "google/cloud/video/stitcher/v1/sessions.proto"; import "google/cloud/video/stitcher/v1/slates.proto"; import "google/cloud/video/stitcher/v1/stitch_details.proto"; +import "google/cloud/video/stitcher/v1/vod_configs.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -289,6 +290,82 @@ service VideoStitcherService { metadata_type: "google.cloud.video.stitcher.v1.OperationMetadata" }; } + + // Updates the specified LiveConfig. Only update fields specified + // in the call method body. + rpc UpdateLiveConfig(UpdateLiveConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{live_config.name=projects/*/locations/*/liveConfigs/*}" + body: "live_config" + }; + option (google.api.method_signature) = "live_config,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.video.stitcher.v1.LiveConfig" + metadata_type: "google.cloud.video.stitcher.v1.OperationMetadata" + }; + } + + // Registers the VOD config with the provided unique ID in + // the specified region. + rpc CreateVodConfig(CreateVodConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/vodConfigs" + body: "vod_config" + }; + option (google.api.method_signature) = "parent,vod_config,vod_config_id"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.video.stitcher.v1.VodConfig" + metadata_type: "google.cloud.video.stitcher.v1.OperationMetadata" + }; + } + + // Lists all VOD configs managed by the Video Stitcher API that + // belong to the specified project and region. + rpc ListVodConfigs(ListVodConfigsRequest) returns (ListVodConfigsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/vodConfigs" + }; + option (google.api.method_signature) = "parent"; + } + + // Returns the specified VOD config managed by the Video + // Stitcher API service. + rpc GetVodConfig(GetVodConfigRequest) returns (VodConfig) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/vodConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes the specified VOD config. + rpc DeleteVodConfig(DeleteVodConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/vodConfigs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.video.stitcher.v1.OperationMetadata" + }; + } + + // Updates the specified VOD config. Only update fields specified + // in the call method body. + rpc UpdateVodConfig(UpdateVodConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{vod_config.name=projects/*/locations/*/vodConfigs/*}" + body: "vod_config" + }; + option (google.api.method_signature) = "vod_config,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.video.stitcher.v1.VodConfig" + metadata_type: "google.cloud.video.stitcher.v1.OperationMetadata" + }; + } } // Request message for VideoStitcherService.createCdnKey. @@ -764,6 +841,129 @@ message DeleteLiveConfigRequest { ]; } +// Request message for VideoStitcherService.updateLiveConfig. +message UpdateLiveConfigRequest { + // Required. The LiveConfig resource which replaces the resource on the + // server. + LiveConfig live_config = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The update mask applies to the resource. + // For the `FieldMask` definition, see + // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for VideoStitcherService.createVodConfig +message CreateVodConfigRequest { + // Required. The project in which the VOD config should be created, in + // the form of `projects/{project_number}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "videostitcher.googleapis.com/VodConfig" + } + ]; + + // Required. The unique identifier ID to use for the VOD config. + string vod_config_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The VOD config resource to create. + VodConfig vod_config = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request ID, + // the server can check if original operation with the same request ID was + // received, and if so, will ignore the second request. This prevents clients + // from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported `(00000000-0000-0000-0000-000000000000)`. + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for VideoStitcherService.listVodConfig. +message ListVodConfigsRequest { + // Required. The project that contains the list of VOD configs, in the + // form of `projects/{project_number}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "videostitcher.googleapis.com/VodConfig" + } + ]; + + // Optional. The maximum number of items to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value returned from a previous List request, + // if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter to apply to list results (see + // [Filtering](https://google.aip.dev/160)). + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the ordering of results following + // [Cloud API + // syntax](https://cloud.google.com/apis/design/design_patterns#sorting_order). + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for VideoStitcher.ListVodConfig. +message ListVodConfigsResponse { + // List of VOD configs. + repeated VodConfig vod_configs = 1; + + // The pagination token. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request message for VideoStitcherService.getVodConfig. +message GetVodConfigRequest { + // Required. The name of the VOD config to be retrieved, in the form + // of `projects/{project_number}/locations/{location}/vodConfigs/{id}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "videostitcher.googleapis.com/VodConfig" + } + ]; +} + +// Request message for VideoStitcherService.deleteVodConfig. +message DeleteVodConfigRequest { + // Required. The name of the VOD config to be deleted, in the form of + // `projects/{project_number}/locations/{location}/vodConfigs/{id}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "videostitcher.googleapis.com/VodConfig" + } + ]; +} + +// Request message for VideoStitcherService.updateVodConfig. +message UpdateVodConfigRequest { + // Required. The VOD config resource which replaces the resource on the + // server. + VodConfig vod_config = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The update mask applies to the resource. + // For the `FieldMask` definition, see + // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + // Represents the metadata of the long-running operation. message OperationMetadata { // The time the operation was created. diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/vod_configs.proto b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/vod_configs.proto new file mode 100644 index 000000000000..17a47d47f961 --- /dev/null +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/src/main/proto/google/cloud/video/stitcher/v1/vod_configs.proto @@ -0,0 +1,74 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.video.stitcher.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/video/stitcher/v1/fetch_options.proto"; + +option go_package = "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb"; +option java_multiple_files = true; +option java_outer_classname = "VodConfigsProto"; +option java_package = "com.google.cloud.video.stitcher.v1"; + +// Metadata used to register VOD configs. +message VodConfig { + option (google.api.resource) = { + type: "videostitcher.googleapis.com/VodConfig" + pattern: "projects/{project}/locations/{location}/vodConfigs/{vod_config}" + }; + + // State of the VOD config. + enum State { + // State is not specified. + STATE_UNSPECIFIED = 0; + + // VOD config is being created. + CREATING = 1; + + // VOD config is ready for use. + READY = 2; + + // VOD config is queued up for deletion. + DELETING = 3; + } + + // Output only. The resource name of the VOD config, in the form of + // `projects/{project}/locations/{location}/vodConfigs/{id}`. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Source URI for the VOD stream manifest. + string source_uri = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The default ad tag associated with this VOD config. + string ad_tag_uri = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Google Ad Manager (GAM) metadata. + GamVodConfig gam_vod_config = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. State of the VOD config. + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Options for fetching source manifests and segments. + FetchOptions source_fetch_options = 8; +} + +// Metadata used for GAM ad decisioning. +message GamVodConfig { + // Required. Ad Manager network code to associate with the VOD config. + string network_code = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/createvodconfig/AsyncCreateVodConfig.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/createvodconfig/AsyncCreateVodConfig.java new file mode 100644 index 000000000000..59463a75fec6 --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/createvodconfig/AsyncCreateVodConfig.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_CreateVodConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.video.stitcher.v1.CreateVodConfigRequest; +import com.google.cloud.video.stitcher.v1.LocationName; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfig; +import com.google.longrunning.Operation; + +public class AsyncCreateVodConfig { + + public static void main(String[] args) throws Exception { + asyncCreateVodConfig(); + } + + public static void asyncCreateVodConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + CreateVodConfigRequest request = + CreateVodConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setVodConfigId("vodConfigId1497626088") + .setVodConfig(VodConfig.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + videoStitcherServiceClient.createVodConfigCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_CreateVodConfig_async] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/createvodconfig/AsyncCreateVodConfigLRO.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/createvodconfig/AsyncCreateVodConfigLRO.java new file mode 100644 index 000000000000..e293445f53b3 --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/createvodconfig/AsyncCreateVodConfigLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_CreateVodConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.video.stitcher.v1.CreateVodConfigRequest; +import com.google.cloud.video.stitcher.v1.LocationName; +import com.google.cloud.video.stitcher.v1.OperationMetadata; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfig; + +public class AsyncCreateVodConfigLRO { + + public static void main(String[] args) throws Exception { + asyncCreateVodConfigLRO(); + } + + public static void asyncCreateVodConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + CreateVodConfigRequest request = + CreateVodConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setVodConfigId("vodConfigId1497626088") + .setVodConfig(VodConfig.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + videoStitcherServiceClient.createVodConfigOperationCallable().futureCall(request); + // Do something. + VodConfig response = future.get(); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_CreateVodConfig_LRO_async] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/createvodconfig/SyncCreateVodConfig.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/createvodconfig/SyncCreateVodConfig.java new file mode 100644 index 000000000000..d2e53dc53a49 --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/createvodconfig/SyncCreateVodConfig.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_CreateVodConfig_sync] +import com.google.cloud.video.stitcher.v1.CreateVodConfigRequest; +import com.google.cloud.video.stitcher.v1.LocationName; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfig; + +public class SyncCreateVodConfig { + + public static void main(String[] args) throws Exception { + syncCreateVodConfig(); + } + + public static void syncCreateVodConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + CreateVodConfigRequest request = + CreateVodConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setVodConfigId("vodConfigId1497626088") + .setVodConfig(VodConfig.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + VodConfig response = videoStitcherServiceClient.createVodConfigAsync(request).get(); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_CreateVodConfig_sync] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/createvodconfig/SyncCreateVodConfigLocationnameVodconfigString.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/createvodconfig/SyncCreateVodConfigLocationnameVodconfigString.java new file mode 100644 index 000000000000..2bf9fe6a12ac --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/createvodconfig/SyncCreateVodConfigLocationnameVodconfigString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_CreateVodConfig_LocationnameVodconfigString_sync] +import com.google.cloud.video.stitcher.v1.LocationName; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfig; + +public class SyncCreateVodConfigLocationnameVodconfigString { + + public static void main(String[] args) throws Exception { + syncCreateVodConfigLocationnameVodconfigString(); + } + + public static void syncCreateVodConfigLocationnameVodconfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VodConfig vodConfig = VodConfig.newBuilder().build(); + String vodConfigId = "vodConfigId1497626088"; + VodConfig response = + videoStitcherServiceClient.createVodConfigAsync(parent, vodConfig, vodConfigId).get(); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_CreateVodConfig_LocationnameVodconfigString_sync] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/createvodconfig/SyncCreateVodConfigStringVodconfigString.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/createvodconfig/SyncCreateVodConfigStringVodconfigString.java new file mode 100644 index 000000000000..214789bc8450 --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/createvodconfig/SyncCreateVodConfigStringVodconfigString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_CreateVodConfig_StringVodconfigString_sync] +import com.google.cloud.video.stitcher.v1.LocationName; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfig; + +public class SyncCreateVodConfigStringVodconfigString { + + public static void main(String[] args) throws Exception { + syncCreateVodConfigStringVodconfigString(); + } + + public static void syncCreateVodConfigStringVodconfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + VodConfig vodConfig = VodConfig.newBuilder().build(); + String vodConfigId = "vodConfigId1497626088"; + VodConfig response = + videoStitcherServiceClient.createVodConfigAsync(parent, vodConfig, vodConfigId).get(); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_CreateVodConfig_StringVodconfigString_sync] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/deletevodconfig/AsyncDeleteVodConfig.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/deletevodconfig/AsyncDeleteVodConfig.java new file mode 100644 index 000000000000..386ba8a2c067 --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/deletevodconfig/AsyncDeleteVodConfig.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_DeleteVodConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfigName; +import com.google.longrunning.Operation; + +public class AsyncDeleteVodConfig { + + public static void main(String[] args) throws Exception { + asyncDeleteVodConfig(); + } + + public static void asyncDeleteVodConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + DeleteVodConfigRequest request = + DeleteVodConfigRequest.newBuilder() + .setName(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString()) + .build(); + ApiFuture future = + videoStitcherServiceClient.deleteVodConfigCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_DeleteVodConfig_async] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/deletevodconfig/AsyncDeleteVodConfigLRO.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/deletevodconfig/AsyncDeleteVodConfigLRO.java new file mode 100644 index 000000000000..5d9f771fa52f --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/deletevodconfig/AsyncDeleteVodConfigLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_DeleteVodConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest; +import com.google.cloud.video.stitcher.v1.OperationMetadata; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfigName; +import com.google.protobuf.Empty; + +public class AsyncDeleteVodConfigLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteVodConfigLRO(); + } + + public static void asyncDeleteVodConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + DeleteVodConfigRequest request = + DeleteVodConfigRequest.newBuilder() + .setName(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString()) + .build(); + OperationFuture future = + videoStitcherServiceClient.deleteVodConfigOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_DeleteVodConfig_LRO_async] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/deletevodconfig/SyncDeleteVodConfig.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/deletevodconfig/SyncDeleteVodConfig.java new file mode 100644 index 000000000000..19734221979e --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/deletevodconfig/SyncDeleteVodConfig.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_DeleteVodConfig_sync] +import com.google.cloud.video.stitcher.v1.DeleteVodConfigRequest; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteVodConfig { + + public static void main(String[] args) throws Exception { + syncDeleteVodConfig(); + } + + public static void syncDeleteVodConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + DeleteVodConfigRequest request = + DeleteVodConfigRequest.newBuilder() + .setName(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString()) + .build(); + videoStitcherServiceClient.deleteVodConfigAsync(request).get(); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_DeleteVodConfig_sync] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/deletevodconfig/SyncDeleteVodConfigString.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/deletevodconfig/SyncDeleteVodConfigString.java new file mode 100644 index 000000000000..4465c8b6e39e --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/deletevodconfig/SyncDeleteVodConfigString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_DeleteVodConfig_String_sync] +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteVodConfigString { + + public static void main(String[] args) throws Exception { + syncDeleteVodConfigString(); + } + + public static void syncDeleteVodConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + String name = VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString(); + videoStitcherServiceClient.deleteVodConfigAsync(name).get(); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_DeleteVodConfig_String_sync] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/deletevodconfig/SyncDeleteVodConfigVodconfigname.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/deletevodconfig/SyncDeleteVodConfigVodconfigname.java new file mode 100644 index 000000000000..98df34555768 --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/deletevodconfig/SyncDeleteVodConfigVodconfigname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_DeleteVodConfig_Vodconfigname_sync] +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfigName; +import com.google.protobuf.Empty; + +public class SyncDeleteVodConfigVodconfigname { + + public static void main(String[] args) throws Exception { + syncDeleteVodConfigVodconfigname(); + } + + public static void syncDeleteVodConfigVodconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + VodConfigName name = VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]"); + videoStitcherServiceClient.deleteVodConfigAsync(name).get(); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_DeleteVodConfig_Vodconfigname_sync] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/getvodconfig/AsyncGetVodConfig.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/getvodconfig/AsyncGetVodConfig.java new file mode 100644 index 000000000000..b6ff9ca372f7 --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/getvodconfig/AsyncGetVodConfig.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_GetVodConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.video.stitcher.v1.GetVodConfigRequest; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfig; +import com.google.cloud.video.stitcher.v1.VodConfigName; + +public class AsyncGetVodConfig { + + public static void main(String[] args) throws Exception { + asyncGetVodConfig(); + } + + public static void asyncGetVodConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + GetVodConfigRequest request = + GetVodConfigRequest.newBuilder() + .setName(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString()) + .build(); + ApiFuture future = + videoStitcherServiceClient.getVodConfigCallable().futureCall(request); + // Do something. + VodConfig response = future.get(); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_GetVodConfig_async] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/getvodconfig/SyncGetVodConfig.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/getvodconfig/SyncGetVodConfig.java new file mode 100644 index 000000000000..438d87863793 --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/getvodconfig/SyncGetVodConfig.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_GetVodConfig_sync] +import com.google.cloud.video.stitcher.v1.GetVodConfigRequest; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfig; +import com.google.cloud.video.stitcher.v1.VodConfigName; + +public class SyncGetVodConfig { + + public static void main(String[] args) throws Exception { + syncGetVodConfig(); + } + + public static void syncGetVodConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + GetVodConfigRequest request = + GetVodConfigRequest.newBuilder() + .setName(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString()) + .build(); + VodConfig response = videoStitcherServiceClient.getVodConfig(request); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_GetVodConfig_sync] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/getvodconfig/SyncGetVodConfigString.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/getvodconfig/SyncGetVodConfigString.java new file mode 100644 index 000000000000..1e3786857e24 --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/getvodconfig/SyncGetVodConfigString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_GetVodConfig_String_sync] +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfig; +import com.google.cloud.video.stitcher.v1.VodConfigName; + +public class SyncGetVodConfigString { + + public static void main(String[] args) throws Exception { + syncGetVodConfigString(); + } + + public static void syncGetVodConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + String name = VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString(); + VodConfig response = videoStitcherServiceClient.getVodConfig(name); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_GetVodConfig_String_sync] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/getvodconfig/SyncGetVodConfigVodconfigname.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/getvodconfig/SyncGetVodConfigVodconfigname.java new file mode 100644 index 000000000000..31c15af43dbe --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/getvodconfig/SyncGetVodConfigVodconfigname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_GetVodConfig_Vodconfigname_sync] +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfig; +import com.google.cloud.video.stitcher.v1.VodConfigName; + +public class SyncGetVodConfigVodconfigname { + + public static void main(String[] args) throws Exception { + syncGetVodConfigVodconfigname(); + } + + public static void syncGetVodConfigVodconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + VodConfigName name = VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]"); + VodConfig response = videoStitcherServiceClient.getVodConfig(name); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_GetVodConfig_Vodconfigname_sync] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/listvodconfigs/AsyncListVodConfigs.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/listvodconfigs/AsyncListVodConfigs.java new file mode 100644 index 000000000000..682657c352da --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/listvodconfigs/AsyncListVodConfigs.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_ListVodConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.video.stitcher.v1.ListVodConfigsRequest; +import com.google.cloud.video.stitcher.v1.LocationName; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfig; + +public class AsyncListVodConfigs { + + public static void main(String[] args) throws Exception { + asyncListVodConfigs(); + } + + public static void asyncListVodConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + ListVodConfigsRequest request = + ListVodConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + videoStitcherServiceClient.listVodConfigsPagedCallable().futureCall(request); + // Do something. + for (VodConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_ListVodConfigs_async] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/listvodconfigs/AsyncListVodConfigsPaged.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/listvodconfigs/AsyncListVodConfigsPaged.java new file mode 100644 index 000000000000..72569d6056e4 --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/listvodconfigs/AsyncListVodConfigsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_ListVodConfigs_Paged_async] +import com.google.cloud.video.stitcher.v1.ListVodConfigsRequest; +import com.google.cloud.video.stitcher.v1.ListVodConfigsResponse; +import com.google.cloud.video.stitcher.v1.LocationName; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfig; +import com.google.common.base.Strings; + +public class AsyncListVodConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListVodConfigsPaged(); + } + + public static void asyncListVodConfigsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + ListVodConfigsRequest request = + ListVodConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListVodConfigsResponse response = + videoStitcherServiceClient.listVodConfigsCallable().call(request); + for (VodConfig element : response.getVodConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_ListVodConfigs_Paged_async] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/listvodconfigs/SyncListVodConfigs.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/listvodconfigs/SyncListVodConfigs.java new file mode 100644 index 000000000000..5ef2505bb93a --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/listvodconfigs/SyncListVodConfigs.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_ListVodConfigs_sync] +import com.google.cloud.video.stitcher.v1.ListVodConfigsRequest; +import com.google.cloud.video.stitcher.v1.LocationName; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfig; + +public class SyncListVodConfigs { + + public static void main(String[] args) throws Exception { + syncListVodConfigs(); + } + + public static void syncListVodConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + ListVodConfigsRequest request = + ListVodConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (VodConfig element : videoStitcherServiceClient.listVodConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_ListVodConfigs_sync] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/listvodconfigs/SyncListVodConfigsLocationname.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/listvodconfigs/SyncListVodConfigsLocationname.java new file mode 100644 index 000000000000..561848d7d15d --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/listvodconfigs/SyncListVodConfigsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_ListVodConfigs_Locationname_sync] +import com.google.cloud.video.stitcher.v1.LocationName; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfig; + +public class SyncListVodConfigsLocationname { + + public static void main(String[] args) throws Exception { + syncListVodConfigsLocationname(); + } + + public static void syncListVodConfigsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (VodConfig element : videoStitcherServiceClient.listVodConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_ListVodConfigs_Locationname_sync] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/listvodconfigs/SyncListVodConfigsString.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/listvodconfigs/SyncListVodConfigsString.java new file mode 100644 index 000000000000..3b2f994a5209 --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/listvodconfigs/SyncListVodConfigsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_ListVodConfigs_String_sync] +import com.google.cloud.video.stitcher.v1.LocationName; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfig; + +public class SyncListVodConfigsString { + + public static void main(String[] args) throws Exception { + syncListVodConfigsString(); + } + + public static void syncListVodConfigsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (VodConfig element : videoStitcherServiceClient.listVodConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_ListVodConfigs_String_sync] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updateliveconfig/AsyncUpdateLiveConfig.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updateliveconfig/AsyncUpdateLiveConfig.java new file mode 100644 index 000000000000..36ff66984965 --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updateliveconfig/AsyncUpdateLiveConfig.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_UpdateLiveConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.video.stitcher.v1.LiveConfig; +import com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateLiveConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateLiveConfig(); + } + + public static void asyncUpdateLiveConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + UpdateLiveConfigRequest request = + UpdateLiveConfigRequest.newBuilder() + .setLiveConfig(LiveConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + videoStitcherServiceClient.updateLiveConfigCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_UpdateLiveConfig_async] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updateliveconfig/AsyncUpdateLiveConfigLRO.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updateliveconfig/AsyncUpdateLiveConfigLRO.java new file mode 100644 index 000000000000..e477cb2c8a09 --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updateliveconfig/AsyncUpdateLiveConfigLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_UpdateLiveConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.video.stitcher.v1.LiveConfig; +import com.google.cloud.video.stitcher.v1.OperationMetadata; +import com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateLiveConfigLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateLiveConfigLRO(); + } + + public static void asyncUpdateLiveConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + UpdateLiveConfigRequest request = + UpdateLiveConfigRequest.newBuilder() + .setLiveConfig(LiveConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + videoStitcherServiceClient.updateLiveConfigOperationCallable().futureCall(request); + // Do something. + LiveConfig response = future.get(); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_UpdateLiveConfig_LRO_async] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updateliveconfig/SyncUpdateLiveConfig.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updateliveconfig/SyncUpdateLiveConfig.java new file mode 100644 index 000000000000..720da1dcbd25 --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updateliveconfig/SyncUpdateLiveConfig.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_UpdateLiveConfig_sync] +import com.google.cloud.video.stitcher.v1.LiveConfig; +import com.google.cloud.video.stitcher.v1.UpdateLiveConfigRequest; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateLiveConfig { + + public static void main(String[] args) throws Exception { + syncUpdateLiveConfig(); + } + + public static void syncUpdateLiveConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + UpdateLiveConfigRequest request = + UpdateLiveConfigRequest.newBuilder() + .setLiveConfig(LiveConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + LiveConfig response = videoStitcherServiceClient.updateLiveConfigAsync(request).get(); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_UpdateLiveConfig_sync] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updateliveconfig/SyncUpdateLiveConfigLiveconfigFieldmask.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updateliveconfig/SyncUpdateLiveConfigLiveconfigFieldmask.java new file mode 100644 index 000000000000..eec957187b1c --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updateliveconfig/SyncUpdateLiveConfigLiveconfigFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_UpdateLiveConfig_LiveconfigFieldmask_sync] +import com.google.cloud.video.stitcher.v1.LiveConfig; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateLiveConfigLiveconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateLiveConfigLiveconfigFieldmask(); + } + + public static void syncUpdateLiveConfigLiveconfigFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + LiveConfig liveConfig = LiveConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + LiveConfig response = + videoStitcherServiceClient.updateLiveConfigAsync(liveConfig, updateMask).get(); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_UpdateLiveConfig_LiveconfigFieldmask_sync] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updatevodconfig/AsyncUpdateVodConfig.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updatevodconfig/AsyncUpdateVodConfig.java new file mode 100644 index 000000000000..c560f74e57d8 --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updatevodconfig/AsyncUpdateVodConfig.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_UpdateVodConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfig; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateVodConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateVodConfig(); + } + + public static void asyncUpdateVodConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + UpdateVodConfigRequest request = + UpdateVodConfigRequest.newBuilder() + .setVodConfig(VodConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + videoStitcherServiceClient.updateVodConfigCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_UpdateVodConfig_async] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updatevodconfig/AsyncUpdateVodConfigLRO.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updatevodconfig/AsyncUpdateVodConfigLRO.java new file mode 100644 index 000000000000..e370b7955c66 --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updatevodconfig/AsyncUpdateVodConfigLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_UpdateVodConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.video.stitcher.v1.OperationMetadata; +import com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfig; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateVodConfigLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateVodConfigLRO(); + } + + public static void asyncUpdateVodConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + UpdateVodConfigRequest request = + UpdateVodConfigRequest.newBuilder() + .setVodConfig(VodConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + videoStitcherServiceClient.updateVodConfigOperationCallable().futureCall(request); + // Do something. + VodConfig response = future.get(); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_UpdateVodConfig_LRO_async] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updatevodconfig/SyncUpdateVodConfig.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updatevodconfig/SyncUpdateVodConfig.java new file mode 100644 index 000000000000..f4cf6990688a --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updatevodconfig/SyncUpdateVodConfig.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_UpdateVodConfig_sync] +import com.google.cloud.video.stitcher.v1.UpdateVodConfigRequest; +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfig; +import com.google.protobuf.FieldMask; + +public class SyncUpdateVodConfig { + + public static void main(String[] args) throws Exception { + syncUpdateVodConfig(); + } + + public static void syncUpdateVodConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + UpdateVodConfigRequest request = + UpdateVodConfigRequest.newBuilder() + .setVodConfig(VodConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + VodConfig response = videoStitcherServiceClient.updateVodConfigAsync(request).get(); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_UpdateVodConfig_sync] diff --git a/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updatevodconfig/SyncUpdateVodConfigVodconfigFieldmask.java b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updatevodconfig/SyncUpdateVodConfigVodconfigFieldmask.java new file mode 100644 index 000000000000..b698859d5097 --- /dev/null +++ b/java-video-stitcher/samples/snippets/generated/com/google/cloud/video/stitcher/v1/videostitcherservice/updatevodconfig/SyncUpdateVodConfigVodconfigFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.video.stitcher.v1.samples; + +// [START videostitcher_v1_generated_VideoStitcherService_UpdateVodConfig_VodconfigFieldmask_sync] +import com.google.cloud.video.stitcher.v1.VideoStitcherServiceClient; +import com.google.cloud.video.stitcher.v1.VodConfig; +import com.google.protobuf.FieldMask; + +public class SyncUpdateVodConfigVodconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateVodConfigVodconfigFieldmask(); + } + + public static void syncUpdateVodConfigVodconfigFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VideoStitcherServiceClient videoStitcherServiceClient = + VideoStitcherServiceClient.create()) { + VodConfig vodConfig = VodConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + VodConfig response = + videoStitcherServiceClient.updateVodConfigAsync(vodConfig, updateMask).get(); + } + } +} +// [END videostitcher_v1_generated_VideoStitcherService_UpdateVodConfig_VodconfigFieldmask_sync]